systemctl 常用操作

Posted tomsongqi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了systemctl 常用操作相关的知识,希望对你有一定的参考价值。

以samba为列

 

systemctl start smb       #启动smb服务

systemctl restart smb   #重启smb服务

systemctl stop smb       #停止smb服务

systemctl status smb    #查看smb服务状态

systemctl reload smb    #平滑重启smb

 

systemctl enable smb   #开机自启smb服务

systemctl disable smb   #开机不启动smb服务

以上是关于systemctl 常用操作的主要内容,如果未能解决你的问题,请参考以下文章