基本的 Mono 安装不起作用
我使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在同一个文件中混合“MonoAutoApplication”和“MonoApplications”。我认为这不起作用。
AutoConfiguration 功能可以精确地避免声明应用程序。
这是我自己的 mod_mono.conf(在 Mac OS X 10.7.2 和 Linux Ubuntu 11.04 上使用):
如您所见,我从未定义任何 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) :
As you can see, I never define any Alias or MonoApplications directive.