Systemctl 常用命令
docker>Evan2017年10月28日 (六) 08:50的版本
如何激活服务并在启动时启用或禁用服务(即系统启动时自动启动服务) systemctl is-active ssh.service # systemctl enable ssh.service # systemctl disable ssh.service 如何屏蔽(让它不能启动)或显示服务(如 httpd.service) # systemctl mask httpd.service ln -s '/dev/null' '/etc/systemd/system/httpd.service' # systemctl unmask httpd.service rm '/etc/systemd/system/httpd.service'
参考
[ http://man.linuxde.net/systemctl systemctl命令 ]