安装nginx

nginx / tengine 安装 选Nginx仍是Tengine,您本身看,二者选其一 下载Tenginenginx

wget http://tengine.taobao.org/download/tengine-1.4.5.tar.gz

tar -zxvf tengine-1.4.5.tar.gz

cd tengine-1.4.5

wget http://tengine.taobao.org/download/tengine-1.4.5.tar.gz

tar -zxvf tengine-1.4.5.tar.gz

cd tengine-1.4.5

2.2 下载Nginxgit

wget http://nginx.org/download/nginx-1.4.0.tar.gz

tar -zxvf nginx-1.4.0.tar.gz

cd nginx-1.4.0

wget http://nginx.org/download/nginx-1.4.0.tar.gz

tar -zxvf nginx-1.4.0.tar.gz

cd nginx-1.4.0

wget https://github.com/3078825/nginx-image/archive/master.zip

unzip master.zip

./configure --add-module=./nginx-image-master

make

make install

wget https://github.com/3078825/nginx-image/archive/master.zip

unzip master.zip

$./configure --prefix=/usr/local/nginx  --with-http_concat_module  --add-module=./ngx_image_thumb-master/
   # ./configure --prefix=/usr/local/nginx  --with-http_concat_module 若是是tengine 添加contact模块 ---这一句最重要了

make

# make install clean

设置开启启动 # echo "/usr/local/nginx/sbin/nginx">>/etc/rc.localgithub

设定操做系统最大打开文件数 # ulimit -SHn 102400 # echo "ulimit -SHn 102400" >>/etc/rc.local操作系统

cd /usr/local/nginx/ ./nginx.sh stop ./nginx.sh startcode

相关文章
相关标签/搜索