㈠ centos7的服务启动命令是啥
service 服务名 start 不过,后面centos7 ,改成用systemctl了
在 centos7 版本中的 各项服务启动命令:
服务管理命令
1、Apache 服务管理命令启动:
systemctl start httpd关闭:
systemctl stop httpd重启:
systemctl restart httpd状态:
systemctl status httpd
㈡ “centos”7怎么重启mysql5.7
有三种方法
1.将mysqld放到/etc/init.d,用/etc/init.d/mysqld restart命令重启;
(cp mysql-5.5.31/support-files/mysql.server /etc/init.d/mysqld)
2.用systemctl systemctl restart mysql或者systemctl restart mariadb;
3.service mysql restart,service mariadb restart。