CentOS 6.0 安装 Mono + Nginx 运行 asp.net
2011-08-12 16:01
573 查看
网站上很多相关资料,但我在安装过程中与网上说有出入。以下文档是自己在虚拟机上,一步一步记录下来的。
1. 安装 CentOS 6.0 (以minimal 为样例)
2. yum installgcc bison pkgconfig glib2-devel gettext make
3. yum install gcc-c++
4. 自行下载 mono-2.10.3.tar.bz2 (从官网下载),放在 /usr/local/src/目录下
5. tar –jxvf mono-2.10.3.tar.bz2
6. cd mono-2.10.3
7. ./configure
8. make
9. make install
10. mono –V (查看是否安装成功,成功则显示版本信息)
11. 自行下载 xsp-2.10.2.tar.bz2 (从官网下载),放在 /usr/local/src/目录下
12. tar –jxvf xsp-2.10.2.tar.bz2
13. cd xsp-2.10.2
14. exportPKF_CONFIG_PATH=/usr/local/lib/pkgconfig (如果没有这个,在下步提示无mono库)
15. ./configure
16. make
17. make install
18. 自行下载 pcre-8.12.tar.gz (yu安装不了,因为库没有最新的,nginx服务器需要使用正则)
放在 /usr/local/src/目录下
19. tar –zxvf pcre-8.12.tar.gz
20. cd pcre-8.12
21. ./configure
22. make
23. make install
24. 自行下载nginx-1.0.5.tar.gz(从官网),放在 /usr/local/src/目录下
25. tar –zxvf nginx-1.0.5.tar.gz
26. cd nginx-1.0.5
27. ./configure
28. make
29. make install
30. 下载一个nginx的shell启动脚本,放在 /etc/init.d/下面
31. 开放80端口,iptables -IINPUT -p tcp --dport 80 -j ACCEPT
32. 在浏览器上输入访问地址 http://192.168.1.2,正常会看到默认nginx页面
33. vi/usr/local/nginx/conf/nginx.conf
34. vi /usr/local/nginx/conf/fastcgi_params,在最后增加两行
35. /etc/init.d/nginx restart,重新启动nginx
36. 启动 fastcgi_mono服务器
不知道为什么/applications加入服务名后就在nginx下提示找不到应用程序地址,所以把它删除了
参考内容:
配置NginxFastCGI: http://www.mono-project.com/FastCGI_Nginx
windows下nginx+mono+fastCGI部署asp.net网站
http://www.dabaoku.com/jiaocheng/biancheng/aspnet/201102248948.shtml
自动启动fastcgi_mono_server
http://yojimbo87.github.com/2010/03/14/mono-startup-script.html
关于Nginx的配置
http://www.bingzhuan.info/?p=248
1. 安装 CentOS 6.0 (以minimal 为样例)
2. yum installgcc bison pkgconfig glib2-devel gettext make
3. yum install gcc-c++
4. 自行下载 mono-2.10.3.tar.bz2 (从官网下载),放在 /usr/local/src/目录下
5. tar –jxvf mono-2.10.3.tar.bz2
6. cd mono-2.10.3
7. ./configure
8. make
9. make install
10. mono –V (查看是否安装成功,成功则显示版本信息)
11. 自行下载 xsp-2.10.2.tar.bz2 (从官网下载),放在 /usr/local/src/目录下
12. tar –jxvf xsp-2.10.2.tar.bz2
13. cd xsp-2.10.2
14. exportPKF_CONFIG_PATH=/usr/local/lib/pkgconfig (如果没有这个,在下步提示无mono库)
15. ./configure
16. make
17. make install
18. 自行下载 pcre-8.12.tar.gz (yu安装不了,因为库没有最新的,nginx服务器需要使用正则)
放在 /usr/local/src/目录下
19. tar –zxvf pcre-8.12.tar.gz
20. cd pcre-8.12
21. ./configure
22. make
23. make install
24. 自行下载nginx-1.0.5.tar.gz(从官网),放在 /usr/local/src/目录下
25. tar –zxvf nginx-1.0.5.tar.gz
26. cd nginx-1.0.5
27. ./configure
28. make
29. make install
30. 下载一个nginx的shell启动脚本,放在 /etc/init.d/下面
31. 开放80端口,iptables -IINPUT -p tcp --dport 80 -j ACCEPT
32. 在浏览器上输入访问地址 http://192.168.1.2,正常会看到默认nginx页面
33. vi/usr/local/nginx/conf/nginx.conf
server { listen 80; server_name localhost; location / { root /usr/local/nginx/html; index index.html index.htm; fastcgi_index Default.aspx; fastcgi_pass 127.0.0.1:9000; include fastcgi_params; } }
34. vi /usr/local/nginx/conf/fastcgi_params,在最后增加两行
fastcgi_param PATH_INFO ""; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
35. /etc/init.d/nginx restart,重新启动nginx
36. 启动 fastcgi_mono服务器
fastcgi-mono-server2 /applications=/:/usr/local/nginx/html//socket=tcp:127.0.0.1:9000
不知道为什么/applications加入服务名后就在nginx下提示找不到应用程序地址,所以把它删除了
参考内容:
配置NginxFastCGI: http://www.mono-project.com/FastCGI_Nginx
windows下nginx+mono+fastCGI部署asp.net网站
http://www.dabaoku.com/jiaocheng/biancheng/aspnet/201102248948.shtml
自动启动fastcgi_mono_server
http://yojimbo87.github.com/2010/03/14/mono-startup-script.html
关于Nginx的配置
http://www.bingzhuan.info/?p=248
相关文章推荐
- CentOS上搭建Nginx + Mono 运行 asp.net
- CentOS上搭建Nginx + Mono 运行 asp.net[转]
- CentOS上搭建Nginx + Mono 运行 asp.net
- CentOS上搭建Nginx+Mono运行asp.net环境的配置方法
- CentOS上搭建Nginx + Mono 运行 asp.net
- CentOS搭建Nginx+Mono运行ASP.NET环境
- CentOS 或 Fedora 下自动化安装mono和jexus的脚本(Linux下的Asp.net运行环境配置)
- CentOS上搭建Nginx + Mono 运行 asp.net
- CentOS上搭建Nginx + Mono 运行 asp.net
- CentOS上搭建Nginx + Mono 运行 asp.net
- CentOS上搭建Nginx + Mono 运行 asp.net
- CentOS上搭建Nginx + Mono 运行 asp.net
- Linux+Mono+Asp.net入门:05CentOs安装Mono(上)
- 配置 ASP.NET Linux( CentOS 6.5 ) 运行环境 MONO + Jexus
- 在Windows Azure 上运行 OpenSUSE Linux的虚拟机上安装 Mono 3.0.2, 测试ASP.NET WebAPI 失败(Mono 3.0.4上成功)
- centos下linux运行asp网站搭建配置-mono+nginx
- monodevelop ubuntu 安装和运行asp.net
- CentOS下nginx+mono+fastcgi构建asp.net服务器笔记
- 在Windows系统中用nginx与mono搭建asp.net运行环境,附详细例图与代码
- 配置 ASP.NET Linux( CentOS 6.5 ) 运行环境 MONO + Jexus