gbvc 发表于 2015-11-19 13:27:06

Squid在重启时失足提示“NOT Determine....”

  不知为何,在批改了主机名后,squid有时重启的时辰会呈现如下错误提示:


  Stopping squid: 2012/12/06 00:08:48|



  WARNING: Could not determine this machines public hostname. Please configure one or set ""visible_hostname"".


  


  后来在网上找了很多办法,此中下面这个会有效:






[*]
  The hostname may not be set.
[*]
  The hostname may be missing the DNS zone or /etc/hosts files.
[*]
  The Squid system""s DNS client configuration may be incorrect or missing. On Unix, you should check the/etc/resolv.conf and /etc/host.conf files.


  If you see the fatal message mentioned previously, you need either to fix the hostname and DNS information or explicitly configure the hostname for Squid. In most cases, it is sufficient to ensure the hostname command returns a fully qualified hostname
and add an entry to /etc/hosts. If that doesn""t work, just set the visible hostname in squid.conf:



visible_hostname squid.packet-pushers.net(#vim /etc/squid/squid.conf添加即可)
页: [1]
查看完整版本: Squid在重启时失足提示“NOT Determine....”