linux下smb启动报错,启动samba错误,Job for smb.service failed because the control process exited with error cod...

[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在新版中已经被废弃了

配置中删除

启动成功

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值