Jump to content

Recommended Posts

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

 

желающие могут "потыкать тушку" согласно меню(-шке) (в пределах разумного ))) )

screen_223.png

напр., инфо

screen_222.png

E-3x (mipsel) тут

Edited by TheBB
in repo
  • Upvote 1
Link to comment
Share on other sites

  • 1 year later...

Здравствуйте, @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.

2019-08-06_211040.png.ce20cfcac7deeec7d044dafb3c1d48dc.png

Перезапускаю через kill-start.

Entware, mips, squid - 4.6-1

Link to comment
Share on other sites

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
~ # 

 

  • Thanks 1
Link to comment
Share on other sites

  • 1 year later...
On 8/7/2019 at 9:49 AM, TheBB said:

`stop` отрабатывает с задержкой, а `restart` - да, не работает.

sorry за некропостинг, но может кому из новичков пригодится

squid.conf

shutdown_lifetime 5 seconds

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...