unibilling配置文件安装
# 所有的配置文件,包括linux的, apache的, mysql的,astersik的,unibilling的
###################################
## Install config files
###################################
cd /etc/asterisk
rm -dfr dialplan_billing.conf
wget http://www.iaxtalk.com/etc_asterisk/dialplan_billing.confrm -dfr extensions.conf
wget http://www.iaxtalk.com/etc_asterisk/extensions.confrm -dfr modules.conf
wget http://www.iaxtalk.com/etc_asterisk/modules.confrm -dfr extconfig.conf
wget http://www.iaxtalk.com/etc_asterisk/extconfig.confrm -dfr manager.conf
wget http://www.iaxtalk.com/etc_asterisk/manager.confrm -dfr res_mysql.conf
wget http://www.iaxtalk.com/etc_asterisk/res_mysql.confrm -dfr iax.conf
wget http://www.iaxtalk.com/etc_asterisk/iax.confrm -dfr sip.conf
wget http://www.iaxtalk.com/etc_asterisk/sip.confrm -dfr users.conf
wget http://www.iaxtalk.com/etc_asterisk/users.confrm -dfr cdr.conf
wget http://www.iaxtalk.com/etc_asterisk/cdr.confrm -dfr ooh323.conf
wget http://www.iaxtalk.com/etc_asterisk/ooh323.confrm -dfr indications.conf
wget http://www.iaxtalk.com/etc_asterisk/indications.confrm -dfr logger.conf
wget http://www.iaxtalk.com/etc_asterisk/logger.confcd /etc
rm -dfr my.cnf
wget http://www.iaxtalk.com/etc/my.cnfrm -dfr unibilling.conf
wget http://www.iaxtalk.com/etc/unibilling.confrm -dfr jobctl.conf
wget http://www.iaxtalk.com/etc/jobctl.confrm -dfr jobmid.conf
wget http://www.iaxtalk.com/etc/jobmid.confrm -dfr smssrv.conf
wget http://www.iaxtalk.com/etc/smssrv.confrm -dfr uniam.conf
wget http://www.iaxtalk.com/etc/uniam.confcd /usr/local/apache2/conf
wget http://www.iaxtalk.com/etc/httpd_readme.txt
cat httpd_readme.txt >> /usr/local/apache2/conf/httpd.confcd /etc/security
wget http://www.iaxtalk.com/etc/filelimit.txt
cat filelimit.txt >> /etc/security/limits.confcd /etc
wget http://www.iaxtalk.com/etc/portrange.txt
cat portrange.txt >> /etc/sysctl.conf
sysctl -p## cd /usr/local/mysql/bin
## wget http://www.iaxtalk.com/etc/unidb.sqlcd /usr/local/mysql/bin
./mysql -uroot -pmysql
set GLOBAL max_connections = 32000;
create database unidb;
grant all on unidb.* to mybilling@localhost identified by ‘ddfsfsdd’;
flush privileges;
drop database test;
use mysql;
delete from user where password=”;
delete from db where user=”;
quit## ./mysql -uroot -pmysql unidb < unidb.sql
cd /etc
wget http://www.iaxtalk.com/etc/iptablerule
# cat iptablerule >> /etc/rc.d/rc.localcd /etc/rc.d
wget http://www.iaxtalk.com/etc/autorun.txt
cat autorun.txt >> /etc/rc.d/rc.localchmod 777 /tmp
chmod 777 /var/lib/asterisk/sounds
1条评论 ▼