预览加载中,请您耐心等待几秒...
1/6
2/6
3/6
4/6
5/6
6/6

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

CentOS上搭建Nginx+Mono运行asp.net环境配置教程安装步骤:一、获取开源相关程序:1、利用CentOSLinux系统自带的yum命令安装、升级所需的程序库:sudo-sLANG=Cyum-yinstallgccgcc-c++autoconflibjpeglibjpeg-devellibpnglibpng-develfreetypefreetype-devellibxml2libxml2-develzlibzlib-develglibcglibc-develglib2glib2-develbzip2bzip2-develbisonpkgconfigglib2-develgettextmake2、下载程序源码包:Nginx安装包:下载地址:http://nginx.org/en/download.htmlmkdir-p/downcd/downwgethttp://nginx.org/download/nginx-1.1.11.tar.gzMono下载:官网:http://download.mono-project.com/sources/mono/(请下载最新版)wgethttp://download.mono-project.com/sources/mono/mono-2.10.7.tar.bz2libgdiplus下载:http://download.mono-project.com/sources/libgdiplus/(请下载最新版)wgethttp://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2xsp下载:http://download.mono-project.com/sources/xsp/(请下载最新版)wgethttp://download.mono-project.com/sources/xsp/xsp-2.10.2.tar.bz2pcre下载(Nginx所需的.pcre库):ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/(请下最新版)wgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.tar.gz二、安装编译Nginx:1、安装安装Nginx所需的pcre库:cd/downtarzxvfpcre-8.21.tar.gzcdpcre-8.21/./configuremake&&makeinstallcd../2、创建www用户和组/usr/sbin/groupaddwww/usr/sbin/useradd-gwwwwwwmkdir-p/data0/webchmod+w/data0/webchown-Rwww:www/data0/web3、安装Nginxtarzxvfnginx-1.1.11.tar.gzcdnginx-1.1.11/./configure--user=www--group=www--prefix=/opt/nginx--with-http_stub_status_module--with-http_ssl_modulemake&&makeinstallcd../4、开放80端口:iptables-IINPUT-ptcp--dport80-jACCEPT启动nginx/opt/nginx/sbin/nginx在浏览器上输入访问地址http://192.168.1.1(根据个人本机地址页定),正常会看到默认nginx页面三、安装编译Mono1、安装libgdiplus:cd/downtar-jxvflibgdiplus-2.10.tar.bz2cdlibgdiplus-2.10./configure--prefix=/opt/monomake&&makeinstallecho"/opt/mono/lib">/etc/ld.so.conf.d/mono.confldconfig2、安装Mono:tar–jxvfmono-2.10.7.tar.bz2cdmono-2.10.7./configure--prefix=/opt/monomake&&makeinstall//此处时间较长echoexportPKG_CONFIG_PATH=/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH>>~/.bash_profileechoexportLD_LIBRARY_PATH=/opt/mono/lib:$LD_LIBRARY_PATH>>~/.bash_profileechoexportPATH=/opt/mono/bin:$PA