<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p><span style="font-size:12pt; color:rgb(0,0,0)!important">Hi,Alex,</span>
</p>
<div style="font-size:12pt; color:rgb(0,0,0)!important"><br aria-hidden="true">
</div>
<div style="font-size:12pt; color:rgb(0,0,0)!important">Thanks for
your help. I run squid with the option d1 and its output is as
followings</div>
<div style="font-size:12pt; color:rgb(0,0,0)!important">2022/03/03
09:17:39 kid1| Current Directory is /root
<div>2022/03/03 09:17:39 kid1| Starting Squid Cache version 4.17
for x86_64-pc-linux-gnu...</div>
<div>2022/03/03 09:17:39 kid1| Service Name: squid</div>
<div>2022/03/03 09:17:39 kid1| Process ID 239617</div>
<div>2022/03/03 09:17:39 kid1| Process Roles: worker</div>
<div>2022/03/03 09:17:39 kid1| With 1024 file descriptors
available</div>
<div>2022/03/03 09:17:39 kid1| Initializing IP Cache...</div>
<div>2022/03/03 09:17:39 kid1| DNS Socket created at [::], FD 5</div>
<div>2022/03/03 09:17:39 kid1| DNS Socket created at 0.0.0.0, FD 8</div>
<div>2022/03/03 09:17:39 kid1| Adding nameserver 8.8.8.8 from
/etc/resolv.conf</div>
<div>2022/03/03 09:17:39 kid1| Logfile: opening log
daemon:/var/log/squid/access.log</div>
<div>2022/03/03 09:17:39 kid1| Logfile Daemon: opening log
/var/log/squid/access.log</div>
<div>2022/03/03 09:17:39 kid1| Local cache digest enabled;
rebuild/rewrite every 3600/3600 sec</div>
<div>2022/03/03 09:17:39 kid1| Store logging disabled</div>
<div>2022/03/03 09:17:39 kid1| Swap maxSize 0 + 262144 KB,
estimated 20164 objects</div>
<div>2022/03/03 09:17:39 kid1| Target number of buckets: 1008</div>
<div>2022/03/03 09:17:39 kid1| Using 8192 Store buckets</div>
<div>2022/03/03 09:17:39 kid1| Max Mem size: 262144 KB</div>
<div>2022/03/03 09:17:39 kid1| Max Swap size: 0 KB</div>
<div>2022/03/03 09:17:39 kid1| Using Least Load store dir
selection</div>
<div>2022/03/03 09:17:39 kid1| Current Directory is /root</div>
<div>2022/03/03 09:17:39 kid1| Finished loading MIME types and
icons.</div>
<span>2022/03/03 09:17:39 kid1| HTCP Disabled.</span></div>
<div style="font-size:12pt; color:rgb(0,0,0)!important"><br aria-hidden="true">
</div>
<span style="font-size:12pt; color:rgb(0,0,0)!important">the only
line in squid.conf is http_port 3128</span>
<div class="moz-cite-prefix">On 2022/3/2 22:45, Alex Rousskov wrote:<br>
</div>
<blockquote type="cite" cite="mid:ef2125f0-3241-6440-903f-7b182e28527c@measurement-factory.com">On
3/1/22 21:15, 苏 格 wrote:
<br>
<br>
<blockquote type="cite">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.
<br>
<br>
I have compiled it using the following options:
<br>
<br>
./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
<br>
</blockquote>
<br>
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.
<br>
<br>
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.
<br>
<br>
Sharing you *_port directives may also be helpful.
<br>
<br>
Alex.
<br>
_______________________________________________
<br>
squid-users mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a>
<br>
</blockquote>
</body>
</html>