centos启动mysql,http并加入开机启动

#启动http

[root@172 network-scripts]# systemctl start httpd

#加入http到开机启动

[root@172 network-scripts]# systemctl enable httpd.service

#启动mysql

[root@172 network-scripts]# systemctl start mysqld

#加入mysql到开机启动

[root@172 network-scripts]# systemctl enable mysqld.service

你可能感兴趣的:(centos启动mysql,http并加入开机启动)