Centos新的系统跟原来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
评论