我使用 chkconfig --list发现Samba一共有3个相关的启动服务 samba samba-ab-dc smbd
关闭自启指令
sudo chkconfig --level 2345 samba off
sudo chkconfig --level 2345 samba-ab-dc off
sudo chkconfig --level 2345 smbd off
使用list再次查询
samba 0:off 1:off 2:off 3:off 4:off 5:off 6:off
samba-ad-dc 0:off 1:off 2:off 3:off 4:off 5:off 6:off
smbd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
但是我重启以后 发现samba还是在默认启动
关闭自启指令
sudo chkconfig --level 2345 samba off
sudo chkconfig --level 2345 samba-ab-dc off
sudo chkconfig --level 2345 smbd off
使用list再次查询
samba 0:off 1:off 2:off 3:off 4:off 5:off 6:off
samba-ad-dc 0:off 1:off 2:off 3:off 4:off 5:off 6:off
smbd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
但是我重启以后 发现samba还是在默认启动
