AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[mono](server)

Martin Hope
Phill
Asked: 2013-06-26 10:05:54 +0800 CST

fastcgi-mono-server2 与 fastcgi-mono-server4

  • 3

不确定这是否是一个愚蠢的问题。基本上我正在弄清楚如何在 Linux 上运行 Mono,我是 Linux no0b。

我已经启动并运行了所有东西,但对 fastcgi-mono-server 感到困惑。

很多网站参考fastcgi-mono-server2,而其他网站参考fastcgi-mono-server4

当我运行时:

fastcgi-mono-server /version

fastcgi-mono-server2.exe 2.10.0.0

我得到两个相同的版本号。

如果我看 Mono 版本

Mono JIT 编译器版本 2.10.8.1

我想知道单服务器上的版本是否对应于单服务器版本,而不是单服务器版本。

只是fastcgi-mono-server4较新的版本吗?

mono
  • 1 个回答
  • 895 Views
Martin Hope
Erik Funkenbusch
Asked: 2012-06-29 12:49:38 +0800 CST

使用 mod_mono 为 .net 应用程序配置 apache

  • 1

我在配置 mod_mono 和 apache 以正常工作时遇到了很大的问题。我曾经有过这个工作,但我似乎无法弄清楚我哪里出错了。我正在使用 mono-server4。

我正在尝试使用与主网站不同的端口。所以我在 /etc/apache2/sites-available(带有来自启用站点的链接)中有一个如下所示的虚拟主机配置:

<VirtualHost *:9999>
  ServerName XXX
  ServerAdmin web-admin@XXX
  DocumentRoot /var/xxx

  MonoServerPath XXX "/usr/bin/mod-mono-server4"
  MonoDebug XXX true
  MonoSetEnv XXX MONO_IOMAP=all
  MonoApplications XXX "/:/var/xxx"
  <Location "/">
    Allow from all
    Order allow,deny
    MonoSetServerAlias XXX
    SetHandler mono
    SetOutputFilter DEFLATE
    SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
  </Location>
  <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript
  </IfModule>
</VirtualHost>

我使用 mono-server4-admin 来创建应用程序

mono-server4-admin --path=/var/xxx --app=/XXX --port=9999

当我启动 apache 时,它​​给出了错误:

Syntax error on line 13 of /etc/apache2/sites-enabled/xxx:
Server alias 'XXX, not found.

这对应于 MonoSetServerAlias 语句。所以我把它注释掉了,当我这样做时,apache 就启动了。但是,当我尝试访问该站点时,出现 500 错误。

访问日志表明它正在尝试访问端口 80 上的应用程序,而不是 9999。我不确定这里的问题是什么。 谁能帮我弄清楚我哪里出错了?

我的 mono-server4-hosts.conf 包含这个:

# start /etc/mono-server4/conf.d/RMRSite/10_XXX
     Alias /XXX "/var/xxx"
     AddMonoApplications default "/XXX:/var/xxx"
       <Directory /var/xxx>
         SetHandler mono
           <IfModule mod_dir.c>
              DirectoryIndex index.aspx
           </IfModule>
       </Directory>
# end /etc/mono-server4/conf.d/XXX/10_XXX

此外,我的 /etc/mono-server4/conf.d/XXX/10_XXX 包含以下内容:

This is the configuration file
for the XXX virtualhost
path = /var/xxx
alias = /XXX
vhost = localhost
port = 9999
ubuntu apache-2.2 mono ubuntu-12.04
  • 1 个回答
  • 906 Views
Martin Hope
fuzzycow101
Asked: 2012-06-07 20:02:29 +0800 CST

使用 fastcgi-mono-server4 的 nginx 上的 Mono 2.11 将无法工作

  • 6

我在 centos 6.2 上运行的 nginx 1.0.15 网络服务器设置了 mono 2.11。我从源代码构建它,xps2、xps4 和 fastcgi-mono-server2 按预期工作。问题是当我尝试运行 fastcgi-mono-server4 时。当我跑步时:

fastcgi-mono-server4 /applications=site:/:/srv/www/html/ /socket=tcp:127.0.0.1:9000 /loglevels=Debug /printlog=true

这是我从 fastcgi-mono-server2 得到的:

