aix vs linux 비교

init 관련 rc.local (linux vs aix)

infra 2021. 12. 29. 02:13

os재기동되면서 필수적으로 구동되어야 하는 rc.local [ AIX에서도 공통적으로 존재]

 

본작업을 하기 전 OS 클리닝(리부팅=refresh) 작업 하는 이유?

 

설정 미비한 부분(커널 파라미터,) 과 OS 재기동하면서 필수적으로 구동되어야 하는 rc.local 을 확인하기 위해서이다.

 

 

linux의 커널 파라미터 경로는 /etc/sysctl.conf , /etc/sysctl.d/

 

비교 명령어로 확인해봐도 /etc/sysctl.conf /etc/sysctl.d/99-sysctl.conf 같은 파일이며, 심볼릭 링크로 이어져 있다.

 

메모리 관련해서 외부망과 연결된 대규모 서비스에서 필요한 환경에서는  WEB/WAS가 있다면,

 

WAS = 동시접속자 수에 영향을 미칠 수 있다.

WEB = was서버쪽으로 포워딩하는 역할만 할뿐, 리소스 of 스택을 잡아먹는다. 그래서 메모리 효율을 잡아주어야 한다. 메모리 왜 잡아줘야 하는데? hang 을 유발할 뿐만 아니라, 운영 서버에서 swap메모리에 대한 빈도값과 메모리 반환 값을 파악해서 메모리 사용률을 가볍게 해야 된다.

 

 

 

 

rc0.d 부터 ~

 

숫자가 낮을 수록 50, 90 : 50이 우선적으로 부팅되면서 그다음 90이 부팅되면서 파악한다.

앞의 의미

 

K: Kill

S : Start

경로 /etc/rc.d/rc.local
내용
[root@호스트 /etc/rc.d]# cat rc.local 

#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot.

touch /var/lock/subsys/local

'aix vs linux 비교' 카테고리의 다른 글

passwd 변경 관련[AIX vs Linux]  (0) 2022.03.31
cp 명령어  (0) 2022.03.17
/etc/ssh/sshd_config  (0) 2021.03.04