Centos 7系统下重启apache/nginx/mysql/php-fpm的命令

Centos 7系统跟原来Centos 6有所不同,重启apache服务器、nginx服务器、mysql、php-fpm的命令不一样了,服务器运维人员需要注意一下了。

apache服务器

启动

systemctl start httpd

停止

systemctl stop httpd

重启

systemctl restart httpd

nginx服务器

启动

systemctl start nginx

停止

systemctl stop nginx

重启

systemctl restart nginx

mysql数据库

启动

systemctl start mysqld

停止

systemctl stop mysqld

重启

systemctl restart mysqld

php-fpm

启动

systemctl start php-fpm

停止

systemctl stop php-fpm

重启

systemctl restart php-fpm

赞 (0) 评论 分享 ()