/l3/users/27-3-2017/NT-Ladm/debian1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 |
|
#top
![]() top - 11:44:54 up 6 days, 17:58, 2 users, load average: 3,40, 2,75, 1,48 Tasks: 67 total, 1 running, 66 sleeping, 0 stopped, 0 zombie %Cpu(s): 0,0 us, 1,0 sy, 0,0 ni, 0,0 id, 97,7 wa, 0,0 hi, 0,0 si, 1,3 st KiB Mem: 507368 total, 501172 used, 6196 free, 98624 buffers KiB Swap: 0 total, 0 used, 0 free, 326652 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5887 root 20 0 11976 632 520 D 1,3 0,1 0:02.24 dd 3367 root 20 0 0 0 0 D 0,7 0,0 0:04.96 flush-202:0 20 root 20 0 0 0 0 S 0,3 0,0 0:01.08 kswapd0 127 root 20 0 0 0 0 D 0,3 0,0 0:08.44 jbd2/xvda1-8 ... 4364 root 20 0 18168 464 300 S 0,0 0,1 0:00.79 script 4365 root 20 0 21940 2428 1684 S 0,0 0,5 0:00.74 l3script 5220 root 20 0 18368 952 796 S 0,0 0,2 0:00.01 getty 5344 root 20 0 18368 952 796 S 0,0 0,2 0:00.00 getty 5352 root 20 0 18368 960 796 S 0,0 0,2 0:00.00 getty 5361 root 20 0 18368 948 796 S 0,0 0,2 0:00.00 getty 5368 root 20 0 18368 952 796 S 0,0 0,2 0:00.00 getty 5376 root 20 0 18368 952 796 S 0,0 0,2 0:00.00 getty 5685 user 20 0 49516 11m 1648 S 0,0 2,4 9:04.37 l3-agent 5839 root 20 0 71288 3688 2892 S 0,0 0,7 0:00.04 sshd |
#top
top - 11:44:54 up 6 days, 17:58, 2 users, load average: 3,40, 2,75, 1,48 Tasks: 67 total, 1 running, 66 sleeping, 0 stopped, 0 zombie %Cpu(s): 0,0 us, 1,0 sy, 0,0 ni, 0,0 id, 97,7 wa, 0,0 hi, 0,0 si, 1,3 st KiB Mem: 507368 total, 501172 used, 6196 free, 98624 buffers KiB Swap: 0 total, 0 used, 0 free, 326652 cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 5887 root 20 0 11976 632 520 D 1,3 0,1 0:02.24 dd 3367 root 20 0 0 0 0 D 0,7 0,0 0:04.96 flush-202:0 20 root 20 0 0 0 0 S 0,3 0,0 0:01.08 kswapd0 127 root 20 0 0 0 0 D 0,3 0,0 0:08.44 jbd2/xvda1-8 ... 4364 root 20 0 18168 464 300 S 0,0 0,1 0:00.79 script 4365 root 20 0 21940 2428 1684 S 0,0 0,5 0:00.74 l3script 5220 root 20 0 18368 952 796 S 0,0 0,2 0:00.01 getty 5344 root 20 0 18368 952 796 S 0,0 0,2 0:00.00 getty 5352 root 20 0 18368 960 796 S 0,0 0,2 0:00.00 getty 5361 root 20 0 18368 948 796 S 0,0 0,2 0:00.00 getty 5368 root 20 0 18368 952 796 S 0,0 0,2 0:00.00 getty 5376 root 20 0 18368 952 796 S 0,0 0,2 0:00.00 getty 5685 user 20 0 49516 11m 1648 S 0,0 2,4 9:04.37 l3-agent 5839 root 20 0 71288 3688 2892 S 0,0 0,7 0:00.04 sshd |
#kill 4269
![]() |
#bash
root@debian1:~# l3script |
#ssh 192.168.16.192
![]() root@192.168.16.192's password: Last login: Fri Mar 31 16:45:13 2017 [root@centos1 ~]# ls /etc/init.d abrt-ccpp certmonger haldaemon lvm2-monitor mdmonitor ntpd quota_nld rsyslog sysstat abrtd cgconfig halt matahari-broker messagebus ntpdate rdisc sandbox udev-post abrt-oops cgred ip6tables matahari-host netconsole oddjobd restorecond saslauthd ypbind acpid cpuspeed iptables matahari-network netfs portreserve rpcbind single atd crond irqbalance matahari-service network postfix rpcgssd smartd auditd cups kdump matahari-sysconfig nfs psacct rpcidmapd sshd autofs functions killall mcelogd nfslock qpidd rpcsvcgssd sssd ... # Save news errors of level crit and higher in a special file. uucp,news.crit /var/log/spooler # Save boot messages also to boot.log local7.* /var/log/boot.log "/etc/rsyslog.conf" 81L, 2809C written [root@centos1 fd]# service rsyslog reload Reloading system logger... [ OK ] [root@centos1 fd]# exit logout Connection to 192.168.16.192 closed. |
#ssh 192.168.16.192
root@192.168.16.192's password: Last login: Fri Mar 31 16:45:13 2017 [root@centos1 ~]# ls /etc/init.d abrt-ccpp certmonger haldaemon lvm2-monitor mdmonitor ntpd quota_nld rsyslog sysstat abrtd cgconfig halt matahari-broker messagebus ntpdate rdisc sandbox udev-post abrt-oops cgred ip6tables matahari-host netconsole oddjobd restorecond saslauthd ypbind acpid cpuspeed iptables matahari-network netfs portreserve rpcbind single atd crond irqbalance matahari-service network postfix rpcgssd smartd auditd cups kdump matahari-sysconfig nfs psacct rpcidmapd sshd autofs functions killall mcelogd nfslock qpidd rpcsvcgssd sssd ... .16.193 local5.@192.168. /var/log/ssh # Save boot messages also to boot.log local7.* /var/log/boot.log "/etc/rsyslog.conf" 81L, 2809C written [root@centos1 fd]# service rsyslog reload Reloading system logger... [ OK ] [root@centos1 fd]# exit logout Connection to 192.168.16.192 closed. |
#ssh 192.168.16.192
![]() root@192.168.16.192's password: Permission denied, please try again. root@192.168.16.192's password: Permission denied, please try again. root@192.168.16.192's password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). |
#ssh 192.168.16.192
![]() root@192.168.16.192's password: Permission denied, please try again. root@192.168.16.192's password: Permission denied, please try again. root@192.168.16.192's password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). |
#ssh 192.168.16.192
![]() root@192.168.16.192's password: Permission denied, please try again. root@192.168.16.192's password: Permission denied, please try again. root@192.168.16.192's password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). |
#ssh 192.168.16.192
![]() root@192.168.16.192's password: Permission denied, please try again. root@192.168.16.192's password: Permission denied, please try again. root@192.168.16.192's password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). |
#ssh 192.168.16.192
![]() root@192.168.16.192's password: Permission denied, please try again. root@192.168.16.192's password: Permission denied, please try again. root@192.168.16.192's password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). |
#ssh 192.168.16.192
![]() root@192.168.16.192's password: Permission denied, please try again. root@192.168.16.192's password: Permission denied, please try again. root@192.168.16.192's password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). |
#ssh 192.168.16.192
![]() root@192.168.16.192's password: Last login: Fri Mar 31 17:34:40 2017 from 10.1.17.1 [root@centos1 ~]# exit logout Connection to 192.168.16.192 closed. |
#ssh 192.168.16.192
root@192.168.16.192's password: Last login: Fri Mar 31 17:34:40 2017 from 10.1.17.1 [root@centos1 ~]# exit logout Connection to 192.168.16.192 closed. |
#cat /etc/logrotate.conf
![]() # see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after rotating old ones create # uncomment this if you want your log files compressed #compress # packages drop log rotation information into this directory ... create 0664 root utmp rotate 1 } /var/log/btmp { missingok monthly create 0660 root utmp rotate 1 } # system-specific logs may be configured here |
#cat /etc/logrotate.conf
# see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after rotating old ones create # uncomment this if you want your log files compressed #compress # packages drop log rotation information into this directory ... create 0664 root utmp rotate 1 } /var/log/btmp { missingok monthly create 0660 root utmp rotate 1 } # system-specific logs may be configured here |
#apt-get install squid
![]() Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово Будут установлены следующие дополнительные пакеты: libldap-2.4-2 libsasl2-2 libsasl2-modules squid-common squid-langpack Предлагаемые пакеты: libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql libsasl2-modules-gssapi-mit libsasl2-modules-gssapi-heimdal squidclient squid-cgi logcheck-database resolvconf smbclient winbind НОВЫЕ пакеты, которые будут установлены: libldap-2.4-2 libsasl2-2 libsasl2-modules squid squid-common squid-langpack ... Обрабатываются триггеры для man-db … Настраивается пакет libsasl2-2:amd64 (2.1.25.dfsg1-6+deb7u1) … Настраивается пакет libldap-2.4-2:amd64 (2.4.31-2+deb7u2) … Настраивается пакет squid-langpack (20120616-1) … Настраивается пакет squid-common (2.7.STABLE9-4.1+deb7u2) … Настраивается пакет squid (2.7.STABLE9-4.1+deb7u2) … Creating squid spool directory structure 2017/03/31 14:52:53| Creating Swap Directories [ ok ] Restarting Squid HTTP proxy: squid. Настраивается пакет libsasl2-modules:amd64 (2.1.25.dfsg1-6+deb7u1) … |
#apt-get install squid
Чтение списков пакетов… Готово Построение дерева зависимостей Чтение информации о состоянии… Готово Будут установлены следующие дополнительные пакеты: libldap-2.4-2 libsasl2-2 libsasl2-modules squid-common squid-langpack Предлагаемые пакеты: libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql lib |