[리눅스] 서버 환경 구성
yum repository 구성 (로컬)
설정 파일 : /etc/yum.repo/localserver.repo
c 컴파일러
설치 : yum install gcc
확인 : gcc --version
c++ 컴파일러
설치 : yum install gcc-c++
확인 : g++ --version
java
설치 : yum install java-1.8.0-openjdk.x86_64 (OS 기본 패키지 사용시시
확인 : java -version, javac -version
환경변수 : /etc/profile 등에 추가 "export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk.x86_64"
NTP 설정
설정 파일 : /etc/chrony.conf
DNS 설정
설정 파일 : /etc/resolv.conf, /etc/host.conf
커널 파라미터
Tuned-profile 이용 : tuned 이용
systemctl start tuned -> systemctl enable tuned -> tuned-adm list (리스트 확인) -> tuned-adm profile throughput-performance (프로필 설정)
Oracle 패키지 이용 : yum install tuned-profiles-oracle -> systemctl start tuned -> systemctl enable tuned -> tuned-adm profile oracle
커널파라미터 설정
설정 파일 : /etc/sysctl.conf(전체) 또는 /etc/sysctl.d/98-jeus.conf(개별)
로그 시간 설정
echo -e "HISTTIMEFORMAT=\"[%F %T] \"" >> /etc/profile