TheBB Posted December 15, 2017 Share Posted December 15, 2017 (edited) Squid 4.x пример работы (!не настроенного) "кальмара": Скрытый текст "удачный" запуск ~ # cat ../tmp/squid_cache.log 2017/12/15 00:39:15| Created PID file (/opt/var/run/squid.pid) 2017/12/15 00:39:15 kid1| Set Current Directory to /opt/tmp 2017/12/15 00:39:15 kid1| Starting Squid Cache version 4.0.21 for mipsel-openwrt-linux-gnu... 2017/12/15 00:39:15 kid1| Service Name: squid 2017/12/15 00:39:15 kid1| Process ID 7839 2017/12/15 00:39:15 kid1| Process Roles: worker 2017/12/15 00:39:15 kid1| With 1024 file descriptors available 2017/12/15 00:39:15 kid1| Initializing IP Cache... 2017/12/15 00:39:15 kid1| DNS Socket created at [::], FD 7 2017/12/15 00:39:15 kid1| DNS Socket created at 0.0.0.0, FD 8 2017/12/15 00:39:15 kid1| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2017/12/15 00:39:15 kid1| Logfile: opening log daemon:/opt/tmp/squid_access.log 2017/12/15 00:39:15 kid1| Logfile Daemon: opening log /opt/tmp/squid_access.log 2017/12/15 00:39:15 kid1| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec 2017/12/15 00:39:15 kid1| Store logging disabled 2017/12/15 00:39:15 kid1| Swap maxSize 0 + 262144 KB, estimated 20164 objects 2017/12/15 00:39:15 kid1| Target number of buckets: 1008 2017/12/15 00:39:15 kid1| Using 8192 Store buckets 2017/12/15 00:39:15 kid1| Max Mem size: 262144 KB 2017/12/15 00:39:15 kid1| Max Swap size: 0 KB 2017/12/15 00:39:15 kid1| Using Least Load store dir selection 2017/12/15 00:39:15 kid1| Set Current Directory to /opt/tmp 2017/12/15 00:39:15 kid1| Finished loading MIME types and icons. 2017/12/15 00:39:15 kid1| HTCP Disabled. 2017/12/15 00:39:15 kid1| Squid plugin modules loaded: 0 2017/12/15 00:39:15 kid1| Accepting HTTP Socket connections at local=192.168.2.1:3128 remote=[::] FD 11 flags=9 2017/12/15 00:39:16 kid1| storeLateRelease: released 0 objects желающие могут "потыкать тушку" согласно меню(-шке) (в пределах разумного ))) ) напр., инфо E-3x (mipsel) тут Edited June 28, 2021 by TheBB in repo 1 Quote Link to comment Share on other sites More sharing options...
Rbuha Posted August 6, 2019 Share Posted August 6, 2019 Здравствуйте, @TheBB Почему такой странный путь (/work/stable/Entware/staging_dir/target-mips_mips32r2_glibc-2.27/opt) у ключа "--with-openssl", всё это создавать? Не работают команды: /opt/etc/init.d/S22squid restart и /opt/etc/init.d/S22squid stop. Перезапускаю через kill-start. Entware, mips, squid - 4.6-1 Quote Link to comment Share on other sites More sharing options...
TheBB Posted August 7, 2019 Author Share Posted August 7, 2019 15 часов назад, Buha сказал: Почему такой странный путь https://github.com/openwrt/packages/blob/master/net/squid/Makefile#L107 (у меня вся сборка находится на отдельном HDD) 15 часов назад, Buha сказал: Не работают команды: /opt/etc/init.d/S22squid restart и /opt/etc/init.d/S22squid stop. `stop` отрабатывает с задержкой, а `restart` - да, не работает. ~ # /opt/etc/init.d/S22squid start Starting squid... done. ~ # ps | grep squid | grep -v grep 18718 root 16560 S squid 18720 squid 20904 S {squid} (squid-1) --kid squid-1 ~ # /opt/etc/init.d/S22squid check Checking squid... alive. ~ # /opt/etc/init.d/S22squid stop Checking squid... alive. Shutting down squid... failed. ~ # /opt/etc/init.d/S22squid check Checking squid... alive. ~ # /opt/etc/init.d/S22squid check Checking squid... dead. ~ # ps | grep squid | grep -v grep ~ # 1 Quote Link to comment Share on other sites More sharing options...
kvsoft Posted April 12, 2021 Share Posted April 12, 2021 On 8/7/2019 at 9:49 AM, TheBB said: `stop` отрабатывает с задержкой, а `restart` - да, не работает. sorry за некропостинг, но может кому из новичков пригодится squid.conf shutdown_lifetime 5 seconds Quote Link to comment Share on other sites More sharing options...
Dtnd6vv Posted September 10 Share Posted September 10 Впервые ставлю squid. Что ему нужно? Цитата login as: root root@192.168.1.1's password: BusyBox v1.36.1 (2024-08-08 16:11:23 UTC) built-in shell (ash) ~ # squid CPU Usage: 0.068 seconds = 0.052 user + 0.016 sys Maximum Resident Size: 37968 KB Page faults with physical i/o: 0 2024/09/10 07:43:52| WARNING: BCP 177 violation. Detected non-functional IPv6 loopback. 2024/09/10 07:43:52| aclIpParseIpData: IPv6 has not been enabled. 2024/09/10 07:43:52| aclIpParseIpData: IPv6 has not been enabled. 2024/09/10 07:43:52| aclIpParseIpData: IPv6 has not been enabled. 2024/09/10 07:43:52| Processing Configuration File: /opt/etc/squid/squid.conf (depth 0) 2024/09/10 07:43:52| WARNING: 'Keenetic-0537' rDNS test failed: (0) No error. 2024/09/10 07:43:52| WARNING: Could not determine this machines public hostname. Please configure one or set 'visible_hostname'. 2024/09/10 07:43:52| WARNING: 'Keenetic-0537' rDNS test failed: (0) No error. 2024/09/10 07:43:52| WARNING: Could not determine this machines public hostname. Please configure one or set 'visible_hostname'. 2024/09/10 07:43:52| WARNING: 'Keenetic-0537' rDNS test failed: (0) No error. 2024/09/10 07:43:52| WARNING: Could not determine this machines public hostname. Please configure one or set 'visible_hostname'. 2024/09/10 07:43:52| storeDirWriteCleanLogs: Starting... 2024/09/10 07:43:52| Finished. Wrote 0 entries. 2024/09/10 07:43:52| Took 0.00 seconds ( 0.00 entries/sec). 2024/09/10 07:43:52| FATAL: getpwnam failed to find userid for effective user 'squid' 2024/09/10 07:43:52| Squid Cache (Version 6.10): Terminated abnormally. ~ # Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.