基本的 Mono 安装不起作用

发布于 2024-12-07 12:25:32 字数 1386 浏览 1 评论 0原文

我使用 CentOS 5.3 机器作为产品服务器,并尝试在那里运行单声道。经过多次筛选,我设法通过 yum 安装了 2.10.2 版本。 我还以同样的方式安装了 xsp 和 mod_mono 并创建了一个简单的 hello world 网页。事情是它没有运行。我猜测我的配置文件出了问题,这是造成这种情况的原因。 作为 Linux 和 apache 配置的新手,我不知道出了什么问题。

我尝试关注网站上的一些相关回复,但无法正常工作。 所以这就是我所做的:

通过 yum 安装 mono、xsp 和 mod_mono; 添加到httpd.conf(我的位于/usr/local/apache/conf中)

包含“/usr/local/apache/conf.d/*.conf”

然后我创建了以下/usr/local/apache/conf.d /mod_mono.conf 文件:

启用 MonoAutoApplication LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so

AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx

别名 /gpsmapper /usr/local/apache/htdocs/gpsmapper

MonoApplications "/gpsmapper:/usr/local/apache/htdocs/gpsmapper"

MonoServerPath "/opt/novell/mono/lib/mono/4.0/mod-mono-server4。 EXE文件”

SetHandler 单声道

我在 htdocs/gpsmapper 下创建了一个 index.aspx,但收到 503 服务暂时不可用。

我是否有任何设置错误?

Am using a CentOS 5.3 box as prod server and am trying to get mono running there. after much sifting i managed to install version 2.10.2 via yum.
i installed also xsp and mod_mono the same way and created a simple hello world web page. thing is its not running. iam guessing something is up with my config files which are responsible for this.
Being a newbie on both linux and apache configuration, i dont know whats wrong.

I have tried to follow some relative responses on the site but i cant get it work.
So here is what ive done:

installed mono, xsp and mod_mono via yum;
added to httpd.conf (mine is in /usr/local/apache/conf)

Include "/usr/local/apache/conf.d/*.conf"

then i created the following /usr/local/apache/conf.d/mod_mono.conf file :

MonoAutoApplication enabled

LoadModule mono_module /usr/lib/httpd/modules/mod_mono.so

AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .config
AddType application/x-asp-net .Config
AddType application/x-asp-net .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx

Alias /gpsmapper /usr/local/apache/htdocs/gpsmapper

MonoApplications "/gpsmapper:/usr/local/apache/htdocs/gpsmapper"

MonoServerPath "/opt/novell/mono/lib/mono/4.0/mod-mono-server4.exe"

SetHandler mono

i created an index.aspx under htdocs/gpsmapper but am getting a 503 Service temporarily unavailable.

Is any setting i made wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蹲在坟头点根烟 2024-12-14 12:25:32

您可以在同一个文件中混合“MonoAutoApplication”和“MonoApplications”。我认为这不起作用。
AutoConfiguration 功能可以精确地避免声明应用程序。

这是我自己的 mod_mono.conf(在 Mac OS X 10.7.2 和 Linux Ubuntu 11.04 上使用):

<IfModule !mono_module>
    LoadModule mono_module "libexec/apache2/mod_mono.so"
</IfModule>

<IfModule mono_module>
    AddType application/x-asp-net .config .cs .csproj .dll .resources .resx .sln .vb .vbproj
    AddType application/x-asp-net .asax .ascx .ashx .asmx .aspx .axd .browser .licx .master .rem .sitemap .skin .soap .webinfo

    MonoAutoApplication enabled
    MonoDebug true
    MonoServerPath "/usr/bin/mod-mono-server4"
    MonoSetEnv LANG=fr_FR.UTF-8
    MonoUnixSocket "/tmp/.mod_mono"

    <IfModule dir_module>
        DirectoryIndex Default.aspx
    </IfModule>

    <DirectoryMatch "/(bin|App_Code|App_Data|App_GlobalResources|App_LocalResources)/">
        Order deny,allow
        Deny from all
    </DirectoryMatch>

    <Location "/Mono">
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1 ::1
        SetHandler mono-ctrl
    </Location>
</IfModule>

如您所见,我从未定义任何 Alias 或 MonoApplications 指令。

You mix "MonoAutoApplication" and "MonoApplications" in the same file. I don't think it works.
The AutoConfiguration feature allows precisely to avoid having to declare the application.

Here is my own mod_mono.conf (used on Mac OS X 10.7.2 and Linux Ubuntu 11.04) :

<IfModule !mono_module>
    LoadModule mono_module "libexec/apache2/mod_mono.so"
</IfModule>

<IfModule mono_module>
    AddType application/x-asp-net .config .cs .csproj .dll .resources .resx .sln .vb .vbproj
    AddType application/x-asp-net .asax .ascx .ashx .asmx .aspx .axd .browser .licx .master .rem .sitemap .skin .soap .webinfo

    MonoAutoApplication enabled
    MonoDebug true
    MonoServerPath "/usr/bin/mod-mono-server4"
    MonoSetEnv LANG=fr_FR.UTF-8
    MonoUnixSocket "/tmp/.mod_mono"

    <IfModule dir_module>
        DirectoryIndex Default.aspx
    </IfModule>

    <DirectoryMatch "/(bin|App_Code|App_Data|App_GlobalResources|App_LocalResources)/">
        Order deny,allow
        Deny from all
    </DirectoryMatch>

    <Location "/Mono">
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1 ::1
        SetHandler mono-ctrl
    </Location>
</IfModule>

As you can see, I never define any Alias or MonoApplications directive.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文