版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014273681/article/details/80818254
apache
启动
systemctl start httpd
停止
systemctl stop httpd
重启
systemctl restart httpd
mysql
启动
systemctl start mysqld
停止
systemctl stop mysqld
重启
systemctl restart mysqld
Mysql服务重启
1、使用 service 启动:service mysqld restart
2、使用 mysqld 脚本启动:/etc/inint.d/mysqld restart
php-fpm
启动
systemctl start php-fpm
停止
systemctl stop php-fpm
重启
systemctl restart php-fpm
扫描二维码关注公众号,回复:
5032521 查看本文章
php-fpm启动命令:service php-fpm start
php-fpm停止命令:service php-fpm stop
php-fpm重启命令:service php-fpm restart
nginx
启动
systemctl start nginx
停止
systemctl stop nginx
重启
systemctl restart nginx
2、nginx启动、停止、无间断服务重启
[root@example ~]# service nginx start
[root@example ~]# service nginx stop
[root@example ~]# service nginx reload