Prompt when starting:
[#47 #[email protected] ~]#/etc/init.d/squid start
Starting squid: ........ ....... [FAILED]
[#51 #[email protected] ~] #squid-kcheck
Squid:ERROR:No Running Copy
To view the error log:
[#48 #[email protected] ~] #cat/var/log/squid/cache.log
2016/03/09 09:28:15| Starting Squid Cache version 3.1.23 for X86_64-redhat-linux-gnu ...
2016/03/09 09:28:15| Process ID 2813
2016/03/09 09:28:15| With 1024x768 file descriptors available
2016/03/09 09:28:15| Initializing IP Cache ...
2016/03/09 09:28:15| DNS Socket created at [::], FD 7
2016/03/09 09:28:15| DNS Socket created at 0.0.0.0, FD 8
2016/03/09 09:28:15| Adding Domain Localdomain from/etc/resolv.conf
2016/03/09 09:28:15| Adding Domain Localdomain from/etc/resolv.conf
2016/03/09 09:28:15| Adding nameserver 192.168.1.1 from/etc/resolv.conf
2016/03/09 09:28:15| Adding nameserver 8.8.8.8 from/etc/resolv.conf
2016/03/09 09:28:15| Adding nameserver 192.168.73.2 from/etc/resolv.conf
2016/03/09 09:28:15| User-agent logging is disabled.
2016/03/09 09:28:15| Referer logging is disabled.
2016/03/09 09:28:15| UNLINKD Pipe opened on FD 13
2016/03/09 09:28:15| Local Cache Digest enabled; Rebuild/rewrite every 3600/3600 sec
2016/03/09 09:28:15| Store Logging Disabled
2016/03/09 09:28:15| Swap maxSize 102400 + 28672 KB, estimated 10082 objects
2016/03/09 09:28:15| Target Number of buckets:504
2016/03/09 09:28:15| Using 8192 Store Buckets
2016/03/09 09:28:15| Max Mem size:28672 KB
2016/03/09 09:28:15| Max Swap size:102400 KB
2016/03/09 09:28:15| Version 1 of swap file with LFS support detected ...
2016/03/09 09:28:15| Rebuilding storage in/var/spool/squid (DIRTY)
2016/03/09 09:28:15| Using Least Load Store dir selection
2016/03/09 09:28:15| Set Current Directory To/var/spool/squid
Fatal:no Port defined # No ports are indicated here
Squid Cache (Version 3.1.23): Terminated abnormally.
CPU usage:0.040 seconds = 0.022 user + 0.018 sys
Maximum resident size:39408 KB
Page faults with physical I/o: 0
Memory usage for squid via mallinfo ():
Total space in arena:2952 KB
Ordinary blocks:2933 KB blks
Small blocks:0 KB 1 blks
Holding blocks:1104 KB 4 blks
Free Small blocks:0 KB
Free Ordinary blocks:18 KB
Total in use:4037 KB 137%
Total Free:18 KB 1%
Tip: No ports are specified.
[#54 #[email protected] ~] #vim/etc/squid/squid.conf
# Squid normally listens to port 3128
Http_port 3128 #squid端口没有打开是因为之前做过实验改为了80, just write this off. Port 80 is also available, but port 80 is also logged out at this time so it will not start.
#http_port Accel Vhost Vport
[#51 #[email protected] ~] #squid-kcheck
Squid:ERROR:No running copy # This hint is meaningless because it didn't start up
[#52 #[email protected] ~]#/etc/init.d/squid start
Starting squid:. [OK]
[#53 #[email protected] ~] #squid-kcheck # It also disappears after normal startup.
Start squid When prompted Failed, fatal:no Port defined