Squid fatal error: Could not determine fully qualified hostname
ถ้าหากคุณเพิ่งติดตั้งเครื่องสำหรับทำ proxy server แล้วเจอ error ตามตัวอย่างด้านล่าง เมื่อทำการ start squid
[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
ให้ลองใช้คำสั่ง service squid status หรือเข้าไปตรวจสอบ log ที่ /var/log/message แล้วพบข้อความ
FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname'
แสดงว่าเครื่องไม่สามารถที่จะ resolve ชื่อเครื่องตัวเองเป็น IP address ได้ วิธีแก้ไขให้ไปเพิ่ม ที่ /etc/hosts.conf ตามตัวอย่างด้านล่าง
xxx.xxx.xxx.xxx ezy1.ezylinux.com ezy1
โดยที่ xxx.xxx.xxx.xxx คือหมายเลข IP address ของเครื่อง
จากน้ันลอง start squid อีกครั้ง
คำค้นยอดนิยม: squid, centos squid log could not specify full hostname


