我在Debian Jessie上启动samba时遇到问题.我不明白该怎么做,因为似乎故意让samba脚本包装器无法工作.
我尝试发出update-rc.d samba默认值,但它不会修改系统配置以在启动时启动.
解决方法
使用以下命令启用samba:
$sudo systemctl enable smbd.service nmbd.service Synchronizing state for smbd.service with sysvinit using update-rc.d... Executing /usr/sbin/update-rc.d smbd defaults Executing /usr/sbin/update-rc.d smbd enable Synchronizing state for nmbd.service with sysvinit using update-rc.d... Executing /usr/sbin/update-rc.d nmbd defaults Executing /usr/sbin/update-rc.d nmbd enable $
并检查:
$sudo systemctl status smbd ● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd) Loaded: loaded (/etc/init.d/smbd) Active: active (running) since Mon 2016-02-22 18:56:27 JST; 12min ago CGroup: /system.slice/smbd.service ├─3756 /usr/sbin/smbd -D └─3771 /usr/sbin/smbd -D Feb 22 18:56:27 debian smbd[3747]: Starting SMB/CIFS daemon: smbd. Feb 22 19:03:13 debian smbd[4042]: Reloading /etc/samba/smb.conf: smbd. $