如何修复 Failed to restart samba.service: Unit samba.service not found (Debian & Ubuntu)
问题:
尝试在 Ubuntu 或 Debian 上使用以下命令重启 Samba 服务时
restart_samba.sh
sudo systemctl restart samba你看到此错误消息:
samba_service_not_found.txt
Failed to restart samba.service: Unit samba.service not found.解决方案
samba 服务名为 smbd,而不是 samba。使用以下命令重启它
restart_smbd.sh
sudo systemctl restart smbdCheck out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow