Журнал лабораторных работ

Содержание

Журнал

Суббота (06/02/07)

/dev/pts/2
13:12:24
#/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
13:12:32
#/etc/init.d/apache2 restart

13:12:37
#squid -k reconfigure
squid: ERROR: Could not send signal 1 to process 26606: (3) No such process
13:12:42
#/etc/init.d/squid start
Starting Squid HTTP proxy: squid.
13:12:45
#less /var/log/daemon.log
13:13:03
#less /var/log/daemon.log
13:13:37
#vim /etc/squid/squid.conf
13:14:01
#. /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
13:14:33
#. /usr/local/rejik3/tools/check-redirector

13:14:37
#cd /usr/local/rejik3/tools/

13:14:45
#ls
benchmark  check-redirector  IN.gz  kill-cache  set-permissions
13:14:46
#./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
13:14:54
#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
13:15:03
#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
13:15:06
#/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
13:15:55
#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)
13:16:00
#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)
13:16:23
#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)
13:16:27
#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
13:16:49
#vim /usr/local/rejik3/redirector.conf
13:17:20
#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
13:17:20
#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
13:17:31
#less /var/log/squid/redirector.err
13:17:43
#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)
13:17:46
#vim /usr/local/rejik3/redirector.conf
13:17:57
#less /var/log/squid/redirector.err
13:18:33
#vim /usr/local/rejik3/redirector.conf
13:18:51
#./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
13:19:00
#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)
13:19:03
#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
13:19:14
#ps aux | grep rejik
root     27127  0.0  0.0   3740   764 pts/3    R+   13:19   0:00 grep rejik
13:19:24
#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
13:19:27
#ps aux | grep red
root     27149  0.0  0.0   3740   764 pts/3    R+   13:19   0:00 grep red
13:19:31
#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
13:19:32
#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)
13:19:40
#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
13:20:03
#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*
13:20:04
#reboot

прошло 39 минут
/dev/pts/0
13:59:39
#screen -x
14:03:04
#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
/dev/pts/2
14:04:36
#screen
/dev/pts/4
14:05:16
#ps aux | grep squid
root      3347  0.0  0.0   3744   764 pts/5    R+   14:05   0:00 grep squid
14:05:29
#less /var/log/
14:05:29
#less /var/log/squid/
14:05:29
#less /var/log/daemon.log
/dev/pts/6
14:05:54
#screen -x
/dev/pts/4
14:06:01
#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:~]#
------------------------------------------------------------------------------------------------------------------
14:06:09
#vim /etc/squid/squid.conf
/dev/pts/0
14:06:35
#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:~]#
------------------------------------------------------------------------------------------------------------------
14:06:47
#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:~]#
------------------------------------------------------------------------------------------------------------------
14:07:47
#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)
14:07:53
#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:~]#
------------------------------------------------------------------------------------------------------------------
/dev/pts/4
14:08:15
#vim /etc/squid/squid.conf
/dev/pts/8
14:08:38
#screen -x
/dev/pts/4
14:08:50
#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.
14:08:58
#vim /etc/squid/squid.conf
/dev/pts/0
14:09:01
#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:~]#
------------------------------------------------------------------------------------------------------------------
/dev/pts/4
14:09:24
#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)
14:09:26
#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
/dev/pts/10
14:11:28
#. /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:~]#
------------------------------------------------------------------------------------------------------------------
14:11:31
#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
14:12:00
#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:~]#
------------------------------------------------------------------------------------------------------------------
/dev/pts/0
14:12:38
#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:~]#
------------------------------------------------------------------------------------------------------------------
/dev/pts/4
14:13:50
#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)
14:13:52
#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:~]#
------------------------------------------------------------------------------------------------------------------
14:14:48
#cd tools/

14:14:53
#ls
benchmark  check-redirector  IN.gz  kill-cache  set-permissions
14:14:54
#./check-redirector

14:14:57
#less /var/log/squid/
14:14:57
#less /var/log/squid/redirector.log
14:15:14
#less /var/log/squid/redirector.err
14:15:26
#vim ../redirector.conf
72c72
< #make-cache /var/log/squid/make-cache
---
> make-cache /var/log/squid/make-cache
/dev/pts/0
14:15:42
#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:~]#
------------------------------------------------------------------------------------------------------------------
/dev/pts/4
14:15:42
#./check-redirector

14:15:45
#less /var/log/squid/redirector.log
14:15:48
#less /var/log/squid/redirector.err
14:16:00
#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:~]#
------------------------------------------------------------------------------------------------------------------
/dev/pts/0
14:16:09
#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
/dev/pts/4
14:16:18
#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
14:16:22
#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:~]#
------------------------------------------------------------------------------------------------------------------
14:16:39
#./check-redirector

14:16:43
#less /var/log/squid/redirector.err
14:16:57
#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
14:17:01
#./check-redirector

14:17:06
#less /var/log/squid/redirector.err
14:17:17
#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
14:17:21
#vim ../redirector.conf
14:18:18
#ls
benchmark  check-redirector  IN.gz  kill-cache  set-permissions
14:18:20
#vim set-permissions
14:18:31
#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/
14:18:43
#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:~]#
------------------------------------------------------------------------------------------------------------------
14:18:49
#ls
benchmark  check-redirector  IN.gz  kill-cache  set-permissions
14:18:53
#vim kill-cache
14:19:15
#squid -z
2007/06/02 14:19:19| Creating Swap Directories
14:19:19
#./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:~]#
------------------------------------------------------------------------------------------------------------------
14:19:24
#less /var/log/squid/redirector.err
14:19:47
#vim ../redirector.conf
14:20:05
#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
14:20:13
#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:~]#
------------------------------------------------------------------------------------------------------------------
14:20:17
#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:~]#
------------------------------------------------------------------------------------------------------------------
14:20:47
#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
Частота использования команд
ls18|================| 16.51%
less15|=============| 13.76%
vim13|===========| 11.93%
squid12|===========| 11.01%
ps8|=======| 7.34%
grep8|=======| 7.34%
check-redirector7|======| 6.42%
screen4|===| 3.67%
ping3|==| 2.75%
cd3|==| 2.75%
.3|==| 2.75%
shutdown2|=| 1.83%
/etc/init.d/squid2|=| 1.83%
ssh2|=| 1.83%
ifconfig1|| 0.92%
/etc/init.d/apache21|| 0.92%
touch1|| 0.92%
SquidAcl1|| 0.92%
chown1|| 0.92%
chmod1|| 0.92%
reboot1|| 0.92%
ethtool1|| 0.92%
/etc/init.d/apache1|| 0.92%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ 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
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$