LaTeX958295 views
ヒストリア285629 views
高校日本史190001 views
Computer365889 views
小学社会308934 views
雑学1472890 views
高校国語786215 views
中学理科1627539 views
MathPython493064 views
数学講師2862036 views

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

などと表示される。