. WIKIMERIONET
Merion Mertics , ,

-
-
CRM

5

, Asterisk, IP . , Asterisk CentOS .


SSH

CentOS SSH (Secure Shell), . , SSH 22 . IP , SSH Putty, , , IP Asterisk

  CentOS  Asterisk
. , , , Save

, :

  1. SSH
  2. [root@localhost ~]# nano /etc/ssh/sshd_config 
    
  3. , #Port 22. :
  4. # The strategy used for options in the default sshd_config shipped with
    # OpenSSH is to specify options with their default value where
    # possible, but leave them commented.  Uncommented options change a
    # default value.
    
    #Port 22
    #AddressFamily any
    #ListenAddress 0.0.0.0
    #ListenAddress ::
  5. # () , . , 7022
  6. Port 7022
    #AddressFamily any
    #ListenAddress 0.0.0.0
    #ListenAddress ::
  7. . , SSH:
  8. [root@localhost ~]# /etc/init.d/sshd restart 
    

Asterisk , . , , . , .

du , :

[root@localhost ~]# du
1240    ./.mozilla/firefox/5r4h2uwt.default/gmp-gmpopenh264/1.5.3
1244    ./.mozilla/firefox/5r4h2uwt.default/gmp-gmpopenh264
4       ./.mozilla/firefox/5r4h2uwt.default/healthreport

-h du -h, (K , .)

[root@localhost ~]# du -h
1.3M    ./.mozilla/firefox/5r4h2uwt.default/gmp-gmpopenh264/1.5.3
1.3M    ./.mozilla/firefox/5r4h2uwt.default/gmp-gmpopenh264
4.0K    ./.mozilla/firefox/5r4h2uwt.default/healthreport

Asterisk /var/spool/asterisk/, , , . , , du -h s:

[root@localhost asterisk]# du -sh /var/spool/asterisk/monitor/
111M    /var/spool/asterisk/monitor/

, . . df - h , , :

[root@localhost asterisk]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       146G  4.8G  134G   4% /
tmpfs           498M   72K  498M   1% /dev/shm
/dev/sda1       283M   25M  244M  10% /boot

, Asterisk:

  • ls -
  • ls -l . , .
  • cd /var/spool/asterisk/monitor/ - .
  • cd .. -
  • cd ../.. -
  • cp index.php /var - index.php /var
  • cp index.php /var - index.php /var

NTP

NTP, :

  1. service ntpd stop
  2. ntpdate pool.ntp.org
  3. service ntpd start
  4. service httpd restart

:

  1. root date. , .
  2. [root@localhost ~]# date
    Sun Mar 29 9:27:23 MSK 2020
  3. cd /usr/share/zoneinfo. . , , /Europe/Samara
  4. /etc/localtime. , : ln -sf /usr/share/zoneinfo/Europe/Samara /etc/localtime
  5. ZONE /etc/sysconfig/clock Europe/Samara. :
  6. [root@localhost ~]# vim /etc/sysconfig/clock

    vim o . , : ZONE=Europe/Samara. :x! Enter.

  7. /sbin/hwclock --systohc

  1. tail /home/log.txt - 10 . /home/log.txt
  2. tail -f /home/log.txt - 10 . ,
  3. tail n 100 /home/log.txt - 100 .
  4. tail n 100 /home/log.txt > result.txt - 100 /home/log.txt result.txt

?