欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-06-28 10:55:22
apache启动systemctl start httpd停止systemctl stop httpd重启systemctl restart httpdmysql启动systemctl start mysqld停止systemctl stop mysqld重启systemctl restart my ......

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