图文详解TCP_IP基础原理和技术电子书pdf下载
[root@bogon apache]# service smb start
提示如下错误:
Redirecting to /bin/systemctl start smb.service
Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details.
[root@bogon apache]# systemctl status smb.service
查看结果如下:
?.smb.service - Samba SMB Daemon
Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2018-07-05 20:06:27 PDT; 27s ago
Process: 13960 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 13960 (code=exited, status=1/FAILURE)
Jul 05 20:06:27 bogon systemd[1]: Starting Samba SMB Daemon...
Jul 05 20:06:27 bogon systemd[1]: smb.service: main process exited, code=exited, status=1/FAILURE
Jul 05 20:06:27 bogon systemd[1]: Failed to start Samba SMB Daemon.
Jul 05 20:06:27 bogon systemd[1]: Unit smb.service entered failed state.
Jul 05 20:06:27 bogon systemd[1]: smb.service failed.
执行[root@bogon apache]# testparm 进行测试
结果如下:
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: Ignoring invalid value 'share' for parameter 'security'
Error loading services.
说明还是配置文件出错了
查看版本:
[root@bogon ~]# smbd -F -S
smbd version 4.4.4 started.
Copyright Andrew Tridgell and the Samba Team 1992-2016
ERROR: smbd is already running. File /run/smbd.pid exists and process id 14314 is running.
security=share在新版中已经被废弃了
配置中删除
启动成功
转载请注明:谷谷点程序 » 启动samba错误,Job for smb.service failed because the control process exited with error code