安裝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

相關文章
相關標籤/搜索