Ubuntu Service samba被屏蔽,无法启动


9

我正在尝试在Ubuntu服务器上运行samba服务,它给了我错误信息,并说它被掩盖了并且死了,我该如何解决?是什么导致它像这样?

这是我得到的错误:-

无法启动samba.service:单位samba.service被屏蔽。如果我在Virtual Box上运行Ubuntu服务器,那会是问题吗?谢谢。

在此处输入图片说明


运行sudo systemctl unmask samba.service,然后检查..
heemayl

它仍然说是被掩盖了
Mohamed Gabr

Answers:


16

这不是错误。

您所描述的是Debian员工的故意行为。

您不应在Debian / Ubuntu系统的操作系统上以这种方式控制samba服务。你应该来操纵smbdnmbd以及samba-ad-dc根据需要的服务。

samba.targetDebian / Ubuntu sambavan Smoorenburg 旧rc脚本的原始工作没有任何保障。这开始/停止了这三个整体。其他人为其他系统化操作系统创建了它们。Debian人没有。

因此,在您阅读Debian / Ubuntu doco的地方,诸如

服务桑巴行动
请记住,由于Debian Linux和Ubuntu Linux是系统化的操作系统,因此这不再是可用的事情。

只是增加了混乱...

Debian之外的世界所知道的东西在Debian世界中samba.service被称为samba-ad-dc.service。同样,nmbd.service并且smbd.service最初nmb.servicesmb.serviceDebian并存。

那么,你读通用有关Samba谈论systemd操作系统DOCO nmbsmb以及samba服务,您必须精神上进行翻译的Debian / Ubuntu的,特别是对后者的名字。

进一步阅读


所以你说我应该单独启动它们,而不用担心桑巴舞状态说什么?我写>> sudo服务smbd启动。当我检查它时,我写>> sudo服务smbd状态。听起来对吗?
Mohamed Gabr
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.