.


아파치 재 시작 안될경우

아파치 재 시작 안됨
[root@server ~]# service httpd restart
httpd not running, trying to start
[root@server ~]# service httpd start

아파치 로그를 보니까 아래와 같이 애러 발생
[root@server logs]# pwd
/usr/local/server/apache/logs
[root@server logs]# vi error_log

[Sun Mar 22 11:08:18 2009] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4
address of "server"
Configuration Failed 

해결: 호스트명 변경으로 해결
[root@server logs]# vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=localhost.localdomain
#HOSTNAME=server

[root@server logs]# hostname -v localhost
Setting hostname to `localhost'

[root@localhost ~]# service httpd restart
httpd not running, trying to start
[root@localhost ~]#
[root@localhost ~]# ps -ef | grep httpd
root      8786     1  0 11:12 ?        00:00:00 /usr/local/server/apache/bin/httpd -k restart
nobody    8787  8786  0 11:12 ?        00:00:00 /usr/local/server/apache/bin/httpd -k restart
nobody    8788  8786  0 11:12 ?        00:00:00 /usr/local/server/apache/bin/httpd -k restart
nobody    8789  8786  0 11:12 ?        00:00:00 /usr/local/server/apache/bin/httpd -k restart
nobody    8790  8786  0 11:12 ?        00:00:00 /usr/local/server/apache/bin/httpd -k restart
nobody    8791  8786  0 11:12 ?        00:00:00 /usr/local/server/apache/bin/httpd -k restart
root      8793  8744  0 11:12 pts/1    00:00:00 grep httpd 

 


.