[squid-users] SQUID refuses to listen on any TCP Port

Alex Rousskov rousskov at measurement-factory.com
Wed Mar 2 14:45:15 UTC 2022


On 3/1/22 21:15, 苏 格 wrote:

> I run squid 4.17 on ubuntu 20.04.4 and it starts without any error. But 
> no matter what TCP port I specify, it won’t listen on it.Netstat -tunpal 
> shows only udp port associated with squid.
> 
> I have compiled it using the following options:
> 
>   ./configure  --prefix=/usr/local --localstatedir=/var 
> --libexecdir=${prefix}/lib/squid  --srcdir=. 
> --datadir=${prefix}/share/squid --sysconfdir=/etc/squid 
> --with-default-user=proxy --with-logdir=/var/log 
> --with-pidfile=/var/run/squid.pid --enable-ssl --enable-dlmalloc 
> --enable-gnuregex --enable-xmalloc-debug --enable-xmalloc-debug-trace 
> --enable-xmalloc-statistics --enable-async-io --enable-icmp 
> --enable-delay-pools --enable-useragent-log--enable-kill-parent-hack 
> --enable-cachemgr-hostname --enable-htpc --enable-forw-via-db 
> --enable-cache-digests --enable-follow-x-forwarded-for --enable-auth 
> --enable-linux-netfilter --with-openssl --with-filedescriptors=65536 
> --enable-ltdl-convenience

Do you use "workers" in squid.conf? If yes, try temporary setting that 
directive to 1 or starting Squid with "-N" to see whether this is an 
SMP-related problem.

Please share cache.log output that appears when you start Squid. That 
log may be in /var/log, but I am not sure (and it depends, in part, on 
your Squid configuration). If there is no output there, you may need to 
start your Squid by hand and give a "-d1" command line option (among 
others) to see startup output on the console.

Sharing you *_port directives may also be helpful.

Alex.


More information about the squid-users mailing list