国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
Nginx的安裝 - 奔跑的羚羊 - JavaEye技術(shù)網(wǎng)站
1.下載pcre
#wgethttp://jaist.dl.sourceforge.net/project/pcre/pcre/7.9/pcre-7.9.tar.gz
2.安裝pcre-7.9.tar.gz
Java代碼
  1. #tar zxvf pcre-7.9.tar.gz  
  2. #cd pcre-7.9/  
  3. #./configure  
  4. #make && make install  


3.下載nginx
#wget http://sysoev.ru/nginx/nginx-0.7.61.tar.gz
4.解壓
Java代碼
  1. #tar -zxvf nginx-0.7.61.tar.gz  
  2. #cd nginx-0.7.61  
  3. #./configure --prefix=/usr/local/nginx --with-pcre=/root/pcre-7.9/ --with-http_stub_status_module  --with-http_realip_module  
  4. #make  
  5. #make install  


5.選項
-c </path/to/config> 為 Nginx 指定一個配置文件,來代替缺省的。
-t 不運行,而僅僅測試配置文件。nginx 將檢查配置文件的語法的正確性,并嘗試打開配置文件中所引用到的文件。
-v 顯示 nginx 的版本。
-V 顯示 nginx 的版本,編譯器版本和配置參數(shù)。

6.中止運行的進程:
Java代碼
  1. #ps aux | egrep '(PID|nginx)'  
  2. USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND  
  3. root      2213  0.0  0.0   6784  2036 ?        Ss   03:01   0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf  
  4. #kill -15 2213  


平滑改變 nginx 配置的選項(請注意,在重載前,要先測試一下配置文件):
Java代碼
  1. #nginx -t -c /etc/nginx/nginx.conf  
  2. 2006/09/16 13:07:10 [info] 15686#0: the configuration file /etc/nginx/nginx.conf syntax is ok  
  3. 2006/09/16 13:07:10 [info] 15686#0: the configuration file /etc/nginx/nginx.conf was tested successfully  
  4. #ps aux | egrep '(PID|nginx)'  
  5. USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND  
  6. root      2213  0.0  0.0   6784  2036 ?        Ss   03:01   0:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf  
  7. #kill -HUP 2213  
本站僅提供存儲服務,所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請點擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
Nginx安裝
CentOS源碼編譯安裝Nginx
Nginx負載均衡(主備)+Keepalived
CentOS6.5安裝nginx及負載均衡配置
Centos下 Nginx安裝與配置
FastDFS 結(jié)合 nginx 安裝與配置
更多類似文章 >>
生活服務
分享 收藏 導長圖 關(guān)注 下載文章
綁定賬號成功
后續(xù)可登錄賬號暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點擊這里聯(lián)系客服!

聯(lián)系客服