文章标题 Linux下如何重启nginx

WBOY
Lepaskan: 2016-07-28 08:29:15
asal
1056 orang telah melayarinya

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>
Salin selepas log masuk

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教程有兴趣的朋友有所帮助。

Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan
Tentang kita Penafian Sitemap
Laman web PHP Cina:Latihan PHP dalam talian kebajikan awam,Bantu pelajar PHP berkembang dengan cepat!