CentOS7でsambaが起動しない
このブログ記事は移転しました。10秒後に自動でリダイレクトします。
----------------------
CentOS7の環境でsmbを起動するためにsystemctl start smb
したところ…
12月 06 15:27:12 cent sudo[21191]: username : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/systemctl start smb.service 12月 06 15:27:12 cent systemd[1]: Starting Samba SMB Daemon... -- Subject: Unit smb.service has begun with start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit smb.service has begun starting up. 12月 06 15:27:12 cent systemd[1]: smb.service: main process exited, code=exited, status=1/FAILURE 12月 06 15:27:12 cent systemd[1]: Failed to start Samba SMB Daemon. -- Subject: Unit smb.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit smb.service has failed. -- -- The result is failed. 12月 06 15:27:12 cent systemd[1]: Unit smb.service entered failed state.
チェックポイント
- systemdのstatusがenableになっているか?
systemctl list-unit-files
/etc/samba/smb.conf
は正しく設定されているか?
CentOS6.xから7へアップグレードした際に調子が悪くなったので、yum remove samba
して再インストール。他にもいろいろなエラーが発生したので、プロセス管理機構が大幅に変わるようなアップデートは新規インストールした方がよいなと改めて思う。