0
点赞
收藏
分享

微信扫一扫

nginx命令

unadlib 2022-02-18 阅读 95


安装

# yum安装
yum install nginx

验证文件

nginx安装目录 /usr/local/nginx

进入​/usr/local/nginx/sbin

默认文件

./nginx -t

指定文件

./nginx -t -c conf/nginx.conf

2. 启动

./nginx

3.重启

./nginx -s reload

4. 查看进程号

ps -ef|grep nginx


其他

nginx -s signal

stop — fast shutdown
quit — graceful shutdown
reload — reloading the configuration file
reopen — reopening the log files

kill -s QUIT 1628

# 版本信息
nginx -v

# 版本信息及配置信息
nginx -V


-c 指定配置文件

-t 验证配置文件




举报

相关推荐

0 条评论