/l3/users/29-05-2007/nt-lnet/linux1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 |
|
#/etc/init.d/apache restart
4308 # When this is set to a non-zero value, the main Squid process 4309 # sleeps the specified number of microseconds after a fork() 4310 # system call. This sleep may help the situation where your 4311 # system reports fork() failures due to lack of (virtual) 4312 # memory. Note, however, that if you have a lot of child Restarting apache 1.3 web server....Squid accepts certain forms # of non-compliant HTTP messages where it is unambiguous # what the sending application intended even if the message # is not correctly formatted. The messages is then normalized # to the correct form when forwarded by Squid. # # If set to "warn" then a warning will be emitted in cache.log # each time such HTTP error is encountered. # # If set to "off" then such HTTP errors will cause the request # or response to be rejected. # #Default: # relaxed_header_parser on 4348,0-1 Внизу :set number |
#/etc/init.d/apache2 restart
|
#squid -k reconfigure
squid: ERROR: Could not send signal 1 to process 26606: (3) No such process |
#/etc/init.d/squid start
Starting Squid HTTP proxy: squid. |
#less /var/log/daemon.log
|
#less /var/log/daemon.log
|
#vim /etc/squid/squid.conf
|
#. /usr/local/rejik3/tools/check-redirector http://127.0.0.1/ban/porno.html
4308 # When this is set to a non-zero value, the main Squid process 4309 # sleeps the specified number of microseconds after a fork() 4310 # system call. This sleep may help the situation where your 4311 # system reports fork() failures due to lack of (virtual) 4312 # memory. Note, however, that if you have a lot of child # In the default "on" setting Squid accepts certain forms # of non-compliant HTTP messages where it is unambiguous # what the sending application intended even if the message # is not correctly formatted. The messages is then normalized # to the correct form when forwarded by Squid. # # If set to "warn" then a warning will be emitted in cache.log # each time such HTTP error is encountered. # # If set to "off" then such HTTP errors will cause the request # or response to be rejected. # #Default: # relaxed_header_parser on 4348,0-1 Внизу :set number |
#. /usr/local/rejik3/tools/check-redirector
|
#cd /usr/local/rejik3/tools/
|
#ls
benchmark check-redirector IN.gz kill-cache set-permissions |
#./check-redirector
4308 # When this is set to a non-zero value, the main Squid process 4309 # sleeps the specified number of microseconds after a fork() 4310 # system call. This sleep may help the situation where your 4311 # system reports fork() failures due to lack of (virtual) 4312 # memory. Note, however, that if you have a lot of child # In the default "on" setting Squid accepts certain forms # of non-compliant HTTP messages where it is unambiguous # what the sending application intended even if the message # is not correctly formatted. The messages is then normalized # to the correct form when forwarded by Squid. # # If set to "warn" then a warning will be emitted in cache.log # each time such HTTP error is encountered. # # If set to "off" then such HTTP errors will cause the request # or response to be rejected. # #Default: # relaxed_header_parser on 4348,0-1 Внизу :set number |
#ls -l /var/www/
итого 476 drwxr-xr-x 2 root root 4096 2007-05-30 13:12 apache2-default drwxr-xr-x 2 root root 4096 2002-11-26 15:37 ban -rw-r--r-- 1 www-data www-data 5258 2007-05-30 13:08 index.html -rw-r--r-- 1 root root 464521 2007-05-30 13:17 lartc.html |
#ls -l /var/www/ban/
итого 12 -rw-r--r-- 1 nobody 98 43 2002-11-13 07:13 1x1.gif -rw-r--r-- 1 root root 0 2002-11-26 15:02 js.js -rw-r--r-- 1 nobody 98 624 2002-12-24 13:14 mp3.html -rw-r--r-- 1 root root 649 2002-12-24 13:13 porno.html |
#/etc/init.d/squid stop
4308 # When this is set to a non-zero value, the main Squid process 4309 # sleeps the specified number of microseconds after a fork() 4310 # system call. This sleep may help the situation where your 4311 # system reports fork() failures due to lack of (virtual) 4312 # memory. Note, however, that if you have a lot of child Stopping Squid HTTP proxy: squid Waiting.....................done. . of non-compliant HTTP messages where it is unambiguous # what the sending application intended even if the message # is not correctly formatted. The messages is then normalized # to the correct form when forwarded by Squid. # # If set to "warn" then a warning will be emitted in cache.log # each time such HTTP error is encountered. # # If set to "off" then such HTTP errors will cause the request # or response to be rejected. # #Default: # relaxed_header_parser on 4348,0-1 Внизу :set number |
#squid -d 1 -N
2007/06/02 13:15:58| Starting Squid Cache version 2.6.STABLE5 for i386-debian-linux-gnu... 2007/06/02 13:15:58| Process ID 26900 2007/06/02 13:15:58| With 1024 file descriptors available 2007/06/02 13:15:58| Using epoll for the IO loop 2007/06/02 13:15:58| Performing DNS Tests... 2007/06/02 13:15:58| Successful DNS name lookup tests... 2007/06/02 13:15:58| DNS Socket created at 0.0.0.0, port 32937, FD 5 2007/06/02 13:15:58| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2007/06/02 13:15:58| Adding domain okno.net.nt from /etc/resolv.conf 2007/06/02 13:15:58| helperOpenServers: Starting 5 'redirector' processes ... 2007/06/02 13:15:59| Accepting ICP messages at 0.0.0.0, port 3130, FD 23. 2007/06/02 13:15:59| HTCP Disabled. 2007/06/02 13:15:59| WCCP Disabled. 2007/06/02 13:15:59| Ready to serve requests. 2007/06/02 13:15:59| WARNING: url_rewriter #5 (FD 10) exited 2007/06/02 13:15:59| WARNING: url_rewriter #4 (FD 9) exited 2007/06/02 13:15:59| WARNING: url_rewriter #3 (FD 8) exited 2007/06/02 13:15:59| Too few url_rewriter processes are running FATAL: The url_rewriter helpers are crashing too rapidly, need help! Aborted (core dumped) |
#squid -d 1 -N
:set number 2007/06/02 13:16:23| Using 8192 Store buckets 2007/06/02 13:16:23| Max Mem size: 8192 KB 2007/06/02 13:16:23| Max Swap size: 102400 KB 2007/06/02 13:16:23| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec 2007/06/02 13:16:23| Rebuilding storage in /var/spool/squid (DIRTY) 2007/06/02 13:16:23| Using Least Load store dir selection 2007/06/02 13:16:23| Set Current Directory to /var/spool/squid 2007/06/02 13:16:23| Loaded Icons. 2007/06/02 13:16:23| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 22. 2007/06/02 13:16:23| Accepting ICP messages at 0.0.0.0, port 3130, FD 23. 2007/06/02 13:16:23| HTCP Disabled. 2007/06/02 13:16:23| WCCP Disabled. 2007/06/02 13:16:23| Ready to serve requests. 2007/06/02 13:16:23| WARNING: url_rewriter #4 (FD 9) exited 2007/06/02 13:16:23| WARNING: url_rewriter #3 (FD 8) exited 2007/06/02 13:16:23| WARNING: url_rewriter #2 (FD 7) exited 2007/06/02 13:16:23| Too few url_rewriter processes are running FATAL: The url_rewriter helpers are crashing too rapidly, need help! Aborted (core dumped) |
#squid -d 2 -N
2007/06/02 13:16:27| Starting Squid Cache version 2.6.STABLE5 for i386-debian-linux-gnu... 2007/06/02 13:16:27| Process ID 26943 2007/06/02 13:16:27| With 1024 file descriptors available 2007/06/02 13:16:27| Using epoll for the IO loop 2007/06/02 13:16:27| Performing DNS Tests... 2007/06/02 13:16:27| Successful DNS name lookup tests... 2007/06/02 13:16:27| DNS Socket created at 0.0.0.0, port 32937, FD 5 2007/06/02 13:16:27| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2007/06/02 13:16:27| Adding domain okno.net.nt from /etc/resolv.conf 2007/06/02 13:16:27| helperOpenServers: Starting 5 'redirector' processes ... 2007/06/02 13:16:27| Accepting ICP messages at 0.0.0.0, port 3130, FD 23. 2007/06/02 13:16:27| HTCP Disabled. 2007/06/02 13:16:27| WCCP Disabled. 2007/06/02 13:16:27| Ready to serve requests. 2007/06/02 13:16:27| WARNING: url_rewriter #5 (FD 10) exited 2007/06/02 13:16:27| WARNING: url_rewriter #4 (FD 9) exited 2007/06/02 13:16:27| WARNING: url_rewriter #3 (FD 8) exited 2007/06/02 13:16:27| Too few url_rewriter processes are running FATAL: The url_rewriter helpers are crashing too rapidly, need help! Aborted (core dumped) |
#ls -l /usr/local/rejik3/
4308 # When this is set to a non-zero value, the main Squid process 4309 # sleeps the specified number of microseconds after a fork() 4310 # system call. This sleep may help the situation where your 4311 # system reports fork() failures due to lack of (virtual) 4312 # memory. Note, however, that if you have a lot of child итого 100 default "on" setting Squid accepts certain forms drwxr-xr-x 6 proxy proxy 4096 2003-07-25 08:02 banlistsiguous -rwxr-xr-x 1 proxy proxy 39108 2007-06-02 12:57 make-cachemessage -rwxr-xr-x 1 proxy proxy 43897 2007-06-02 12:57 redirectorormalized -rw-r--r-- 1 proxy proxy 3043 2007-06-02 12:59 redirector.conf -rw-r--r-- 1 proxy proxy 3052 2007-06-02 12:57 redirector.conf.dist drwxr-sr-x 2 proxy proxy 4096 2007-06-02 12:57 toolsed in cache.log # each time such HTTP error is encountered. # # If set to "off" then such HTTP errors will cause the request # or response to be rejected. # #Default: # relaxed_header_parser on 4348,0-1 Внизу :set number |
#vim /usr/local/rejik3/redirector.conf
|
#ls -l /var/log/squid/
4308 # When this is set to a non-zero value, the main Squid process 4309 # sleeps the specified number of microseconds after a fork() 4310 # system call. This sleep may help the situation where your 4311 # system reports fork() failures due to lack of (virtual) 4312 # memory. Note, however, that if you have a lot of child access.log cache.log redirector.err redirector.log store.log # of non-compliant HTTP messages where it is unambiguous # what the sending application intended even if the message # is not correctly formatted. The messages is then normalized # to the correct form when forwarded by Squid. # # If set to "warn" then a warning will be emitted in cache.log # each time such HTTP error is encountered. # # If set to "off" then such HTTP errors will cause the request # or response to be rejected. # #Default: # relaxed_header_parser on 4348,0-1 Внизу :set number |
#ls -l /var/log/squid/
итого 340 -rw-r----- 1 proxy proxy 99804 2007-06-02 13:15 access.log -rw-r----- 1 proxy proxy 70324 2007-06-02 13:16 cache.log -rw-r--r-- 1 proxy proxy 22160 2007-06-02 13:16 redirector.err -rw-r----- 1 proxy proxy 133 2007-06-02 13:14 redirector.log -rw-r----- 1 proxy proxy 129368 2007-06-02 13:15 store.log |
#less /var/log/squid/redirector.err
|
#squid -d 2 -N
2007/06/02 13:17:45| Starting Squid Cache version 2.6.STABLE5 for i386-debian-linux-gnu... 2007/06/02 13:17:45| Process ID 27037 2007/06/02 13:17:45| With 1024 file descriptors available 2007/06/02 13:17:45| Using epoll for the IO loop 2007/06/02 13:17:45| Performing DNS Tests... 2007/06/02 13:17:45| Successful DNS name lookup tests... 2007/06/02 13:17:45| DNS Socket created at 0.0.0.0, port 32937, FD 5 2007/06/02 13:17:45| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2007/06/02 13:17:45| Adding domain okno.net.nt from /etc/resolv.conf 2007/06/02 13:17:45| helperOpenServers: Starting 5 'redirector' processes ... 2007/06/02 13:17:46| Accepting ICP messages at 0.0.0.0, port 3130, FD 23. 2007/06/02 13:17:46| HTCP Disabled. 2007/06/02 13:17:46| WCCP Disabled. 2007/06/02 13:17:46| Ready to serve requests. 2007/06/02 13:17:46| WARNING: url_rewriter #5 (FD 10) exited 2007/06/02 13:17:46| WARNING: url_rewriter #4 (FD 9) exited 2007/06/02 13:17:46| WARNING: url_rewriter #3 (FD 8) exited 2007/06/02 13:17:46| Too few url_rewriter processes are running FATAL: The url_rewriter helpers are crashing too rapidly, need help! Aborted (core dumped) |
#vim /usr/local/rejik3/redirector.conf
|
#less /var/log/squid/redirector.err
|
#vim /usr/local/rejik3/redirector.conf
|
#./check-redirector
4308 # When this is set to a non-zero value, the main Squid process 4309 # sleeps the specified number of microseconds after a fork() 4310 # system call. This sleep may help the situation where your 4311 # system reports fork() failures due to lack of (virtual) 4312 # memory. Note, however, that if you have a lot of child # In the default "on" setting Squid accepts certain forms # of non-compliant HTTP messages where it is unambiguous # what the sending application intended even if the message # is not correctly formatted. The messages is then normalized # to the correct form when forwarded by Squid. # # If set to "warn" then a warning will be emitted in cache.log # each time such HTTP error is encountered. # # If set to "off" then such HTTP errors will cause the request # or response to be rejected. # #Default: # relaxed_header_parser on 4348,0-1 Внизу :set number |
#squid -d 2 -N
2007/06/02 13:19:02| Starting Squid Cache version 2.6.STABLE5 for i386-debian-linux-gnu... 2007/06/02 13:19:02| Process ID 27102 2007/06/02 13:19:02| With 1024 file descriptors available 2007/06/02 13:19:02| Using epoll for the IO loop 2007/06/02 13:19:02| Performing DNS Tests... 2007/06/02 13:19:02| Successful DNS name lookup tests... 2007/06/02 13:19:02| DNS Socket created at 0.0.0.0, port 32937, FD 5 2007/06/02 13:19:02| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2007/06/02 13:19:02| Adding domain okno.net.nt from /etc/resolv.conf 2007/06/02 13:19:02| helperOpenServers: Starting 5 'redirector' processes ... 2007/06/02 13:19:02| Accepting ICP messages at 0.0.0.0, port 3130, FD 23. 2007/06/02 13:19:02| HTCP Disabled. 2007/06/02 13:19:02| WCCP Disabled. 2007/06/02 13:19:02| Ready to serve requests. 2007/06/02 13:19:02| WARNING: url_rewriter #5 (FD 10) exited 2007/06/02 13:19:02| WARNING: url_rewriter #4 (FD 9) exited 2007/06/02 13:19:02| WARNING: url_rewriter #3 (FD 8) exited 2007/06/02 13:19:02| Too few url_rewriter processes are running FATAL: The url_rewriter helpers are crashing too rapidly, need help! Aborted (core dumped) |
#ps -aux | grep rejik
4308 # When this is set to a non-zero value, the main Squid process 4309 # sleeps the specified number of microseconds after a fork() 4310 # system call. This sleep may help the situation where your 4311 # system reports fork() failures due to lack of (virtual) 4312 # memory. Note, however, that if you have a lot of child Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 27120 0.0 0.0 3744 764 pts/3 R+ 13:19 0:00 grep rejik # what the sending application intended even if the message # is not correctly formatted. The messages is then normalized # to the correct form when forwarded by Squid. # # If set to "warn" then a warning will be emitted in cache.log # each time such HTTP error is encountered. # # If set to "off" then such HTTP errors will cause the request # or response to be rejected. # #Default: # relaxed_header_parser on 4348,0-1 Внизу :set number |
#ps aux | grep rejik
root 27127 0.0 0.0 3740 764 pts/3 R+ 13:19 0:00 grep rejik |
#ps aux | grep redir
4308 # When this is set to a non-zero value, the main Squid process 4309 # sleeps the specified number of microseconds after a fork() 4310 # system call. This sleep may help the situation where your 4311 # system reports fork() failures due to lack of (virtual) 4312 # memory. Note, however, that if you have a lot of child root 27134 0.0 0.0 3744 764 pts/3 R+ 13:19 0:00 grep redir # of non-compliant HTTP messages where it is unambiguous # what the sending application intended even if the message # is not correctly formatted. The messages is then normalized # to the correct form when forwarded by Squid. # # If set to "warn" then a warning will be emitted in cache.log # each time such HTTP error is encountered. # # If set to "off" then such HTTP errors will cause the request # or response to be rejected. # #Default: # relaxed_header_parser on 4348,0-1 Внизу :set number |
#ps aux | grep red
root 27149 0.0 0.0 3740 764 pts/3 R+ 13:19 0:00 grep red |
#ps aux | grep re
root 6 0.0 0.0 0 0 ? S< Jun01 0:00 [kthread] gdm 21620 0.0 2.0 31572 20756 ? Ss Jun01 0:02 /usr/lib/gdm/gdmgreeter root 23881 0.0 0.0 4688 1024 pts/1 S+ 09:56 0:00 screen root 24033 0.0 0.1 4688 1036 pts/5 S+ 09:56 0:00 screen -x root 24127 0.0 0.1 4684 1032 pts/7 S+ 09:57 0:00 screen -x root 24195 0.0 0.1 4688 1032 pts/9 S+ 09:57 0:00 screen -x user 25641 1.7 3.9 131384 40716 pts/11 Sl+ 12:45 0:36 /usr/lib/iceweasel/firefox-bin -a firefox root 27156 0.0 0.0 3744 764 pts/3 R+ 13:19 0:00 grep re |
#squid -d 2 -N
2007/06/02 13:19:40| Starting Squid Cache version 2.6.STABLE5 for i386-debian-linux-gnu... 2007/06/02 13:19:40| Process ID 27162 2007/06/02 13:19:40| With 1024 file descriptors available 2007/06/02 13:19:40| Using epoll for the IO loop 2007/06/02 13:19:40| Performing DNS Tests... 2007/06/02 13:19:40| Successful DNS name lookup tests... 2007/06/02 13:19:40| DNS Socket created at 0.0.0.0, port 32937, FD 5 2007/06/02 13:19:40| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2007/06/02 13:19:40| Adding domain okno.net.nt from /etc/resolv.conf 2007/06/02 13:19:40| helperOpenServers: Starting 5 'redirector' processes ... 2007/06/02 13:19:40| Accepting ICP messages at 0.0.0.0, port 3130, FD 23. 2007/06/02 13:19:40| HTCP Disabled. 2007/06/02 13:19:40| WCCP Disabled. 2007/06/02 13:19:40| Ready to serve requests. 2007/06/02 13:19:40| WARNING: url_rewriter #5 (FD 10) exited 2007/06/02 13:19:40| WARNING: url_rewriter #4 (FD 9) exited 2007/06/02 13:19:40| WARNING: url_rewriter #3 (FD 8) exited 2007/06/02 13:19:40| Too few url_rewriter processes are running FATAL: The url_rewriter helpers are crashing too rapidly, need help! Aborted (core dumped) |
#ps aux | grep url
4308 # When this is set to a non-zero value, the main Squid process 4309 # sleeps the specified number of microseconds after a fork() 4310 # system call. This sleep may help the situation where your 4311 # system reports fork() failures due to lack of (virtual) 4312 # memory. Note, however, that if you have a lot of child root 27198 0.0 0.0 3740 760 pts/3 R+ 13:20 0:00 grep url # of non-compliant HTTP messages where it is unambiguous # what the sending application intended even if the message # is not correctly formatted. The messages is then normalized # to the correct form when forwarded by Squid. # # If set to "warn" then a warning will be emitted in cache.log # each time such HTTP error is encountered. # # If set to "off" then such HTTP errors will cause the request # or response to be rejected. # #Default: # relaxed_header_parser on 4348,0-1 Внизу :set number |
#ps aux | grep url*
root 962 0.0 0.0 0 0 ? S< Jun01 0:00 [kjournald] root 1805 0.0 0.0 0 0 ? S< Jun01 0:00 [kjournald] root 1807 0.0 0.0 0 0 ? S< Jun01 0:00 [kjournald] root 1815 0.0 0.0 0 0 ? S< Jun01 0:00 [kjournald] root 1817 0.0 0.0 0 0 ? S< Jun01 0:00 [kjournald] root 2600 0.0 0.0 1752 404 ? S Jun01 0:00 /usr/sbin/courierlogger -pid=/var/run/courier/authdaemon/pid -start /usr/lib/courier/courier-authlib/authdaemond root 2601 0.0 0.0 1908 604 ? S Jun01 0:00 /usr/lib/courier/courier-authlib/authdaemond root 2615 0.0 0.0 1908 272 ? S Jun01 0:00 /usr/lib/courier/courier-authlib/authdaemond root 2616 0.0 0.0 1908 272 ? S Jun01 0:00 /usr/lib/courier/courier-authlib/authdaemond root 2617 0.0 0.0 1908 272 ? S Jun01 0:00 /usr/lib/courier/courier-authlib/authdaemond root 2618 0.0 0.0 1908 272 ? S Jun01 0:00 /usr/lib/courier/courier-authlib/authdaemond root 2619 0.0 0.0 1908 272 ? S Jun01 0:00 /usr/lib/courier/courier-authlib/authdaemond root 27205 0.0 0.0 3740 760 pts/3 R+ 13:20 0:00 grep url* |
#reboot
|
#ssh 192.168.16.150
root@192.168.16.150's password: Last login: Fri Jun 1 17:34:12 2007 from 192.168.16.1 Linux ns 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. l3-agent is already running: pid=2766; pidfile=/root/.lilalo/l3-agent.pid |
#less /var/log/
|
#less /var/log/squid/
|
#less /var/log/daemon.log
|
#squid -d 2 -N
2007/06/02 14:06:09| Using 8192 Store buckets 2007/06/02 14:06:09| Max Mem size: 8192 KB 2007/06/02 14:06:09| Max Swap size: 102400 KB 2007/06/02 14:06:09| Local cache digest enabled; rebuild/rewrite every 3600/3600 sec 2007/06/02 14:06:09| Rebuilding storage in /var/spool/squid (DIRTY) 2007/06/02 14:06:09| Using Least Load store dir selection 2007/06/02 14:06:09| Set Current Directory to /var/spool/squid 2007/06/02 14:06:09| Loaded Icons. 2007/06/02 14:06:09| Accepting proxy HTTP connections at 0.0.0.0, port 3128, FD 22. 2007/06/02 14:06:09| Accepting ICP messages at 0.0.0.0, port 3130, FD 23. ... 2007/06/02 14:06:09| Ready to serve requests. 2007/06/02 14:06:09| WARNING: url_rewriter #5 (FD 10) exited 2007/06/02 14:06:09| WARNING: url_rewriter #1 (FD 6) exited 2007/06/02 14:06:09| WARNING: url_rewriter #4 (FD 9) exited 2007/06/02 14:06:09| Too few url_rewriter processes are running FATAL: The url_rewriter helpers are crashing too rapidly, need help! Aborted (core dumped) Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#vim /etc/squid/squid.conf
|
#ping 192.168.16.150 -t
299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. 304 # 305 # The default behavior is to not bind to any specific address. 306 # 307 # A udp_incoming_address value of 0.0.0.0 indicates Squid 308 # should listen for UDP messages on all available interfaces. ... 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other ping: option requires an argument -- t Usage: ping [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline] [-p pattern] [-s packetsize] [-t ttl] [-I interface or address] [-M mtu discovery hint] [-S sndbuf] [ -T timestamp option ] [ -Q tos ] [hop1 ...] destination Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#ping 192.168.16.150
64 bytes from 192.168.16.150: icmp_seq=116 ttl=63 time=0.368 ms 64 bytes from 192.168.16.150: icmp_seq=117 ttl=63 time=0.373 ms 64 bytes from 192.168.16.150: icmp_seq=118 ttl=63 time=0.374 ms 64 bytes from 192.168.16.150: icmp_seq=119 ttl=63 time=0.377 ms 64 bytes from 192.168.16.150: icmp_seq=120 ttl=63 time=0.371 ms 64 bytes from 192.168.16.150: icmp_seq=121 ttl=63 time=0.356 ms 64 bytes from 192.168.16.150: icmp_seq=122 ttl=63 time=0.360 ms 64 bytes from 192.168.16.150: icmp_seq=123 ttl=63 time=0.348 ms 64 bytes from 192.168.16.150: icmp_seq=124 ttl=63 time=0.340 ms 64 bytes from 192.168.16.150: icmp_seq=125 ttl=63 time=0.388 ms ... 64 bytes from 192.168.16.150: icmp_seq=128 ttl=63 time=0.368 ms 64 bytes from 192.168.16.150: icmp_seq=129 ttl=63 time=0.348 ms 64 bytes from 192.168.16.150: icmp_seq=130 ttl=63 time=0.359 ms 64 bytes from 192.168.16.150: icmp_seq=131 ttl=63 time=0.380 ms --- 192.168.16.150 ping statistics --- 131 packets transmitted, 17 received, +81 errors, 87% packet loss, time 130059ms rtt min/avg/max/mdev = 0.340/0.632/4.898/1.066 ms, pipe 4 Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:02:B4:61:09 inet addr:192.168.16.150 Bcast:192.168.16.255 Mask:255.255.255.0 inet6 addr: fe80::201:2ff:feb4:6109/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:349653 errors:0 dropped:0 overruns:1 frame:0 TX packets:213430 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:316600460 (301.9 MiB) TX bytes:133405273 (127.2 MiB) Interrupt:169 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:426 errors:0 dropped:0 overruns:0 frame:0 TX packets:426 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:42070 (41.0 KiB) TX bytes:42070 (41.0 KiB) |
#shutdown -h now
298 # TAG: udp_incoming_address 299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. 304 # 305 # The default behavior is to not bind to any specific address. 306 # 307 # A udp_incoming_address value of 0.0.0.0 indicates Squid 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other Broadcast message from root@ns (pts/10) (Sat Jun 2 14:09:48 2007): The system is going down for system halt NOW! Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#squid -d 2 -N
2007/06/02 14:08:52| Starting Squid Cache version 2.6.STABLE5 for i386-debian-linux-gnu... 2007/06/02 14:08:52| Process ID 3597 2007/06/02 14:08:52| With 1024 file descriptors available 2007/06/02 14:08:52| Using epoll for the IO loop 2007/06/02 14:08:52| Performing DNS Tests... 2007/06/02 14:08:52| Successful DNS name lookup tests... 2007/06/02 14:08:52| DNS Socket created at 0.0.0.0, port 32773, FD 5 2007/06/02 14:08:52| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2007/06/02 14:08:52| Adding domain okno.net.nt from /etc/resolv.conf 2007/06/02 14:08:52| helperOpenServers: Starting 5 'ncsa_auth' processes ... 2007/06/02 14:08:57| Preparing for shutdown after 0 requests 2007/06/02 14:08:57| Waiting 0 seconds for active connections to finish 2007/06/02 14:08:57| FD 17 Closing HTTP connection 2007/06/02 14:08:58| Shutting down... 2007/06/02 14:08:58| FD 18 Closing ICP connection 2007/06/02 14:08:58| Closing unlinkd pipe on FD 15 2007/06/02 14:08:58| storeDirWriteCleanLogs: Starting... 2007/06/02 14:08:58| Finished. Wrote 524 entries. 2007/06/02 14:08:58| Took 0.0 seconds (55367.7 entries/sec). 2007/06/02 14:08:58| Squid Cache (Version 2.6.STABLE5): Exiting normally. |
#vim /etc/squid/squid.conf
|
#ssh 192.168.16.150
304 # 305 # The default behavior is to not bind to any specific address. 306 # 307 # A udp_incoming_address value of 0.0.0.0 indicates Squid 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other root@192.168.16.150's password: Last login: Sat Jun 2 14:07:46 2007 from 192.168.16.15 Linux ns 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#squid -d 2 -N
2007/06/02 14:09:25| Starting Squid Cache version 2.6.STABLE5 for i386-debian-linux-gnu... 2007/06/02 14:09:25| Process ID 3643 2007/06/02 14:09:25| With 1024 file descriptors available 2007/06/02 14:09:25| Using epoll for the IO loop 2007/06/02 14:09:25| Performing DNS Tests... 2007/06/02 14:09:25| Successful DNS name lookup tests... 2007/06/02 14:09:25| DNS Socket created at 0.0.0.0, port 32774, FD 5 2007/06/02 14:09:25| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2007/06/02 14:09:25| Adding domain okno.net.nt from /etc/resolv.conf 2007/06/02 14:09:25| helperOpenServers: Starting 5 'redirector' processes ... 2007/06/02 14:09:26| Accepting ICP messages at 0.0.0.0, port 3130, FD 23. 2007/06/02 14:09:26| HTCP Disabled. 2007/06/02 14:09:26| WCCP Disabled. 2007/06/02 14:09:26| Ready to serve requests. 2007/06/02 14:09:26| WARNING: url_rewriter #5 (FD 10) exited 2007/06/02 14:09:26| WARNING: url_rewriter #4 (FD 9) exited 2007/06/02 14:09:26| WARNING: url_rewriter #3 (FD 8) exited 2007/06/02 14:09:26| Too few url_rewriter processes are running FATAL: The url_rewriter helpers are crashing too rapidly, need help! Aborted (core dumped) |
#vim /etc/squid/squid.conf
1465c1465 < url_rewrite_program /usr/local/rejik3/redirector /usr/local/rejik3/redirector.conf --- > 1520c1520 < --- > url_rewrite_program /usr/local/rejik3/redirector /usr/local/rejik3/redirector.conf |
#. /usr/local/rejik3/tools/check-redirector
294 # 295 #Default: 296 # none 297 298 # TAG: udp_incoming_address 299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. ... 307 # A udp_incoming_address value of 0.0.0.0 indicates Squid 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#ls
! awk install john-1.7.0.2.tar.gz mbox q sent wall 1 banlists-2.x.x.tgz john-1.7.0.2 Mail print redirector-3.2.1.tgz sshd_config.new www.tgz |
#http://wiki.squid-cache.org/SquidFaq/SquidAcl
294 # 295 #Default: 296 # none 297 298 # TAG: udp_incoming_address 299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. ... 307 # A udp_incoming_address value of 0.0.0.0 indicates Squid 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#ping 192.168.16.150
299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. 304 # 305 # The default behavior is to not bind to any specific address. 306 # 307 # A udp_incoming_address value of 0.0.0.0 indicates Squid 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other PING 192.168.16.150 (192.168.16.150) 56(84) bytes of data. --- 192.168.16.150 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3004ms Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#squid -d 2 -N
2007/06/02 14:13:52| Starting Squid Cache version 2.6.STABLE5 for i386-debian-linux-gnu... 2007/06/02 14:13:52| Process ID 3759 2007/06/02 14:13:52| With 1024 file descriptors available 2007/06/02 14:13:52| Using epoll for the IO loop 2007/06/02 14:13:52| Performing DNS Tests... 2007/06/02 14:13:52| Successful DNS name lookup tests... 2007/06/02 14:13:52| DNS Socket created at 0.0.0.0, port 32774, FD 5 2007/06/02 14:13:52| Adding nameserver 127.0.0.1 from /etc/resolv.conf 2007/06/02 14:13:52| Adding domain okno.net.nt from /etc/resolv.conf 2007/06/02 14:13:52| helperOpenServers: Starting 5 'redirector' processes ... 2007/06/02 14:13:52| Accepting ICP messages at 0.0.0.0, port 3130, FD 23. 2007/06/02 14:13:52| HTCP Disabled. 2007/06/02 14:13:52| WCCP Disabled. 2007/06/02 14:13:52| Ready to serve requests. 2007/06/02 14:13:52| WARNING: url_rewriter #5 (FD 10) exited 2007/06/02 14:13:52| WARNING: url_rewriter #4 (FD 9) exited 2007/06/02 14:13:52| WARNING: url_rewriter #3 (FD 8) exited 2007/06/02 14:13:52| Too few url_rewriter processes are running FATAL: The url_rewriter helpers are crashing too rapidly, need help! Aborted (core dumped) |
#cd /usr/local/rejik3/
294 # 295 #Default: 296 # none 297 298 # TAG: udp_incoming_address 299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. ... 307 # A udp_incoming_address value of 0.0.0.0 indicates Squid 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#cd tools/
|
#ls
benchmark check-redirector IN.gz kill-cache set-permissions |
#./check-redirector
|
#less /var/log/squid/
|
#less /var/log/squid/redirector.log
|
#less /var/log/squid/redirector.err
|
#vim ../redirector.conf
72c72 < #make-cache /var/log/squid/make-cache --- > make-cache /var/log/squid/make-cache |
#shutdown -r now
298 # TAG: udp_incoming_address 299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. 304 # 305 # The default behavior is to not bind to any specific address. 306 # 307 # A udp_incoming_address value of 0.0.0.0 indicates Squid 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other Broadcast message from root@ns (pts/1) (Sat Jun 2 14:15:53 2007): The system is going down for reboot NOW! Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#less /var/log/squid/redirector.log
|
#less /var/log/squid/redirector.err
|
#touch /var/log/squid/make-cache
294 # 295 #Default: 296 # none 297 298 # TAG: udp_incoming_address 299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. ... 307 # A udp_incoming_address value of 0.0.0.0 indicates Squid 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#ethtool eth1
Settings for eth1: Cannot get device settings: No such device Cannot get wake-on-lan settings: No such device Cannot get message level: No such device Cannot get link status: No such device No data available |
#ls -l /var/log/squid/
итого 372 -rw-r----- 1 proxy proxy 99804 2007-06-02 13:15 access.log -rw-r----- 1 proxy proxy 101085 2007-06-02 14:13 cache.log -rw-r--r-- 1 root root 0 2007-06-02 14:16 make-cache -rw-r--r-- 1 proxy proxy 28158 2007-06-02 14:15 redirector.err -rw-r----- 1 proxy proxy 133 2007-06-02 13:14 redirector.log -rw-r----- 1 proxy proxy 129368 2007-06-02 13:15 store.log |
#chown proxy:proxy /var/log/squid/make-cache
294 # 295 #Default: 296 # none 297 298 # TAG: udp_incoming_address 299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. ... 307 # A udp_incoming_address value of 0.0.0.0 indicates Squid 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#./check-redirector
|
#less /var/log/squid/redirector.err
|
#ls -l ../
итого 100 drwxr-xr-x 6 proxy proxy 4096 2003-07-25 08:02 banlists -rwxr-xr-x 1 proxy proxy 39108 2007-06-02 12:57 make-cache -rwxr-xr-x 1 proxy proxy 43897 2007-06-02 12:57 redirector -rw-r--r-- 1 proxy proxy 3043 2007-06-02 14:15 redirector.conf -rw-r--r-- 1 proxy proxy 3052 2007-06-02 12:57 redirector.conf.dist drwxr-sr-x 2 proxy proxy 4096 2007-06-02 12:57 tools |
#./check-redirector
|
#less /var/log/squid/redirector.err
|
#ls -l /var/log/squid/
итого 372 -rw-r----- 1 proxy proxy 99804 2007-06-02 13:15 access.log -rw-r----- 1 proxy proxy 101085 2007-06-02 14:13 cache.log -rw-r--r-- 1 proxy proxy 0 2007-06-02 14:16 make-cache -rw-r--r-- 1 proxy proxy 28622 2007-06-02 14:17 redirector.err -rw-r----- 1 proxy proxy 133 2007-06-02 13:14 redirector.log -rw-r----- 1 proxy proxy 129368 2007-06-02 13:15 store.log |
#vim ../redirector.conf
|
#ls
benchmark check-redirector IN.gz kill-cache set-permissions |
#vim set-permissions
|
#ls -ld /usr/src/redirector-3.2.1/
drwxr-xr-x 3 root root 4096 2007-06-02 12:57 /usr/src/redirector-3.2.1/ |
#ls -ld /usr/local/rejik3/
295 #Default: 296 # none 297 298 # TAG: udp_incoming_address 299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. 304 # ... 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other drwxrwx--- 4 proxy proxy 4096 2007-06-02 14:18 /usr/local/rejik3/ Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#ls
benchmark check-redirector IN.gz kill-cache set-permissions |
#vim kill-cache
|
#squid -z
2007/06/02 14:19:19| Creating Swap Directories |
#./check-redirector
294 # 295 #Default: 296 # none 297 298 # TAG: udp_incoming_address 299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. ... 307 # A udp_incoming_address value of 0.0.0.0 indicates Squid 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#less /var/log/squid/redirector.err
|
#vim ../redirector.conf
|
#ls -l /var/log/squid/
итого 376 -rw-r----- 1 proxy proxy 99804 2007-06-02 13:15 access.log -rw-r----- 1 proxy proxy 101085 2007-06-02 14:13 cache.log -rw-r--r-- 1 proxy proxy 0 2007-06-02 14:16 make-cache -rw-r--r-- 1 proxy proxy 28854 2007-06-02 14:19 redirector.err -rw-r----- 1 proxy proxy 133 2007-06-02 13:14 redirector.log -rw-r----- 1 proxy proxy 129368 2007-06-02 13:15 store.log |
#ls -ld /var/log/squid/
295 #Default: 296 # none 297 298 # TAG: udp_incoming_address 299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. 304 # ... 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other drwxr-x--- 2 proxy proxy 4096 2007-06-02 14:16 /var/log/squid/ Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#chmod 777 /var/log/squid/make-cache
294 # 295 #Default: 296 # none 297 298 # TAG: udp_incoming_address 299 # TAG: udp_outgoing_address 300 # udp_incoming_address is used for the ICP socket receiving packets 301 # from other caches. 302 # udp_outgoing_address is used for ICP packets sent out to other 303 # caches. ... 307 # A udp_incoming_address value of 0.0.0.0 indicates Squid 308 # should listen for UDP messages on all available interfaces. 309 # 310 # If udp_outgoing_address is set to 255.255.255.255 (the default) 311 # it will use the same socket as udp_incoming_address. Only 312 # change this if you want to have ICP queries sent using another 313 # address than where this Squid listens for ICP queries from other Jun 2 13:22:10 zero squid[3064]: The url_rewriter helpers are crashing too rapidly, need help! [root@zero:~]# ------------------------------------------------------------------------------------------------------------------ |
#ls -l /var/log/squid/
итого 376 -rw-r----- 1 proxy proxy 99804 2007-06-02 13:15 access.log -rw-r----- 1 proxy proxy 101085 2007-06-02 14:13 cache.log -rwxrwxrwx 1 proxy proxy 0 2007-06-02 14:16 make-cache -rw-r--r-- 1 proxy proxy 28854 2007-06-02 14:19 redirector.err -rw-r----- 1 proxy proxy 133 2007-06-02 13:14 redirector.log -rw-r----- 1 proxy proxy 129368 2007-06-02 13:15 store.log |
Время первой команды журнала | 13:12:24 2007- 6- 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:20:47 2007- 6- 2 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 26.73 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.48 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 3.51 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008