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
上記は、「Linux で nginx を再起動する方法」という記事のタイトルと、関連する内容を紹介しました。PHP チュートリアルに興味のある友人に役立つことを願っています。