开机启动项管理
1、开启服务开机自启动:
---- systemctl enable 服务名称
---- systemctl enable mysqld
2、关闭服务开机自启动:
---- systemctl disable 服务名称
---- systemctl disable mysqld
服务管理
1、服务开启:
---- systemctl start 服务名称
---- systemctl start mysqld
2、服务关闭:
---- systemctl stop 服务名称
---- systemctl stop mysqld
3、服务重启:
---- systemctl restart 服务名称
---- systemctl restart mysqld
4、查看服务:
---- systemctl status 服务名称
---- systemctl status mysqld
本文由 lnlidawei 原创、整理、转载,本文来自于【博客园】; 整理和转载的文章的版权归属于【原创作者】; 转载或引用时请【保留文章的来源信息】:https://www.cnblogs.com/lnlidawei/p/13992122.html