-s都是采用向 Nginx 发送信号的方式。
上述是采用向 Nginx 发送信号的方式,或者使用:
poechant@ubuntu:service nginx reload-c表示configuration,指定配置文件。
有两种可以查看 Nginx 的版本信息的参数。第一种如下:
poechant@ubuntu:/usr/local/nginx$ ./sbin/nginx -v nginx: nginx version: nginx/1.0.0另一种显示的是详细的版本信息:
poechant@ubuntu:/usr/local/nginx$ ./sbin/nginx -V nginx: nginx version: nginx/1.0.0 nginx: built by gcc 4.3.3 (Ubuntu 4.3.3-5ubuntu4) nginx: TLS SNI support enabled nginx: configure arguments: --with-http_ssl_module --with-openssl=/home/luming/openssl-1.0.0d/如果出现如上的提示信息,表示没有访问错误日志文件和进程,可以sudo(super user do)一下:
poerchant@ubuntu:/usr/local/nginx$ sudo ./sbin/nginx -t nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful如果显示如上,则表示配置文件正确。否则,会有相关提示。
或者:
poechant@ubuntu:/user/local/nginx$ ./sbin/nginx -?以上这些涵盖了 Nginx 日常维护的所有基本操作,另外还有向 master 进程发送信号的相关命令,我们会在后续看到。
-
转载请注明来自“柳大的博客”: blog..net/Poechant