我是靠谱客的博主 玩命树叶,这篇文章主要介绍Ubuntu16 systemctl 命令 开机自启,现在分享给大家,希望可以做个参考。

 

systemctl 是Linux系统最新的初始化系统(init),兼容了service

查看服务状态

systemctl status ssh
service ssh status

开启服务

systemctl start ssh
service ssh start

重启服务

systemctl restart ssh
service ssh restart

关闭服务

systemctl stop ssh
service ssh stop

查看开机自启的服务列表

systemctl list-unit-files | grep enabled

查看启动失败的服务列表

systemctl --failed

服务设置开机自启

systemctl enable ssh

服务关闭开机自启

systemctl disable ssh

OK.

最后

以上就是玩命树叶最近收集整理的关于Ubuntu16 systemctl 命令 开机自启的全部内容,更多相关Ubuntu16内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(54)

评论列表共有 0 条评论

立即
投稿
返回
顶部