Squid fatal error: Could not determine fully qualified hostname

Posted In Squid - By Tum. On Thursday, July 7th, 2011 With 0 Comments

squid cache proxyถ้าหากคุณเพิ่งติดตั้งเครื่องสำหรับทำ proxy server แล้วเจอ error ตามตัวอย่างด้านล่าง เมื่อทำการ start squid

ให้ลองใช้คำสั่ง 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 อีกครั้ง

คำค้นยอดนิยม: squid
Tags:

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

*