Friday, April 29, 2011

Squid not starting with error visible hostname not set

Advertisements

[root@jlturbovps1 ~]#/etc/init.d/squid start
init_cache_dir /var/spool/squid... /etc/init.d/squid: line 62: 3944 Aborted $SQUID -z -F -D >> /var/log/squid/squid.out 2>&1
Starting squid: /etc/init.d/squid: line 42: 3945 Aborted $SQUID $SQUID_OPTS >> /var/log/squid/squid.out 2>&1 [FAILED]

#vi /etc/squid/squid.conf
visible_hostname GIVE_yourtour_hostname_here
:wq ##save it

Now start squid.

#/etc/init.d/squid start
init_cache_dir /var/spool/squid... Starting squid: . [ OK ]

Thats it.have fun.

3 comments:

  1. I have configured the dhcpd service but when i tried to restart the service it failed to start
    And no reason is shown on the terminal

    Please anyone can help me...

    ReplyDelete
  2. Its because there might be an error in your configuration file. recheck the syntax

    ReplyDelete
  3. thanx working 4 me ...

    ReplyDelete

Be nice. That's all.