2014년 11월 8일 토요일

김포의 5일장

김포장 : 2일·7일
마송장 : 3일·8일
양곡장 : 1일·6일
하성장 : 4일·9일

kamailio config for the 64 bit

kamailio version : 4.2.0
os version : CentOS 6.5 64bit ( 2.6.32-431.el6.x86_64 )

vi /usr/local/etc/kamailio/kamailio.cfg

# set paths to location of modules (to sources or installation folders)
#!ifdef WITH_SRCPATH
mpath="modules_k:modules"
#!else
mpath="/usr/local/lib64/kamailio/modules_k/:/usr/local/lib64/kamailio/modules/"
#!endif

2014년 11월 7일 금요일

export and import for the mysql

mysqldump -u root -ppassword igen > /home/20141107_db_backup.sql
mysql -u root -ppassword igen < /home/20141107_db_backup.sql

## for remote
mysqldump -h192.168.0.100 -u root -ppassword igen > /home/20141107_db_backup.sql
mysql -h192.168.0.100 -u root -ppassword igen < /home/20141107_db_backup.sql

port permit access by the iptables

iptables -I INPUT 1 -p tcp --dport 3306 -j ACCEPT
iptables -I OUTPUT 1 -p tcp --dport 3306 -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart
iptables -L -v

2014년 11월 6일 목요일

plantronics fw update site

http://www.plantronics.com/us/support/myheadset/updater/

basic config with CentOS7

[ network ]
ip addr show

vi /etc/sysconfig/network-scripts/ifcfg-enp5s0

ONBOOT=yes

shutdown -r now

yum install net-tools

ifconfig


[ mysql ]
yum install wget
cd /home
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install mysql-server

yum list \*mysql\* | grep dev
yum install mysql-community-devel.x86_64

mysql -u root
mysql> use mysql;
mysql> update user set password=PASSWORD("delphi1240") where user='root';
mysql> flush privileges;
mysql> quit

mysql_secure_installation



2014년 10월 16일 목요일

asterisk stress test by sipp with hp380

일단, 핵심은 시험하는 BOX 의 File Descriptor 제한을 풀어주는 것이다

[ limits.conf add ]
vi /etc/init.d/asterisk
start() {
        ulimit -n 20000
        # Check if Asterisk is already running.  If it is, then bug out, because

[ limits.conf add ]
vi /etc/security/limits.conf
root             soft   nofile          20000
root             hard   nofile          25000

[ sip.conf in asterisk ]
[sipp]
type=friend
context=test11
host=dynamic
port=5060
user=sipp
canreinvite=no
disallow=all
allow=ulaw

[ extensions.ael in asterisk ]
context test11
{
        s => {
                Answer();
                while (1) {
                        Background(demo-instruct);
                }
                Hangup();
        }
        _X. => {
                Answer();
                while (1) {
                        Background(demo-instruct);
                }
                Hangup();
        }
}

[ sipp command ]
./sipp -sn uac asteriskipaddr -s 12 -d 1000000 -l 5000

[ etc ]
dmidecode -t 4

[ sipp install ]
tar -zxvf sipp-3.3.tar.gz
cd sipp-3.3
make

[ asterisk installl ]
yum install –y gcc
yum install –y ncurses-devel
yum install –y libtermcap-devel
yum install –y ernel kernel-devel kernel-headers
yum install –y kernel-smp-devel
yum install –y gcc-c++
yum install –y openssl-devel
yum install –y zlib-devel

yum install –y unixODBC-devel
yum install –y libtool
yum install –y libxml2-devel
yum install sqlite-devel
yum install –y make

./configure ( only 32bit )
./configure --libdir=/usr/lib64  ( only 64bit )
make
make install

make config
chkconfig asterisk on