今天突然发现不能用共享名 \raspberrypi 打开局域网共享了,用\192.168.1.111 的 ip 形式可以打开
root@raspberrypi:~# /etc/init.d/samba restart [....] Restarting nmbd (via systemctl): nmbd.serviceJob for nmbd.service failed. See 'systemctl status nmbd.service' and 'journalctl -xn' for details. failed!
root@raspberrypi:~# systemctl status nmbd.service ● nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd) Loaded: loaded (/etc/init.d/nmbd) Active: failed (Result: exit-code) since Mon 2018-06-04 10:39:25 CST; 35s ago Process: 5968 ExecStart=/etc/init.d/nmbd start (code=exited, status=1/FAILURE)
Jun 04 10:39:25 raspberrypi nmbd[5968]: Segmentation fault Jun 04 10:39:25 raspberrypi nmbd[5968]: Starting NetBIOS name server: nmbdSegmentation fault Jun 04 10:39:25 raspberrypi nmbd[5968]: failed! Jun 04 10:39:25 raspberrypi systemd[1]: nmbd.service: control process exited, code=exited status=1 Jun 04 10:39:25 raspberrypi systemd[1]: Failed to start LSB: start Samba NetBIOS nameserver (nmbd). Jun 04 10:39:25 raspberrypi systemd[1]: Unit nmbd.service entered failed state.
-- The result is failed. Jun 04 10:39:25 raspberrypi systemd[1]: Unit nmbd.service entered failed state. Jun 04 10:40:01 raspberrypi CRON[6013]: pam_unix(cron:session): session opened for user root by (uid=0) Jun 04 10:40:01 raspberrypi CRON[6014]: pam_unix(cron:session): session opened for user root by (uid=0) Jun 04 10:40:01 raspberrypi CRON[6015]: pam_unix(cron:session): session opened for user root by (uid=0) Jun 04 10:40:01 raspberrypi CRON[6024]: (root) CMD (. /etc/profile; /bin/bash /root/monitor.sh >/dev/null 2>&1)
发现是 nmbd 服务启动不了,昨天装了个 ftp,不知是不是因为这个破坏了相关文件