Centos7 nginx php 启动关闭命令

作者:

在

php-fpm 启动、停止、重启

启动
systemctl start php-fpm
停止
systemctl stop php-fpm
重启
systemctl restart php-fpm

Nginx命令

#启动nginx服务
systemctl start nginx.service
#停止nginx服务
systemctl stop nginx.service
#重启nginx服务
systemctl restart nginx.service
#重新读取nginx配置
systemctl reload nginx.service
也可以这样
nginx -s stop    #停止服务 
nginx -s quit    #退出服务 
nginx -s reopen    #重新打开日志文件 
nginx -s reload    #重新加载配置文件

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注