文章標題 Linux下如何重啟nginx

WBOY
發布: 2016-07-28 08:29:15
原創
1065 人瀏覽過

1 尋找nginx安裝目錄
ps -ef | grep nginx

<code>oot     <span>21908</span><span>1</span><span>0</span><span>11</span><span>:</span><span>50</span> ?        <span>00</span><span>:</span><span>00</span><span>:</span><span>00</span><span>nginx:</span> master process **<span>/usr/local</span><span>/nginx/sbin</span><span>/nginx -c /usr</span><span>/local/nginx</span><span>/conf/nginx</span>.conf**
nobody   <span>21909</span><span>21908</span><span>0</span><span>11</span><span>:</span><span>50</span> ?        <span>00</span><span>:</span><span>00</span><span>:</span><span>00</span><span>nginx:</span> worker process                                          
nobody   <span>21910</span><span>21908</span><span>0</span><span>11</span><span>:</span><span>50</span> ?        <span>00</span><span>:</span><span>00</span><span>:</span><span>00</span><span>nginx:</span> worker process                                          
nobody   <span>21911</span><span>21908</span><span>0</span><span>11</span><span>:</span><span>50</span> ?        <span>00</span><span>:</span><span>00</span><span>:</span><span>00</span><span>nginx:</span> worker process                                          
nobody   <span>21912</span><span>21908</span><span>0</span><span>11</span><span>:</span><span>50</span> ?        <span>00</span><span>:</span><span>00</span><span>:</span><span>00</span><span>nginx:</span> worker process                                          
root     <span>24883</span><span>16057</span><span>0</span><span>14</span><span>:</span><span>34</span> pts/<span>2</span><span>00</span><span>:</span><span>00</span><span>:</span><span>00</span> grep nginx
[root<span>@iZ2558pjddbZ</span> sbin]<span># ^C</span></code>
登入後複製

master後邊就是nginx的安裝目錄
2 進入安裝目錄 sbin下(cd /usr/local/nginx/sbin) 執行 nginx -s reload
3另一種方法
/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

以上就介紹了 文章標題 Linux下如何重啟nginx,包含了方面的內容,希望對PHP教程有興趣的朋友有所幫助。

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板