Nginx管理命令

5,837次阅读
没有评论

共计 864 个字符,预计需要花费 3 分钟才能阅读完成。

Nginx管理命令
查看软件版本及已编译参数

[root@localhost conf]# /usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.12.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) 
built with OpenSSL 1.0.2k-fips  26 Jan 2017
TLS SNI support enabled
configure arguments: --user=www --group=www --prefix=/usr/local/nginx-1.12.2 --with-mail_ssl_module --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-http_sub_module

检测Nginx配置文件语法有无问题,推荐启动和重启程序前都测试下。

[root@localhost conf]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx-1.12.2/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx-1.12.2/conf/nginx.conf test is successful

启动Nginx

[root@localhost conf]# /usr/local/nginx/sbin/nginx

重新加载Nginx配置,配置文件修改后利用此命令可以避免重新启动Nginx程序使修改过的配置立即生效

[root@localhost conf]# /usr/local/nginx/sbin/nginx -s reload

停止Nginx

[root@localhost conf]# /usr/local/nginx/sbin/nginx -s stop
正文完
 0
Yvan
版权声明:本站原创文章,由 Yvan 于2018-03-04发表,共计864字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)

IT运维网

IT运维网
IT运维网
一个与IT运维相关的网站
用户数
18081
文章数
224
评论数
45
阅读量
1990012
一言一句话
-「
文章搜索
热门文章
EVE-NG全系列模板镜像(2025-12-08更新)

EVE-NG全系列模板镜像(2025-12-08更新)

链接:https://pan.baidu.com/s/1bbNFX_rUvpukapjEZ49ASw 提取码:...
热评文章
EVE-NG全系列模板镜像(2025-12-08更新)

EVE-NG全系列模板镜像(2025-12-08更新)

链接:https://pan.baidu.com/s/1bbNFX_rUvpukapjEZ49ASw 提取码:...
最新评论
Yvan Yvan 不清楚你那边的具体情况,所以我也说不上来,有问题可以在群内直接讨论!~
Yvan Yvan 目前针对12.5.2版本的话我这边没有。
fukua2025 fukua2025 ETX有没有patch好的下载地址
fits_996 fits_996 nxosv9k-7.0.3.I7.8.tgz有些镜像开不起来是什么情况。
killingangel killingangel 楼主这种开源精神 赞赞赞赞
wangshushu wangshushu 必须点赞
wangshushu wangshushu 楼主这种开源精神 大赞一个
Anthony Anthony 牛逼!特意登陆评论下
yvan yvan 已更新版本及更新链接!~!~