squid-2.5.STABLE14-1.4E
[root@centos45 squid]# service squid start
在未设置squid.conf状况下出现错误"/var/spool/squid....."
[root@centos45 squid]# vi squid.conf
http_port 3128
icp_prot 3130
cache_dir ufs /var/spool/squid 100 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
pid_filename /var/run/squid.pid
#auth_param basic children 5
#auth_param basic realm Squid proxy-caching web server
#auth_param basic credentialsttl 2 hours
http_access allow all
cache_effective_user squid
cache_effective_group squid
cache_mgr oice@126.com
[root@centos45 etc]# su -l squid -c "/usr/sbin/squid -D"
This account is currently not available.
[root@centos45 etc]# ll /usr/sbin/squid
-rwxr-xr-x 1 root root 654724 May 5 08:13 /usr/sbin/squid
FATAL: Could not determine fully qualified hostname. Please set 'visible_hostname'
Squid Cache (Version 2.5.STABLE14): Terminated abnormally.
CPU Usage: 0.028 seconds = 0.019 user + 0.009 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Aborted
visible_hostname feng-squid
init_cache_dir /var/spool/squid... Starting squid: . [ OK ]
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN