linux启动php、mysql并设置开机自启
启动php 启动:sudo systemctl start php-fpm 停止:sudo systemctl stop php-fpm 重启:sudo systemctl restart php-fpm 查看状态:sudo systemctl status php-fpm 设置开机自启:sudo systemctl enable php-fpm 取消开机自启:sudo systemctl disable php-fpm 启动mysql sudo systemctl start mysqld 或 sudo systemctl start mysql 查看服务状态 sudo systemctl status mysqld sudo systemctl status mysql 开机自启:sudo systemctl enable mysqld 停止服务:sudo systemctl stop mysqld 重启服务:sudo systemctl restart mysqld(修改配置文件后常用)
