Squid fatal error: Could not determine fully qualified hostname
ถ้าหากคุณเพิ่งติดตั้งเครื่องสำหรับทำ proxy server แล้วเจอ error ตามตัวอย่างด้านล่าง เมื่อทำการ start squid
[shell][root@ezylinux ~]# service squid start
Starting squid: /etc/init.d/squid: line 162: 28178 Aborted $SQUID $SQUID_OPTS >>/var/log/squid/squid.out 2>&1[/shell]
ให้ลองใช้คำสั่ง service squid status หรือเข้าไปตรวจสอบ log ที่ /var/log/message แล้วพบข้อความ
[text]FATAL: Could not determine fully qualified hostname. Please set ‘visible_hostname'[/text]
แสดงว่าเครื่องไม่สามารถที่จะ resolve ชื่อเครื่องตัวเองเป็น IP address ได้ วิธีแก้ไขให้ไปเพิ่ม ที่ /etc/hosts.conf ตามตัวอย่างด้านล่าง
[text]xxx.xxx.xxx.xxx ezy1.ezylinux.com ezy1[/text]
โดยที่ xxx.xxx.xxx.xxx คือหมายเลข IP address ของเครื่อง
จากน้ันลอง start squid อีกครั้ง