본문 바로가기

Linux Server 구축/6-1. Proxy Server

FATAL: Could not determine fully qualified hostname 해결방법


- squid 서비스 시작시 아래와 같은 에러 메시지가 나올시 해결 방법

 
# service squid restart
squid 를 정지 중:                                          [실패]
init_cache_dir /var/spool/squid... /etc/init.d/squid: line 54:  6128 중지됨               $SQUID -z -F -D >> /var/log/squid/squid.out 2>&1
squid (을)를 시작 중: /etc/init.d/squid: line 53:  6129 중지됨               $SQUID $SQUID_OPTS >> /var/log/squid/squid.out 2>&1
                                                           [실패]


# /usr/sbin/./squid -z
FATAL: Could not determine fully qualified hostname.  Please set 'visible_hostname'

Squid Cache (Version 2.6.STABLE6): Terminated abnormally.
CPU Usage: 0.006 seconds = 0.002 user + 0.004 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
중지됨



해결 방법

 
# vi /etc/squid/squid.conf

- 중략

# TAG: visible_hostname
#       If you want to present a special hostname in error messages, etc,
#       define this.  Otherwise, the return value of gethostname()
#       will be used. If you have multiple caches in a cluster and
#       get errors about IP-forwarding you must set them to have individual
#       names with this setting.
#
#Default:
# none
visible_hostname server2 - 이 부분을 추가해 준다. server2 는 자신의 시스템 호스트네임이다.

- 중략

# service squid start


'Linux Server 구축 > 6-1. Proxy Server' 카테고리의 다른 글

Proxy Server - Squid  (0) 2009.01.23