# yum update
# systemctl stop firewalld && systemctl disable firewalld
Правим SELINUX=disabled в /etc/sysconfig/selinux
# yum -y install mariadb-server mariadb
# systemctl enable mariadb.service
# systemctl start mariadb.service
# mysql_secure_installation
# yum -y install httpd
# systemctl enable httpd.service
# systemctl start httpd.service
# yum -y install php
# systemctl restart httpd.service
# yum -y install php-mbstring php-mysql php-gd php-mcrypt php-common php-odbc php-xml curl lame
# cd /usr/src/
# tar zxvf tar zxvf asterisk-15-current.tar.gz
# cd asterisk-15*
# yum -y install bzip2 patch svn
# yum -y install gcc gcc-c++ ncurses-devel uuid-dev libuuid-devel jansson-devel libxml2-devel sqlite-devel libcurl-devel unixODBC.x86_64 unixODBC-devel.x86_64 mysql-connector-odbc.x86_64
#./contrib/scripts/get_mp3_source.sh
#./contrib/scripts/install_prereq install
# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib64 --with-pjproject-bundled
Также можно добавить следующие параметры, если требуется шифрование: --with-crypto --with-ssl=ssl --with-srtp
# make menuconfig
# make install
# make samples
# make progdocs
# make config
# chown -R asterisk.asterisk /etc/asterisk
# chown -R asterisk.asterisk /var/{lib,log,spool}/asterisk
# chown -R asterisk.asterisk /usr/lib64/asterisk
Добавляем в ~root/.inputrc
## arrow up
"\e[A":history-search-backward
## arrow down
"\e[B":history-search-forward
Добавляем в ~root/.bashrc
alias ll='ls -lAh'
alias ipt='iptables -L -v -n --line-numbers'
# systemctl stop firewalld && systemctl disable firewalld
Правим SELINUX=disabled в /etc/sysconfig/selinux
# yum -y install mariadb-server mariadb
# systemctl enable mariadb.service
# systemctl start mariadb.service
# mysql_secure_installation
# yum -y install httpd
# systemctl enable httpd.service
# systemctl start httpd.service
# yum -y install php
# systemctl restart httpd.service
# yum -y install php-mbstring php-mysql php-gd php-mcrypt php-common php-odbc php-xml curl lame
# cd /usr/src/
# tar zxvf tar zxvf asterisk-15-current.tar.gz
# cd asterisk-15*
# yum -y install bzip2 patch svn
# yum -y install gcc gcc-c++ ncurses-devel uuid-dev libuuid-devel jansson-devel libxml2-devel sqlite-devel libcurl-devel unixODBC.x86_64 unixODBC-devel.x86_64 mysql-connector-odbc.x86_64
#./contrib/scripts/get_mp3_source.sh
#./contrib/scripts/install_prereq install
# ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib64 --with-pjproject-bundled
Также можно добавить следующие параметры, если требуется шифрование: --with-crypto --with-ssl=ssl --with-srtp
# make menuconfig
# make install
# make samples
# make progdocs
# make config
# useradd -m asterisk
# chown asterisk.asterisk /var/run/asterisk # chown -R asterisk.asterisk /etc/asterisk
# chown -R asterisk.asterisk /var/{lib,log,spool}/asterisk
# chown -R asterisk.asterisk /usr/lib64/asterisk
Добавляем в ~root/.inputrc
## arrow up
"\e[A":history-search-backward
## arrow down
"\e[B":history-search-forward
Добавляем в ~root/.bashrc
alias ll='ls -lAh'
alias ipt='iptables -L -v -n --line-numbers'
Ну и:
# netstat -tuwpln > /sbin/sockstat
Комментариев нет:
Отправить комментарий