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
开机自启
chkconfig httpd on
chkconfig mysqld on
一、MySQL启动方式
1、使用 service 启动:service mysqld start
2、使用 mysqld 脚本启动:/etc/init.d/mysqld start
3、使用 safe_mysqld 启动:safe_mysqld&
二、MySQL停止
1、使用 service 启动: service mysqld stop
2、使用 mysqld 脚本启动:/etc/init.d/mysqld stop
3、mysqladmin shutdown
三、MySQL重启
1、使用 service 启动:service mysqld restart
2、使用 mysqld 脚本启动:/etc/init.d/mysqld restart