我的网上记事本
« »
2010年01月28日UniBilling

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.conf

rm -dfr extensions.conf
wget http://www.iaxtalk.com/etc_asterisk/extensions.conf

rm -dfr modules.conf
wget http://www.iaxtalk.com/etc_asterisk/modules.conf

rm -dfr extconfig.conf
wget http://www.iaxtalk.com/etc_asterisk/extconfig.conf

rm -dfr manager.conf
wget http://www.iaxtalk.com/etc_asterisk/manager.conf

rm -dfr res_mysql.conf
wget http://www.iaxtalk.com/etc_asterisk/res_mysql.conf

rm -dfr iax.conf
wget http://www.iaxtalk.com/etc_asterisk/iax.conf

rm -dfr sip.conf
wget http://www.iaxtalk.com/etc_asterisk/sip.conf

rm -dfr users.conf
wget http://www.iaxtalk.com/etc_asterisk/users.conf

rm -dfr cdr.conf
wget http://www.iaxtalk.com/etc_asterisk/cdr.conf

rm -dfr ooh323.conf
wget http://www.iaxtalk.com/etc_asterisk/ooh323.conf

rm -dfr indications.conf
wget http://www.iaxtalk.com/etc_asterisk/indications.conf

rm -dfr logger.conf
wget http://www.iaxtalk.com/etc_asterisk/logger.conf

cd /etc

rm -dfr my.cnf
wget http://www.iaxtalk.com/etc/my.cnf

rm -dfr unibilling.conf
wget http://www.iaxtalk.com/etc/unibilling.conf

rm -dfr jobctl.conf
wget http://www.iaxtalk.com/etc/jobctl.conf

rm -dfr jobmid.conf
wget http://www.iaxtalk.com/etc/jobmid.conf

rm -dfr smssrv.conf
wget http://www.iaxtalk.com/etc/smssrv.conf

rm -dfr uniam.conf
wget http://www.iaxtalk.com/etc/uniam.conf

cd /usr/local/apache2/conf
wget http://www.iaxtalk.com/etc/httpd_readme.txt
cat httpd_readme.txt >> /usr/local/apache2/conf/httpd.conf

cd /etc/security
wget http://www.iaxtalk.com/etc/filelimit.txt
cat filelimit.txt >> /etc/security/limits.conf

cd /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.sql

cd /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.local

cd /etc/rc.d
wget http://www.iaxtalk.com/etc/autorun.txt
cat autorun.txt >> /etc/rc.d/rc.local

chmod 777 /tmp
chmod 777 /var/lib/asterisk/sounds

日志信息 »

该日志于2010-01-28 10:24由 admin 发表在UniBilling分类下, 你可以发表评论。除了可以将这个日志以保留源地址及作者的情况下引用到你的网站或博客,还可以通过RSS 2.0订阅这个日志的所有评论。

1条评论

发表评论 »

返回顶部