centos7重启apache、nginx、mysql、php-fpm命令

一、apache

1 启动:
systemctl start httpd
2 停止:
systemctl stop httpd
3 重启:
systemctl restart httpd

service httpd restart

二、mysql

1 启动:
systemctl start mysqld
2 停止:
systemctl stop mysqld
3 重启:
systemctl restart mysqld
systemctl restart mariadb

三、php-fpm

1 启动:
systemctl start php-fpm
2 停止:
systemctl stop php-fpm
3 重启:
systemctl restart php-fpm

四、nginx

1 启动:
systemctl start nginx
2 停止:
systemctl stop nginx
3 重启:
systemctl restart nginx

共有 0 条评论

发表评论

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

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据