[2012-06-06 23:51:07Z] Debug   Record received. (Type: BeginRequest, ID: 1, Length: 8)
[2012-06-06 23:51:07Z] Debug   Record received. (Type: Params, ID: 1, Length: 801)
[2012-06-06 23:51:07Z] Debug   Record received. (Type: Params, ID: 1, Length: 0)
[2012-06-06 23:51:07Z] Debug   Read parameter. (QUERY_STRING = )
[2012-06-06 23:51:07Z] Debug   Read parameter. (REQUEST_METHOD = GET)
[2012-06-06 23:51:07Z] Debug   Read parameter. (CONTENT_TYPE = )
[2012-06-06 23:51:07Z] Debug   Read parameter. (CONTENT_LENGTH = )
[2012-06-06 23:51:07Z] Debug   Read parameter. (SCRIPT_NAME = /)
[2012-06-06 23:51:07Z] Debug   Read parameter. (REQUEST_URI = /)
[2012-06-06 23:51:07Z] Debug   Read parameter. (DOCUMENT_URI = /)
[2012-06-06 23:51:07Z] Debug   Read parameter. (DOCUMENT_ROOT = /srv/www/html)
[2012-06-06 23:51:07Z] Debug   Read parameter. (SERVER_PROTOCOL = HTTP/1.1)
[2012-06-06 23:51:07Z] Debug   Read parameter. (GATEWAY_INTERFACE = CGI/1.1)
[2012-06-06 23:51:07Z] Debug   Read parameter. (SERVER_SOFTWARE = nginx/1.0.15)
[2012-06-06 23:51:07Z] Debug   Read parameter. (REMOTE_ADDR = 192.168.128.121)
[2012-06-06 23:51:07Z] Debug   Read parameter. (REMOTE_PORT = 62326)
[2012-06-06 23:51:07Z] Debug   Read parameter. (SERVER_ADDR = 192.168.128.125)
[2012-06-06 23:51:07Z] Debug   Read parameter. (SERVER_PORT = 80)
[2012-06-06 23:51:07Z] Debug   Read parameter. (SERVER_NAME = site)
[2012-06-06 23:51:07Z] Debug   Read parameter. (REDIRECT_STATUS = 200)
[2012-06-06 23:51:07Z] Debug   Read parameter. (PATH_INFO = )
[2012-06-06 23:51:07Z] Debug   Read parameter. (SCRIPT_FILENAME = /srv/www/html/)
[2012-06-06 23:51:07Z] Debug   Read parameter. (HTTP_HOST = site)
[2012-06-06 23:51:07Z] Debug   Read parameter. (HTTP_USER_AGENT = Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0)
[2012-06-06 23:51:07Z] Debug   Read parameter. (HTTP_ACCEPT = text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8)
[2012-06-06 23:51:07Z] Debug   Read parameter. (HTTP_ACCEPT_LANGUAGE = en-us,en;q=0.5)
[2012-06-06 23:51:07Z] Debug   Read parameter. (HTTP_ACCEPT_ENCODING = gzip, deflate)
[2012-06-06 23:51:07Z] Debug   Read parameter. (HTTP_CONNECTION = keep-alive)
[2012-06-06 23:51:07Z] Debug   Read parameter. (HTTP_COOKIE = ASP.NET_SessionId=0176BE8FC161E702439D3C91)
[2012-06-06 23:51:07Z] Debug   Record received. (Type: StandardInput, ID: 1, Length: 0)
[2012-06-06 23:51:08Z] Debug   Record sent. (Type: StandardOutput, ID: 1, Length: 196)
[2012-06-06 23:51:08Z] Debug   Record sent. (Type: StandardOutput, ID: 1, Length: 128)
[2012-06-06 23:51:08Z] Debug   Record sent. (Type: StandardOutput, ID: 1, Length: 0)
[2012-06-06 23:51:08Z] Debug   Record sent. (Type: EndRequest, ID: 1, Length: 8)

这就是我从 fastcgi-mono-server4 得到的:

