Mục tiêu thực hành:
- Khởi động các Services liên quan đến FreeSwitch trên CentOS 7.
Các bước triển khai:
Khởi động các Services liên quan đến FreeSwitch trên CentOS 7.
- Khởi động và kiểm tra trạng thái FreeSwitch v1.6.
systemctl start freeswitch.servicesystemctl enable freeswitch.servicesystemctl restart freeswitch.service
[root@localhost tmp]# systemctl status freeswitch.service● freeswitch.service - freeswitchLoaded: loaded (/etc/systemd/system/freeswitch.service; enabled; vendor preset: disabled)Active: active (running) since Tue 2021-05-04 13:55:37 +07; 36min agoProcess: 992 ExecStart=/usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait $DAEMON_OPTS (code=exited, status=0/SUCCESS)Process: 976 ExecStartPre=/bin/chown -R freeswitch:daemon /usr/local/freeswitch (code=exited, status=0/SUCCESS)Main PID: 996 (freeswitch)CGroup: /system.slice/freeswitch.service└─996 /usr/bin/freeswitch -u freeswitch -g freeswitch -ncwait -nonatMay 04 13:55:35 localhost.localdomain systemd[1]: Starting freeswitch...May 04 13:55:35 localhost.localdomain freeswitch[992]: 996 Backgrounding.May 04 13:55:37 localhost.localdomain freeswitch[992]: FreeSWITCH[992] Waiting for background process pid:996 to be ready.....May 04 13:55:37 localhost.localdomain freeswitch[992]: FreeSWITCH[992] System Ready pid:996May 04 13:55:37 localhost.localdomain systemd[1]: Started freeswitch.[root@localhost tmp]#
- Khởi động dịch vụ Apache Web Server và kiểm tra phiên bản PHP Version hiện đang được sử dụng trên CentOS 7 bằng cách truy cập tới đường dẫn http://192.168.100.122/info.php
[root@localhost ~]# systemctl start httpd
[root@localhost ~]# sudo systemctl status httpd
- Start/Restart/Enable PostgreSQL.
systemctl enable postgresql-9.6.service
systemctl start postgresql-9.6.service
systemctl restart postgresql-9.6
systemctl status postgresql-9.6
[root@localhost ~]# cd /tmp[root@localhost tmp]# sudo -u postgres psqlpsql (9.6.21)Type "help" for help.postgres=# postgres=#\q[root@localhost tmp]#
- Kiểm tra trạng thái SELinux đang được disabled.
[root@localhost tmp]# sestatusSELinux status: disabled[root@localhost tmp]#
- Tắt Firewall trên CentOS 7.
[root@localhost tmp]# systemctl stop firewalld
- Kiểm tra thời gian hiện tại trên CentOS 7.
[root@localhost tmp]# timedatectl statusLocal time: Tue 2021-05-04 14:29:23 +07Universal time: Tue 2021-05-04 07:29:23 UTCRTC time: Tue 2021-05-04 07:29:23Time zone: Asia/Ho_Chi_Minh (+07, +0700)NTP enabled: yesNTP synchronized: yesRTC in local TZ: noDST active: n/a[root@localhost tmp]#
Mọi thắc mắc các bạn vui lòng liên hệ với mình thông qua kênh Zalo (Jade Bùi) 076.877.2021.
0 comments