nginx常用命令

介绍

工作中常用到 putty 连接远程的 vps 操作, 手输命令太麻烦且容易出错, 因此直接拷贝常用的 nginx 命令更为高效

::: code-group

# 注意:必要时加上sudo
# 查找路径
whereis nginx

# 启动
service nginx start

# 查看版本号
nginx -V

# 停止
nginx -s stop

# 退出
nginx -s quit

# 重启加载配置
nginx -s reload

:::

修复刷新404

参考

Last updated

Was this helpful?