nginx / tengine 安裝 選Nginx仍是Tengine,您本身看,二者選其一 下載Tenginenginx
2.2 下載Nginxgit
$./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 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