[2012-06-06 23:50:52Z] Debug   Record received. (Type: BeginRequest, ID: 1, Length: 8)
[2012-06-06 23:50:52Z] Debug   Record received. (Type: Params, ID: 1, Length: 801)
[2012-06-06 23:50:52Z] Debug   Record received. (Type: Params, ID: 1, Length: 0)
[2012-06-06 23:50:52Z] Debug   Read parameter. (QUERY_STRING = )
[2012-06-06 23:50:52Z] Debug   Read parameter. (REQUEST_METHOD = GET)
[2012-06-06 23:50:52Z] Debug   Read parameter. (CONTENT_TYPE = )
[2012-06-06 23:50:52Z] Debug   Read parameter. (CONTENT_LENGTH = )
[2012-06-06 23:50:52Z] Debug   Read parameter. (SCRIPT_NAME = /)
[2012-06-06 23:50:52Z] Debug   Read parameter. (REQUEST_URI = /)
[2012-06-06 23:50:52Z] Debug   Read parameter. (DOCUMENT_URI = /)
[2012-06-06 23:50:52Z] Debug   Read parameter. (DOCUMENT_ROOT = /srv/www/html)
[2012-06-06 23:50:52Z] Debug   Read parameter. (SERVER_PROTOCOL = HTTP/1.1)
[2012-06-06 23:50:52Z] Debug   Read parameter. (GATEWAY_INTERFACE = CGI/1.1)
[2012-06-06 23:50:52Z] Debug   Read parameter. (SERVER_SOFTWARE = nginx/1.0.15)
[2012-06-06 23:50:52Z] Debug   Read parameter. (REMOTE_ADDR = 192.168.128.121)
[2012-06-06 23:50:52Z] Debug   Read parameter. (REMOTE_PORT = 62326)
[2012-06-06 23:50:52Z] Debug   Read parameter. (SERVER_ADDR = 192.168.128.125)
[2012-06-06 23:50:52Z] Debug   Read parameter. (SERVER_PORT = 80)
[2012-06-06 23:50:52Z] Debug   Read parameter. (SERVER_NAME = site)
[2012-06-06 23:50:52Z] Debug   Read parameter. (REDIRECT_STATUS = 200)
[2012-06-06 23:50:52Z] Debug   Read parameter. (PATH_INFO = )
[2012-06-06 23:50:52Z] Debug   Read parameter. (SCRIPT_FILENAME = /srv/www/html/)
[2012-06-06 23:50:52Z] Debug   Read parameter. (HTTP_HOST = site)
[2012-06-06 23:50:52Z] Debug   Read parameter. (HTTP_USER_AGENT = Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0)
[2012-06-06 23:50:52Z] Debug   Read parameter. (HTTP_ACCEPT = text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8)
[2012-06-06 23:50:52Z] Debug   Read parameter. (HTTP_ACCEPT_LANGUAGE = en-us,en;q=0.5)
[2012-06-06 23:50:52Z] Debug   Read parameter. (HTTP_ACCEPT_ENCODING = gzip, deflate)
[2012-06-06 23:50:52Z] Debug   Read parameter. (HTTP_CONNECTION = keep-alive)
[2012-06-06 23:50:52Z] Debug   Read parameter. (HTTP_COOKIE = ASP.NET_SessionId=0176BE8FC161E702439D3C91)
[2012-06-06 23:50:53Z] Debug   Record received. (Type: StandardInput, ID: 1, Length: 0)
[2012-06-06 23:50:53Z] Debug   Record sent. (Type: EndRequest, ID: 1, Length: 8)

我看不出我做错了什么。任何帮助都会很棒。

编辑:返工,现在我收到错误网关的 502 错误。日志看起来仍然一样。

查看我的 Nginx 错误日志,发现许多这样的条目:

2012/06/18 13:56:01 [error] 3108#0: *4 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.128.121, server: site, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "site"

无论 fastcgi-mono-server4 是否打开,我都会得到相同的响应。它现在总是显示 502 错误。

centos fastcgi nginx mono
  • 1 个回答
  • 5042 Views
Martin Hope
ingh.am
Asked: 2012-05-20 08:11:29 +0800 CST

将我的 debian 服务器升级到 Wheezy 只是为了安装单声道

  • 3

我正在寻找使用mod-mono-server4,以便我可以在单声道上运行 .NET 4.0 应用程序。

我目前正在运行一个带有此单声道版本的 debian 服务器:

$ mono --version
Mono JIT compiler version 2.6.7 (Debian 2.6.7-5)

其中不包括mod-mono-server4。

根据http://mono-project.com/DistroPackages/Debian,这是我可以拥有的最新版本的单声道,所以看起来我需要在 Wheezy 上使用“测试”版本才能获得版本 2.10.8.1。所以我的问题是,我如何升级到测试版本,这是不建议的吗?我的服务器目前有几个站点正在运行,无论如何都不是测试服务器。

