This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test config | |
$ nginx -t | |
nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok | |
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful | |
It is also possible to enable the debugging for a particular IP address: | |
events { | |
debug_connection 127.0.0.1; | |
} | |
Print the nginx version. | |
$ nginx -v | |
nginx version: nginx/1.8.0 | |
Print the nginx version, compiler version, and configure script parameters. | |
$ nginx -V | |
nginx version: nginx/1.8.0 | |
built by clang 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) | |
built with OpenSSL 1.0.2d 9 Jul 2015 | |
TLS SNI support enabled | |
configure arguments: --prefix=/usr/local/Cellar/nginx/1.8.0 --with-http_ssl_module --with-pcre --with-ipv6 --sbin-path=/usr/local/Cellar/nginx/1.8.0/bin/nginx --with-cc-opt='-I/usr/local/Cellar/pcre/8.37/include -I/usr/local/Cellar/openssl/1.0.2d_1/include' --with-ld-opt='-L/usr/local/Cellar/pcre/8.37/lib -L/usr/local/Cellar/openssl/1.0.2d_1/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --pid-path=/usr/local/var/run/nginx.pid --lock-path=/usr/local/var/run/nginx.lock --http-client-body-temp-path=/usr/local/var/run/nginx/client_body_temp --http-proxy-temp-path=/usr/local/var/run/nginx/proxy_temp --http-fastcgi-temp-path=/usr/local/var/run/nginx/fastcgi_temp --http-uwsgi-temp-path=/usr/local/var/run/nginx/uwsgi_temp --http-scgi-temp-path=/usr/local/var/run/nginx/scgi_temp --http-log-path=/usr/local/var/log/nginx/access.log --error-log-path=/usr/local/var/log/nginx/error.log --with-http_gzip_static_module | |
No comments:
Post a Comment