CentOS 5.5 upgrade 5.7 更新後 大部份服務啟動失敗

這問題是因為 Selinux 被開啟的源故,因此 CentOS 更新完成後重新開機。服務主體的執行程序無法正常的存取它所必要的檔案,於是就變成服務啟動失敗的狀況。

要解決此問題可以關閉 Selinux 模組:

vim /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
# SELINUXTYPE= can take one of these two values:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.


在次將 Selinux 模組重新啟用,之後當系統再次重新開機時。Selinux 會重新 relabel ,等待完成後,系統服務亦可正常啟動。

如果你跟我一樣對 Selinux 不了解的話,可以看看這篇 鳥哥的 Linux 私房菜 「程序管理與 SELinux 初探」。



WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )


You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s