查看编译时候的参数
➜ /usr/local/webserver/nginx/sbin/nginx -V
nginx version: nginx/1.10.1
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/root/pcre-8.39/
指定配置文件地址
/usr/local/webserver/nginx/sbin/nginx -c /usr/local/webserver/nginx/conf/nginx.conf #指定配置文件地址
检测配置文件
/usr/local/webserver/nginx/sbin/nginx -t
重新加载配置文件(不停止服务)
/usr/local/webserver/nginx/sbin/nginx -s reload