sudo -s LANG=C yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel bison pkgconfig glib2-devel gettext make
mkdir -p /down cd /down wget http://nginx.org/download/nginx-1.1.11.tar.gz
wget http://download.mono-project.com/sources/mono/mono-2.10.7.tar.bz2
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2
wget http://download.mono-project.com/sources/xsp/xsp-2.10.2.tar.bz2
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.21.tar.gz
cd /down tar zxvf pcre-8.21.tar.gz cd pcre-8.21/ ./configure make && make install cd ../
/usr/sbin/groupadd www /usr/sbin/useradd -g www www mkdir -p /data0/web chmod +w /data0/web chown -R www:www /data0/web
tar zxvf nginx-1.1.11.tar.gz cd nginx-1.1.11/ ./configure --user=www --group=www --prefix=/opt/nginx --with-http_stub_status_module --with-http_ssl_module make && make install cd ../
iptables -I INPUT -p tcp --dport 80 -j ACCEPT 启动nginx /opt/nginx/sbin/nginx
cd /down tar -jxvf libgdiplus-2.10.tar.bz2 cd libgdiplus-2.10 ./configure --prefix=/opt/mono make && make install echo "/opt/mono/lib" > /etc/ld.so.conf.d/mono.conf ldconfig
tar –jxvf mono-2.10.7.tar.bz2 cd mono-2.10.7 ./configure --prefix=/opt/mono make && make install //此处时间较长 echo export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH>>~/.bash_profile echo export LD_LIBRARY_PATH=/opt/mono/lib:$LD_LIBRARY_PATH>>~/.bash_profile echo export PATH=/opt/mono/bin:$PATH>>~/.bash_profile source ~/.bash_profile
cd /down tar –jxvf xsp-2.10.2.tar.bz2 ./configure --prefix=/opt/mono make && make install
server {
listen 80;
server_name localhost;
location / {
root /data0/web;
index index.html index.htm;
fastcgi_index Default.aspx;
fastcgi_pass 127.0.0.1:9000;
include fastcgi_params;
}
}
vi /opt/nginx/conf/fastcgi_params fastcgi_param PATH_INFO ""; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
/opt/nginx/sbin/nginx -s reload
fastcgi-mono-server2 /applications=/:/data0/web /socket=tcp:127.0.0.1:9000 &
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有