4. nginx基本命令
2. 基本命令¶
# 查看版本
nginx -v
nginx -V # 查看详细信息,包含模块信息等
# 启动
nginx
systemctl start nginx
# 关闭
nginx -s stop
systemctl stop nginx
# 平滑重启
nginx -s reload
systemctl restart nginx
# 检查配置文件语法,有问题则启动会失败
nginx -t
# 查看
netstat -tunlp|grep 80
ps -ef|grep nginx
systemctl status nginx
浏览器访问ip
...
最后更新:
2022-02-20 13:32:53