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

. , , , Save
, :
- SSH
- ,
#Port 22
. : -
#
() , . , 7022 - . , SSH:
[root@localhost ~]# nano /etc/ssh/sshd_config
# 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 ::
Port 7022 #AddressFamily any #ListenAddress 0.0.0.0 #ListenAddress ::
[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 /varcp index.php /var
- index.php /var
NTP
NTP, :
- service ntpd stop
- ntpdate pool.ntp.org
- service ntpd start
- service httpd restart
:
- root
date
. , . -
cd /usr/share/zoneinfo
. . , , /Europe/Samara - /etc/localtime. , :
ln -sf /usr/share/zoneinfo/Europe/Samara /etc/localtime
- ZONE
/etc/sysconfig/clock
Europe/Samara. : -
/sbin/hwclock --systohc
[root@localhost ~]# date Thu Apr 15 5:41:35 MSK 2021
[root@localhost ~]# vim /etc/sysconfig/clock
vim
o . , : ZONE=Europe/Samara
. :x!
Enter.
tail /home/log.txt
- 10 . /home/log.txttail -f /home/log.txt
- 10 . ,tail n 100 /home/log.txt
- 100 .tail n 100 /home/log.txt > result.txt
- 100 /home/log.txt result.txt