/l3/users/serg-ko/nt-ladm/linux1.linux.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 |
|
#vim /usr/local/squid/etc/squid.conf
|
#ls -l /usr/local/squid/etc/squid.conf
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README -rw-r--r-- 1 root root 150519 Дек 15 18:25 /usr/local/squid/etc/squid.conf |
#ls -l /usr/local/squid/
итого 28 drwxr-xr-x 2 root root 4096 Дек 15 18:23 bin drwxr-xr-x 2 root root 4096 Дек 15 18:27 etc drwxr-xr-x 2 root root 4096 Дек 15 18:23 libexec drwxr-xr-x 3 root root 4096 Дек 15 18:23 man drwxr-xr-x 2 root root 4096 Дек 15 18:22 sbin drwxr-xr-x 4 root root 4096 Дек 15 18:22 share drwxr-xr-x 4 root root 4096 Дек 15 18:26 var |
#/usr/local/squid/sbin/squid
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_ERROR squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README |
#netstat -lnp | grep :3128
|
#netstat -lnp
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:35980 0.0.0.0:* LISTEN 1535/rpc.statd tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1500/portmap tcp 0 0 127.0.0.1:50000 0.0.0.0:* LISTEN 2050/hpiod tcp 0 0 127.0.0.1:50002 0.0.0.0:* LISTEN 2055/python tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2065/cupsd tcp 0 0 127.0.0.1:5335 0.0.0.0:* LISTEN 2007/mDNSResponder tcp 0 0 :::22 :::* LISTEN 2135/sshd udp 0 0 0.0.0.0:32768 0.0.0.0:* 1535/rpc.statd ... unix 2 [ ACC ] STREAM LISTENING 8016 2897/gnome-panel /tmp/orbit-user/linc-b51-0-7bcee03bb31ba unix 2 [ ACC ] STREAM LISTENING 8067 2899/nautilus /tmp/orbit-user/linc-b53-0-69e9668c9f7e8 unix 2 [ ACC ] STREAM LISTENING 8076 2901/gnome-volume-m /tmp/orbit-user/linc-b55-0-69e9668cc9291 unix 2 [ ACC ] STREAM LISTENING 8096 2917/wnck-applet /tmp/orbit-user/linc-b65-0-1f3a415848cca unix 2 [ ACC ] STREAM LISTENING 8129 2915/gnome-vfs-daem /tmp/orbit-user/linc-b63-0-b7e03b42ddfc unix 2 [ ACC ] STREAM LISTENING 8200 2911/eggcups /tmp/orbit-user/linc-b5f-0-303ec6c11ed02 unix 2 [ ACC ] STREAM LISTENING 8287 2941/mixer_applet2 /tmp/orbit-user/linc-b7d-0-d7327b660d7c unix 2 [ ACC ] STREAM LISTENING 8310 2943/notification-a /tmp/orbit-user/linc-b7f-0-33362f8e52b23 unix 2 [ ACC ] STREAM LISTENING 8333 2945/clock-applet /tmp/orbit-user/linc-b81-0-66614f1d912e unix 2 [ ACC ] STREAM LISTENING 7556 2811/ssh-agent /tmp/ssh-eWIplp2718/agent.2718 |
#netstat -lnp | less
|
#less /var/lo
|
#less /var/log/
|
#less /usr/local/squid/
|
#less /usr/local/squid/var/
|
#less /usr/local/squid/var/logs/
|
#/usr/local/squid/sbin/squid start
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_ERROR squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README |
#netstat -lnp | less
|
#ps aux | grep squid
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README root 16941 0.0 0.1 3784 744 pts/7 R+ 18:29 0:00 grep squid |
#useradd -r squid
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_ERROR squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README |
#netstat -lnp | less
|
#grep squid /etc/passwd
squid:x:100:101::/home/squid:/bin/bash |
#vipw
ntp:x:38:38::/etc/ntp:/sbin/nologin sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin pcap:x:77:77::/var/arpwatch:/sbin/nologin pvm:x:24:24::/usr/share/pvm3:/bin/bash ed SSH:/var/empty/sshd:/ user:x:500:500:serg,nooffice,1234567,7654321:/home/user:/bin/bash sergey:x:501:502::/home/sergey:/bin/bash d:x:100:101::/home/squid:/id:/sbin/nologin "/etc/ptmp" 36L, 1610C written :wq You are using shadow passwords on this system. Would you like to edit /etc/shadow now [y/n]? n |
#/usr/local/squid/sbin/squid start
ux1:/usr/src/squid-2.6.STABLE4^R |
#chmod squid /usr/local/squid/var/cache
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README chmod: неверная строка режима: `squid' |
#chown squid:root /usr/local/squid/var/cache
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_ERROR squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README |
#/usr/local/squid/sbin/squid -d1 -n
running copy (except -k parse) and exit. -s | -l facility Enable logging to syslog. -u port Specify ICP port number (default: 3130), disable with 0. -v Print version. -z Create swap directories -C Do not catch fatal signals. -D Disable initial DNS tests. -F Don't serve any requests until store is rebuilt. -N No daemon mode. -R Do not set REUSEADDR on port. -S Double-check swap during rebuild. -X Force full debugging. -Y Only return UDP_HIT or UDP_MISS_NOFETCH during fast reload. |
#/usr/local/squid/sbin/squid -d1 -N
WARNING: Cannot write log file: /usr/local/squid/var/logs/cache.log /usr/local/squid/var/logs/cache.log: Permission denied messages will be sent to 'stderr'. 2006/12/15 18:32:11| WARNING: Closing open FD 2 2006/12/15 18:32:11| Starting Squid Cache version 2.6.STABLE4 for i686-pc-linux-gnu... 2006/12/15 18:32:11| Process ID 17041 2006/12/15 18:32:11| With 1024 file descriptors available 2006/12/15 18:32:11| Using epoll for the IO loop 2006/12/15 18:32:11| Performing DNS Tests... 2006/12/15 18:32:11| Successful DNS name lookup tests... 2006/12/15 18:32:11| DNS Socket created at 0.0.0.0, port 32769, FD 4 2006/12/15 18:32:11| Adding domain linux.nt from /etc/resolv.conf 2006/12/15 18:32:11| Adding nameserver 192.168.15.15 from /etc/resolv.conf FATAL: Cannot open '/var/logs/access.log' because the parent directory does not exist. Please create the directory. Squid Cache (Version 2.6.STABLE4): Terminated abnormally. CPU Usage: 0.012 seconds = 0.004 user + 0.008 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 Аварийный останов (core dumped) |
#vim /usr/local/squid/etc/squid.conf
|
#/usr/local/squid/sbin/squid -d1 -N
2006/12/15 18:33:16| Performing DNS Tests... 2006/12/15 18:33:16| Successful DNS name lookup tests... 2006/12/15 18:33:16| DNS Socket created at 0.0.0.0, port 32769, FD 4 2006/12/15 18:33:16| Adding domain linux.nt from /etc/resolv.conf 2006/12/15 18:33:16| Adding nameserver 192.168.15.15 from /etc/resolv.conf FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing. The parent directory must be writeable by the user 'nobody', which is the cache_effective_user set in squid.conf. Squid Cache (Version 2.6.STABLE4): Terminated abnormally. CPU Usage: 0.012 seconds = 0.004 user + 0.008 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 Аварийный останов (core dumped) |
#vim /usr/local/squid/etc/squid.conf
2857c2857 < # cache_effective_user nobody --- > cache_effective_user squid |
#/usr/local/squid/sbin/squid -d1 -N
WARNING: Cannot write log file: /usr/local/squid/var/logs/cache.log /usr/local/squid/var/logs/cache.log: Permission denied messages will be sent to 'stderr'. 2006/12/15 18:33:53| WARNING: Closing open FD 2 2006/12/15 18:33:53| Starting Squid Cache version 2.6.STABLE4 for i686-pc-linux-gnu... 2006/12/15 18:33:53| Process ID 17117 2006/12/15 18:33:53| With 1024 file descriptors available 2006/12/15 18:33:53| Using epoll for the IO loop 2006/12/15 18:33:53| Performing DNS Tests... 2006/12/15 18:33:53| Successful DNS name lookup tests... ... 2006/12/15 18:33:53| Adding nameserver 192.168.15.15 from /etc/resolv.conf FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing. The parent directory must be writeable by the user 'squid', which is the cache_effective_user set in squid.conf. Squid Cache (Version 2.6.STABLE4): Terminated abnormally. CPU Usage: 0.016 seconds = 0.012 user + 0.004 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 Аварийный останов (core dumped) |
#chown squid:squid /usr/local/squid/var/cache
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_ERROR squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README |
#/usr/local/squid/sbin/squid -d1 -N
WARNING: Cannot write log file: /usr/local/squid/var/logs/cache.log /usr/local/squid/var/logs/cache.log: Permission denied messages will be sent to 'stderr'. 2006/12/15 18:34:06| WARNING: Closing open FD 2 2006/12/15 18:34:06| Starting Squid Cache version 2.6.STABLE4 for i686-pc-linux-gnu... 2006/12/15 18:34:06| Process ID 17138 2006/12/15 18:34:06| With 1024 file descriptors available 2006/12/15 18:34:06| Using epoll for the IO loop 2006/12/15 18:34:06| Performing DNS Tests... 2006/12/15 18:34:06| Successful DNS name lookup tests... ... 2006/12/15 18:34:06| Adding nameserver 192.168.15.15 from /etc/resolv.conf FATAL: Cannot open '/usr/local/squid/var/logs/access.log' for writing. The parent directory must be writeable by the user 'squid', which is the cache_effective_user set in squid.conf. Squid Cache (Version 2.6.STABLE4): Terminated abnormally. CPU Usage: 0.020 seconds = 0.008 user + 0.012 sys Maximum Resident Size: 0 KB Page faults with physical i/o: 0 Аварийный останов (core dumped) |
#ls -ld /usr/local/squid/var/logs/access.log
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README ls: /usr/local/squid/var/logs/access.log: Нет такого файла или каталога |
#ls -ld /usr/local/squid/var/logs/access.log
|
#ls -ld /usr/local/squid/var/logs/
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README drwxr-xr-x 2 root root 4096 Дек 15 18:22 /usr/local/squid/var/logs/ |
#chown -R squid:squid /usr/local/squid/var/
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_ERROR squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README |
#ls -ld /usr/local/squid/var/logs/
drwxr-xr-x 2 squid squid 4096 Дек 15 18:22 /usr/local/squid/var/logs/ |
#ls -l /usr/local/squid/var/logs/
итого 0 |
#chown -R squid:squid /usr/local/squid/var/
|
#/usr/local/squid/sbin/squid -d1 -N
2006/12/15 18:35:20| DNS Socket created at 0.0.0.0, port 32769, FD 5 2006/12/15 18:35:20| Adding domain linux.nt from /etc/resolv.conf 2006/12/15 18:35:20| Adding nameserver 192.168.15.15 from /etc/resolv.conf 2006/12/15 18:35:20| Unlinkd pipe opened on FD 10 2006/12/15 18:35:20| Swap maxSize 102400 KB, estimated 7876 objects 2006/12/15 18:35:20| Target number of buckets: 393 2006/12/15 18:35:20| Using 8192 Store buckets 2006/12/15 18:35:20| Max Mem size: 8192 KB 2006/12/15 18:35:20| Max Swap size: 102400 KB 2006/12/15 18:35:20| /usr/local/squid/var/cache/00: (2) No such file or directory FATAL: Failed to verify one of the swap directories, Check cache.log for details. Run 'squid -z' to create swap directories if needed, or if running Squid for the first time. Аварийный останов (core dumped) |
#squid -z
bash: squid: command not found |
#/usr/local/squid/bin/
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README RunCache squidclient |
#/usr/local/squid/sbin/squid -z
2006/12/15 18:36:04| Creating Swap Directories |
#echo $?
0 |
#/usr/local/squid/sbin/squid -d1 -N
2006/12/15 18:36:12| Starting Squid Cache version 2.6.STABLE4 for i686-pc-linux-gnu... 2006/12/15 18:36:12| Process ID 17237 2006/12/15 18:36:12| With 1024 file descriptors available 2006/12/15 18:36:12| Using epoll for the IO loop 2006/12/15 18:36:12| Performing DNS Tests... 2006/12/15 18:36:12| Successful DNS name lookup tests... 2006/12/15 18:36:12| DNS Socket created at 0.0.0.0, port 32769, FD 5 2006/12/15 18:36:12| Adding domain linux.nt from /etc/resolv.conf 2006/12/15 18:36:12| Adding nameserver 192.168.15.15 from /etc/resolv.conf 2006/12/15 18:36:12| Unlinkd pipe opened on FD 10 ... 2006/12/15 18:36:15| Preparing for shutdown after 0 requests 2006/12/15 18:36:15| Waiting 0 seconds for active connections to finish 2006/12/15 18:36:15| FD 11 Closing HTTP connection 2006/12/15 18:36:15| Shutting down... 2006/12/15 18:36:15| FD 12 Closing ICP connection 2006/12/15 18:36:15| Closing unlinkd pipe on FD 10 2006/12/15 18:36:15| storeDirWriteCleanLogs: Starting... 2006/12/15 18:36:15| Finished. Wrote 0 entries. 2006/12/15 18:36:15| Took 0.0 seconds ( 0.0 entries/sec). 2006/12/15 18:36:15| Squid Cache (Version 2.6.STABLE4): Exiting normally. |
#/usr/local/squid/sbin/squid
|
#netstat -lnp | grep :3128
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN 17251/(squid) |
#sync
squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_ERROR squid-2.6.STABLE4/errors/Japanese/ERR_FTP_PUT_CREATED squid-2.6.STABLE4/errors/Japanese/ERR_FTP_NOT_FOUND squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FORBIDDEN squid-2.6.STABLE4/errors/Japanese/ERR_FTP_FAILURE squid-2.6.STABLE4/errors/Japanese/ERR_FTP_DISABLED squid-2.6.STABLE4/errors/Japanese/ERR_FORWARDING_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_DNS_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CONNECT_FAIL squid-2.6.STABLE4/errors/Japanese/ERR_CANNOT_FORWARD squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_MGR_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_CACHE_ACCESS_DENIED squid-2.6.STABLE4/errors/Japanese/ERR_ZERO_SIZE_OBJECT squid-2.6.STABLE4/errors/Japanese/README |
#shutdown -h now
|
Время первой команды журнала | 18:26:48 2006-12-15 | |||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 18:43:31 2006-12-15 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 48 | |||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 25.00 | |||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.17 | |||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.28 | |||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.87 | |||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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