nginx安裝配置

 

 

cd /export/app

tar –zxvf  pcre-8.12.tar.gz

cd pcre-8.12

./configure –prefix=/usr/local/pcre

make && make install

 

 

cd /export/a

tar –zxvf  zlib-1.2.8.tar.gz

cd zlib-1.2.8

./configure –prefix=/usr/local/zlib

make && make install

 

 

cd /export/app

tar –zxvf openssl-1.0.1j.tar.gz

cd  openssl-1.0.1j

./configure –prefix=/usr/local/openssl

make && make install

 

 

cd /export/servers

tar –zxvf  nginx-1.6.0.tar.gz

cd /export/servers/nginx-1.6.0

./configure --prefix=/usr/local/nginx

make && make install

 

 

 

維護:

 

pkill -9 nginx

 

/usr/nginx/sbin/nginx -s reload

 

# 啓動

/usr/nginx/sbin/nginx

 

##檢查配置是否正確

/usr/nginx/sbin/nginx -t

nginx -t -c /usr/nginx/conf/nginx.conf

 

 

 

發佈了287 篇原創文章 · 獲贊 12 · 訪問量 3萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章