CentOSでNGINXで設定ファイルが正しいか確認する
CentOS7 で NGINX の設定ファイルが正しいことを確認するには
/usr/sbin/nginx -t
とする。正しいときは
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
と表示される。正しくないときは
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] zero size shared memory zone "addr"
nginx: configuration file /etc/nginx/nginx.conf test failed
などと表示される。
NGINX
-
CentOS7にNGINXをインストールする
0
208
-
-
-
-
NGINXの設定ファイルを変更するときの注意点
0
4387
-
-
-