Linux

server01 host 설정 - 파일럿 서버 4

Crysis 2022. 8. 23. 20:40
vi /etc/hosts

127.0.0.1 localhost server01
192.168.56.101 server01.hadoop.com server01
192.168.56.102 server02.hadoop.com server02
192.168.56.103 server03.hadoop.com server03
vi /etc/sysconfig/network

HOSTNAME을 server01.hadoop.com으로 변경

 

service network restart

 

커널 파라미터 매개변수 / 방화벽

 

vi /etc/selinux/config

service iptables stop
chkconfig iptables off
chkconfig ip6tables off
sysctl -w vm.swappiness=100
vi /etc/sysctl.conf

 

 

sysctl.conf 제일 밑줄에 vm.swapiness=100을 입력

 

vi /etc/rc.local

echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/defrag
vi /etc/security/limits.conf

root soft nofile 65536
root hard nofile 65536
* soft nofile 65536
* hard nofile 65536

root soft nproc 32768
root hard nproc 32768
* soft nproc 32768
* hard nproc 32768

까지 작성하고  reboot하면 완료