我假设我需要添加一些新的或修改我的当前存储库,/etc/apt/sources.list但这会影响我服务器上安装的其他东西吗?

debian installation mono .net-4.0
  • 4 个回答
  • 1761 Views
Martin Hope
Quandary
Asked: 2010-03-24 04:17:33 +0800 CST

Linux:不区分大小写的文件系统

  • 14

有什么方法可以使 Linux 文件系统 case-INSENSITIVE ?

我在 Windows 上开发了 asp.net 应用程序,但是在将它放在 Linux 上时,mono 上的大小写/拼写总是存在问题。

一种方法是将 localhost SMB 共享挂载到 /var/www。还有其他人吗?

linux filesystems mono case-insensitive
  • 5 个回答
  • 15975 Views
Martin Hope
Quandary
Asked: 2010-03-14 12:39:01 +0800 CST

Mono:子文件夹中的 web.config 时应用程序未运行

  • 0

我在 Mono 上运行 ASP.NET。

我想运行blogengine: http:
//www.dotnetblogengine.net/

我下载了,把它放进去/var/www/blogengine,在控制台上去/var/www/blogengine启动xsp2。

我去了http://localhost:8080,它运行没有问题。

然后我停止了xsp2,去/var/www启动了xsp2。

我去了http://localhost:8080/blogengine

它以一个奇怪的错误结束:

该部分无法在此配置文件中定义(允许的定义上下文为“MachineToApplication”)。(/var/www/blogengine/Web.Config 第 9 行)

问题似乎是,只要 xsp2 根文件夹不是应用程序根文件夹,它就会停止工作......

我需要配置什么吗?或者还有什么问题?

linux asp.net mono xsp2
  • 1 个回答
  • 1047 Views
Martin Hope
Trevor Johns
Asked: 2010-03-05 14:57:28 +0800 CST

在 Ubuntu 上安装 mod_mono:处理程序似乎没有注册

  • 6

我正在尝试在 Apache 2 (Prefork MPM) 上安装 mod_mono。我正在使用 Ubuntu Karmic,并且只想要一个自动托管设置(以便执行任何 .aspx 文件,类似于 PHP 的正常设置方式)。

我做了以下安装单声道:

$ apt-get install libapache2-mod-mono mono-apache-server2 mono-devel
$ a2dismod mod_mono
$ a2enmod mod_mono_auto

我已经确认 mod_mono 正在被 Apache 加载。但是,我尝试加载的任何 .aspx 页面都未经处理返回,并且仍然具有application/x-asp-netMIME 类型。就好像 mod_mono 处理程序永远不会在 Apache 中注册。

以下是 的内容/etc/mod_mono_auto.load:

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

这是/etc/mod_mono_auto.conf:

MonoAutoApplication enabled
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 .dll
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx

我什至尝试过明确设置处理程序:

AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .asp

似乎没有任何帮助。任何想法如何让这个工作?

ubuntu apache-2.2 asp.net mono .net
  • 1 个回答
  • 1836 Views
Martin Hope
Quandary
Asked: 2010-03-03 04:03:05 +0800 CST

Linux 上的 ASP.NET/单声道性能

  • 0

有人知道 Linux 上的 asp.net/mono 性能如何吗?

我的意思是,哪个服务器为您提供最佳性能/交付时间(Apache/Apache2、xsp2、lighthttp、nginx 等)?
由于所有的 asp.net 都通过 xsp2,我会说 xsp2 肯定是最快的,但它可能缺少 lighthttp 提供的许多功能(例如 mod_dosevasive、URL 重写等)。

apache-2.2 asp.net mono
  • 2 个回答
  • 1105 Views
Martin Hope
ASergan
Asked: 2010-02-15 11:16:57 +0800 CST

有没有人在红帽企业上成功安装了 Mono(Linux .NET 框架项目)?

  • 1

有没有人在红帽 linux 企业上成功安装 Mono(Linux .NET 框架项目)?

linux mono
  • 1 个回答
  • 212 Views
Martin Hope
JL.
Asked: 2009-08-07 12:03:52 +0800 CST

更改代码文件后是否需要重新启动 Mono?

  • 2

我已经在 Apache 下安装了 Mono 及其工作。

我的问题是 - 每次我对 Apache 下的任何 asp.net 文件进行任何更改时,我是否需要重新启动单声道服务,无论是 .cs 还是 web.config 中的配置更改?

apache-2.2 mono
  • 2 个回答
  • 1445 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve