启动squid的时候提示 Failed ,FATAL: No port defined

启动的时候提示:

[#47#root@master ~]#/etc/init.d/squid start

Starting squid: ....................                       [FAILED]

[#51#root@master ~]#squid -kcheck

squid: ERROR: No running copy


查看错误日志:

[#48#root@master ~]#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 1024 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    # 此处提示未指定端口

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     12 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%

提示:没有指定端口。

[#54#root@master ~]#vim /etc/squid/squid.conf

# Squid normally  listens  to  port  3128

http_port 3128   #squid端口没有打开是因为之前做过实验改为了80,就把这个给注销掉了80端口也                     是可以的但是80端口此时也是注销状态所以才会无法启动。

#http_port 80 accel vhost vport

[#51#root@master ~]#squid -kcheck

squid: ERROR: No running copy       # 此提示无意义,是因为没有启动起来

[#52#root@master ~]#/etc/init.d/squid start        

Starting squid: .                                          [  OK  ]

[#53#root@master ~]#squid -kcheck                 # 正常启动后它也消失了。



你可能感兴趣的:(socket,version,created)