평소 원격으로 SSH, ORACLE로 접속되던게 갑자기 안될때.
[root@ORCL /]# cd /etc/sysconfig/
[root@ORCL sysconfig]# vi selinux
SELINUX=enforcing → SELINUX=disabled 변경
# 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.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= can take one of these three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
그리고 reboot
[root@ORCL sysconfig]# shutdown -r now
하지만 나의 경우는 어이없게도 아래의 경우였다.
그래도 안되면 ifconfig명령어로 현재 서버의 IP를 확인해보고, IP가 VMware에서 할당한 NAT에 설정한 IP와 맞지 않다면 직접 IP를 지정한다.
[root@ORCL ~]# cd /etc/sysconfig/network-scripts/
[root@ORCL network-scripts]# ls
ifcfg-ens160
[root@ORCL network-scripts]# vi ifcfg-ens160
수정전
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=dhcp
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=ens160
UUID=773e120a-a4a3-4adf-882c-e101bc355ae5
DEVICE=ens160
ONBOOT=yes
수정후
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
IPADDR=192.168.209.133
NETMASK=255.255.255.0
GATEWAY=192.168.209.2
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=ens160
UUID=773e120a-a4a3-4adf-882c-e101bc355ae5
DEVICE=ens160
ONBOOT=yes