摘要: 1. 创建nginx运行账户www并加入到www组,不允许www用户直接登录系统,查看创建。 groupadd www useradd -g www www -s /bin/false tail /etc/passwd 2.进入nginx的配置文件目录 cd /usr/local/nginx/con 阅读全文
posted @ 2022-08-02 09:08 橘白CC 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 查看运行状态:sudo systemctl status nginx 停止并启动Nginx sudo systemctl stop nginx Nginx重启sudo systemctl reload nginx 注意:Nginx未激活不能进行重启 Nginx强制重启sudo systemctl r 阅读全文
posted @ 2022-08-02 08:41 橘白CC 阅读(11) 评论(0) 推荐(0) 编辑