IT袋

当前位置:主页 > 经验教程 > 系统教程 >

Linux常用命令之systemctl用法详解

Linux常用命令之systemctl用法详解(2)

时间:2023-11-09 14:39:45 来源:IT袋 作者:马勇
导读:Linux常用命令之systemctl用法详解,5、将特定服务设置成开机启动 systemctl enable httpd 6、取消开机启动 systemctl disable httpd 7、查看服务是否设置成开机启动 看输出结果,就知道是否是开机启动

Linux常用命令之systemctl用法详解

Linux常用命令之systemctl用法详解

5、将特定服务设置成开机启动

systemctl enable httpd

Linux常用命令之systemctl用法详解

6、取消开机启动

systemctl disable httpd

Linux常用命令之systemctl用法详解

7、查看服务是否设置成开机启动

看输出结果,就知道是否是开机启动,enabled 代表开机启动,disabled 代表开机不启动

systemctl is-enabled httpd

相关阅读