错误

$ sudo service smbd restartJob for smbd.service failed because the control process exited with
error code. See "systemctl status smbd.service" and "journalctl -xe"
for details.
$ systemctl status smbd.servicesmbd.service - Samba SMB DaemonLoaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)Active: failed (Result: exit-code) since Fri 2020-10-02 09:41:43 CST; 1min 1s agoDocs: man:smbd(8)man:samba(7)man:smb.conf(5)Process: 9861 ExecReload=/bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)Process: 28312 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)Main PID: 28312 (code=exited, status=1/FAILURE)Oct 02 09:41:43 ubuntu systemd[1]: Starting Samba SMB Daemon...
Oct 02 09:41:43 ubuntu systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Oct 02 09:41:43 ubuntu systemd[1]: Failed to start Samba SMB Daemon.
Oct 02 09:41:43 ubuntu systemd[1]: smbd.service: Unit entered failed state.
Oct 02 09:41:43 ubuntu systemd[1]: smbd.service: Failed with result 'exit-code'.
$ sudo systemctl start smb.service
Failed to start smb.service: Unit smb.service not found.

一步一步检测错误

$ testparmLoad 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.

这个时候发现配置文件的问题smb.conf 里面没有设置好

vim /etc/samb/smb.conf

重新修改配置文件

root@ubuntu:~# testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: The "syslog" option is deprecated
Processing section "[printers]"
Processing section "[print$]"
Processing section "[Home share]"
Processing section "[LXY]"
Loaded services file OK.
Server role: ROLE_STANDALONE

这个时候发现好了
然后

 sudo systemctl restart smbd.service

就好了

Job for smbd.service failed because the control process exited with error code. See “systemctl statu相关推荐

  1. Job for slapd.service failed because the control process exited with error code. See systemctl stat

    安装启动LDAP的时候如果报错 [root@cdh-server1 ~]# systemctl start slapd Job for slapd.service failed because the ...

  2. Job for postfix.service failed because the control process exited with error code. See systemctl st

    CentOS 7.2 启动postfix的时候报错: [root@ ~]# systemctl start postfix Job for postfix.service failed because ...

  3. Job for mysqld.service failed because the control process exited with error code. See “systemctl sta

    记一次服务器被攻击事件 由于阿里云一直提醒我服务器被攻击,部分端口被封禁等等,所以我登陆了阿里云网页端重启了一下ECS实例,结果 ...重启之后用Xshell连接不上服务器了,几番尝试无果后找到了阿里 ...

  4. Job for network.service failed because the control process exited with error code. See systemctl st

    问题详情: 操作系统:centos7.6 root@oraclelinux ~]# ping www.baidu.coom ping: www.baidu.coom: Name or service ...

  5. Job for docker.service failed because the control process exited with error code. See systemctl sta

    docker启动的时候出现这个错误: Job for docker.service failed because the control process exitedwith error code. ...

  6. 已解决:Job for docker.service failed because the control process exited with error code. See “systemctl

    1.问题描述 Docker宿主机重启后,再次执行systemctl start docker命令时报如下错误: [root@k8s-node02 docker]# systemctl start do ...

  7. Reids报错解决:Job for redis-server.service failed because the control process exited with error code.

    此文首发于我的个人博客:Reids报错解决 Job for redis-server.service failed because the control process exited with er ...

  8. Job for network.service failed because the control process exited with error code问题

    最小化安装了centos7 当配置静态ip的时候,执行 重启网卡的命令 systemctl restart network 但是报了 Job for network.service failed be ...

  9. Ubuntu中重启ssh服务时提示:Job for ssh.service failed because the control process exited with error code. See

    场景 在Ubuntu中重启ssh服务时提示: Job for ssh.service failed because the control process exited with error code ...

最新文章

  1. 防火墙产品原理与应用:NAT支持的特殊协议
  2. Device.js——检测设备平台、操作系统的Javascript 库
  3. flink state ttl
  4. 剑网三缘起应老玩家要求调整规则,几分钟就能搞定,获得足够声望
  5. PXC 部署前置检查
  6. input点击事件不能用_用js简单写一个计算器
  7. Written English-书面-一般将来时
  8. OpenCV3学习(4.3)——图像形态学(膨胀,腐蚀)
  9. js 在html中新建个节点,javascript节点是什么?
  10. append 注意事项
  11. ubuntu 17.x/CentOS 7.x中安装JAVA JDK
  12. OTSU算法 (大津算法)理解代码
  13. 青年志愿者演讲稿合集15篇
  14. 微信小程序使用node-xlsx解析excel文件的云函数
  15. 【开源小软件 】Bing每日壁纸 V1.2.1
  16. 7z解压crc错误_百度网盘压缩下载文件的CRC校验错误的解决方法
  17. Android控制wifi开关
  18. imx6 linux 开发环境,米尔iMX6UL开发板Linux操作系统的环境部署
  19. Unity创建Animation动画无法播放问题
  20. 单片机的两个外围电路:复位电路和时钟电路

热门文章

  1. 在计算机中dos代表什么意思,Boot是什么意思
  2. c语言程序题是如何判分的,C语言编程题判分系统的研究与实现
  3. linux设备模型的主要功能,Linux设备模型(3)
  4. 两表格合并_六个高效办公Excel小技巧,让你提前下班两小时!
  5. java jaxb注解xmlnull_java – 将空值表示为xml jaxb中的空元素
  6. aes加密字符串c++_springboot2.2.X手册:防抓包?快速实现API接口数据加密
  7. linux内存不足+段错误,在linux下代码运行出现段错误,求大神
  8. python获取excel数据进行判断输出结果到excel,如何使用python xlrd/xlwt从一个excel工作簿提取数据并输出到另一个excel工作簿?...
  9. 空格 过滤多个_CAD选择过滤器的运算符如何使用?
  10. oracle数据库内核,深入内核:Oracle数据库里SELECT操作Hang解析