1. Oracle Linux 8 시작

A) Linux GUI 접속










B) 설치 내역 확인

cat /etc/oracle-release
cat /etc/redhat-release
uname -r
[root@ol8 ~]# cat /etc/oracle-release
Oracle Linux Server release 8.1

[root@ol8 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.1 (Ootpa)

[root@ol8 ~]# uname -r
4.18.0-147.el8.x86_64


C) 리눅스 설정 변경

vi /etc/hosts 로 서버 정보 추가
vi /etc/hosts
[root@ol8 ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

10.0.1.20       ol8


vi /etc/selinux/config 로 SELinux 설정 변경
SELINUX=permissive
SELinux 모드 permissive 로 적용
setenforce permissive

기존의 값을 주석처리하고 permissive로 대체

[root@ol8 ~]# cat /etc/selinux/config | grep SELINUX=
# SELINUX= can take one of these three values:
#SELINUX=enforcing
SELINUX=permissive

실시간으로 적용

[root@ol8 ~]# setenforce permissive


vi /etc/fstab 로 tmpfs 재설정
tmpfs                   /dev/shm                tmpfs   size=8g         0 0
/dev/shm 영역 remount 수행
mount -o remount /dev/shm
tmpfs                   /dev/shm                tmpfs   size=8g         0 0
[root@ol8 ~]# df -h | grep shm
tmpfs                4.9G     0  4.9G   0% /dev/shm
 
[root@ol8 ~]# mount -o remount /dev/shm

[root@ol8 ~]# df -h | grep shm
tmpfs                8.0G     0  8.0G   0% /dev/shm


D) 사용하지 않는 서비스 끄기

### 블루투스 중지
systemctl stop bluetooth.service
systemctl disable bluetooth.service
### 방화벽 중지
systemctl stop firewalld
systemctl disable firewalld
### 시간 동기화 중지
systemctl stop chronyd
systemctl disable chronyd
### NTP 중지
systemctl stop ntpdate
systemctl disable ntpdate
### DNS 중지
systemctl stop avahi-daemon
systemctl disable avahi-daemon
### 가상 시스템 관리 중지
systemctl stop libvirtd
systemctl disable libvirtd.service
[root@ol8 ~]# systemctl stop bluetooth.service
[root@ol8 ~]# systemctl disable bluetooth.service
Removed /etc/systemd/system/dbus-org.bluez.service.
Removed /etc/systemd/system/bluetooth.target.wants/bluetooth.service.

[root@ol8 ~]# systemctl stop firewalld
[root@ol8 ~]# systemctl disable firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

[root@ol8 ~]# systemctl stop chronyd
[root@ol8 ~]# systemctl disable chronyd

[root@ol8 ~]# systemctl stop ntpdate
Failed to stop ntpdate.service: Unit ntpdate.service not loaded.
[root@ol8 ~]# systemctl disable ntpdate
Failed to disable unit: Unit file ntpdate.service does not exist.

[root@ol8 ~]# systemctl stop avahi-daemon
Warning: Stopping avahi-daemon.service, but it can still be activated by:
  avahi-daemon.socket
[root@ol8 ~]# systemctl disable avahi-daemon
Removed /etc/systemd/system/multi-user.target.wants/avahi-daemon.service.
Removed /etc/systemd/system/sockets.target.wants/avahi-daemon.socket.
Removed /etc/systemd/system/dbus-org.freedesktop.Avahi.service.

[root@ol8 ~]# systemctl stop libvirtd
[root@ol8 ~]# systemctl disable libvirtd.service
Removed /etc/systemd/system/multi-user.target.wants/libvirtd.service.
Removed /etc/systemd/system/sockets.target.wants/virtlogd.socket.
Removed /etc/systemd/system/sockets.target.wants/virtlockd.socket.


  • 레이블 없음