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服务

猜你喜欢

转载自www.cnblogs.com/tomsongqi/p/11122328.html