当前位置:主页 > 服务器 > Linux >

Centos7重启apache、nginx、mysql、php-fpm命令方法

时间:2022-02-01 10:17:49 | 栏目:Linux | 点击:

apache

启动

systemctl start httpd

停止

systemctl stop httpd

重启

systemctl restart httpd

mysql

启动

systemctl start mysqld

停止

systemctl stop mysqld

重启

systemctl restart mysqld

php-fpm

启动

systemctl start php-fpm

停止

systemctl stop php-fpm

重启

systemctl restart php-fpm

nginx

启动

systemctl start nginx

停止

systemctl stop nginx

重启

systemctl restart nginx

下面看下centos7重启php-fpm命令

php-fpm

/etc/init.d/php-fpm start
/etc/init.d/php-fpm stop
/etc/init.d/php-fpm restart
/etc/init.d/php-fpm reload

总结

您可能感兴趣的文章:

相关文章