간혹 부팅 도중 centos나 rhel 부팅이 너무 느릴 때가 있다.

그때 보면 콘솔에 starting sendmail service .... 과정에서 1분~20분 정도를 잡아먹는데

그 이유는 /etc/hosts의 도메인을 탐색하기 때문이다.

/etc/hosts에 FQDN(fully qualified domain name)이 적혀있지 않아 발생한다.

해결법은 /etc/hosts의 내용을 변경하는 방법 혹은 sendmail 서비스를 시작하지 않게 하는 방법이다.

1. /etc/hosts

# vi /etc/hosts

기존: 192.168.1.2 localhost

변경: 192.168.1.2 localhost.test.com

 

2. sendmail 서비스 시작 비활성화

# chkconfig --list | grep send

sendmail        0:해제  1:해제  2:활성  3:활성  4:활성  5:활성  6:해제

# chkconfig --level 2345 sendmail off

 

※chkconfig 사용법 간략

chkconfig --list [name]
chkconfig --add name
chkconfig --del name
chkconfig [--level levels] name <on|off|reset>
chkconfig [--level levels] name

'Knowledge > OS' 카테고리의 다른 글

로그파일에 특정 문자열 발생시 액션 스크립트  (0) 2015.06.24
snmp 기본설정  (0) 2015.06.24
ssh 접속이 id 입력 후 느린 경우 해결(centos)  (0) 2015.01.16
cp 주의사항  (0) 2015.01.14
mount directory to directory  (0) 2015.01.14
Posted by neo-orcl
,