この文書では、一般的な操作nginxの、価値収集を説明しています。 |
そのnginx.confの構文エラーをチェックしてください
[ルート@ localhostのconfに]#は/ usr / local / nginxの/ sbinに/ nginxの-t nginxの:構文/usr/local/nginx/conf/nginx.conf設定ファイルはokです nginxの:設定ファイルは/ usr / local / nginxの/ confに/ nginx.confテストは成功です
有効にする設定ファイルを更新します。
[ルート@ localhostのconfに]#は/ usr / local / nginxの/ sbinに/ nginxの-sリロード
nginxのは間違って設定するかどうかを検証します
[ルート@ localhostのsbinの]#は/ usr / local / nginxの/ sbinに/ nginxの-t -c /usr/local/nginx/conf/nginx.conf nginxの:コンフィギュレーション・ファイル/usr/local/nginx/conf/nginx.conf構文はokです nginxの構成ファイル/usr/local/nginx/conf/nginx.confテストは成功です
nginxの開始
[ルート@ localhostのsbinの]#は/ usr / local / nginxの/ sbinに/ nginxの-c /usr/local/nginx/conf/nginx.conf
ビューnginxのプロセス
[ルート@ localhostのsbinの]#psの-ef | grepをするのnginxの ルート4870 1 0 22時35?00:00:00 nginxの:マスター・プロセスは/ usr / local / nginxの/ sbinに/ nginxの-c /usr/local/nginx/conf/nginx.conf nginxの4871 4870 0午前22時35分?午前0時00分00秒nginxの:ワーカープロセスの ルート4873 2389 0 22:35のPTS / 0午前0時00分00秒のgrep --color =オートnginxs