systemctl命令

前端之家收集整理的这篇文章主要介绍了systemctl命令前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

systemctl命令是centos7新的命令!!他的前身是chkconfig命令!!相对于chkconfig命令来说,他的功能更加的丰富!!

chkconfig  --list      与systemctl   list-unit-files功能一样!!

分享图片

###################################################################################################################

下面开始正式讲systemctl命令,这里我就以一个firewalld的服务作为解释!!

systemctl  start  firewalld                              启动服务
systemctl  stop  firewalld                               关闭服务
systemctl  status  firewalld                            查看状态 
systemctl  enable   firewalld                          开机自启动
systemctl  disable   firewalld                         关闭开机自启动
systemctl  is-enable   firewalld                      查看是否开机自启动状态

##############################################################################################################################################################

/usr/lib/systemd/system  在此目录下存放的所有unit和targe

systemctl list-unit-files                             ##列出所有的服务systemctl list-units --all --type=service             ##查看所有的service

猜你在找的CentOS相关文章