在 centos7 版本中的 各项服务启动命令

来源:互联网 发布:譬如工画师 不能知自心 编辑:程序博客网 时间:2024/06/13 03:03

服务管理命令

    1、Apache 服务管理命令启动:

systemctl start httpd关闭:

systemctl stop httpd重启:

systemctl restart httpd状态:

systemctl status httpd

2、PHP 服务管理命令启动:

/usr/sbin/php-fpm关闭:

pkill php-fpm

3、MySQL 服务管理命令启动:

systemctl start mysqld关闭:

systemctl stop mysqld重启:

systemctl restart mysqld状态:

systemctl status mysqld

4、FTP 服务管理命令启动:

systemctl start vsftpd关闭:

systemctl stop vsftpd重启:

systemctl restart vsftpd状态:

systemctl status vsftpd

原创粉丝点击