環境:Redhat 6.4
ORACLE11g RAC
在安裝ORACLE11g之前需要關閉操作系統的防火牆和SELinux。
1、關閉防火牆:iptables -F————————————清除防火牆策略
service iptables stop———————關閉防火牆服務
chkconfig iptables off—————— 禁止防火牆服務開機自啟動
2、關閉SELinux
應修改配置文件/etc/selinux/config中的“SELINUX”參數的值,
# SELINUX=enforcing
SELINUX=disabled
但是誤將“SELINUXTYPE”看成“SELINUX”,設置了SELINUXTYPE參數:
#SELINUXTYPE=targeted
SELINUXTYPE=disabled
問題現象:
重啟時提示:
unable to load selinux policy. machine is in enforcing mode. halting now. kernel panic-not syncing:attempted to kill init!
解決方法:
系統啟動的時候,按下‘e’鍵進入grub編輯界面,編輯grub菜單,使用上下鍵選擇“kernel ” 一行,按‘e’鍵進入編輯,在末尾增加“enforcing=0”,按“enter”保存設置並退到上一層,按‘b’鍵繼續引導后正常開機。收到恢復“/etc/selinux/config”中的配置信息。再按需求修改“SELINUX=disabled”。