分类目录

Howto: usage of tools

yum下载不按照RPM包

Refer to: http://297020555.blog.51cto.com/1396304/477757

1. 首先安装yum-downloadonly yum install yum-downloadonly

2. 只下载不安装 yum update httpd -y –downloadonly

3. 只下载到指定目录,但不安装 yum update httpd -y –downloadonly –downloaddir=/opt

Howto: Voip Performance test – SIPp

Homepage: http://sipp.sourceforge.net/

测试软件 SIPp v3.2-TLS-PCAP, version unknown, built Feb 17 2011, 10:19:21.

安装编译: 下载源代码后重新编译 # wget http://sourceforge.net/projects/sipp/files/sipp/3.2/sipp.svn.tar.gz/download?use_mirror=ncu # tar zxvf sipp.svn.tar.gz # cd sipp.svn # make pcapplay_ossl

备注:测试RTP需要pcap包,测试认证需要OpenSSL包,e.g. * C++ Compiler * curses or ncurses library * For authentication and TLS support: OpenSSL >= 0.9.8 * For pcap play support: libpcap and libnet * For [...]

Howto: MySQL Master Slave Configuration

Mysql Master-Slave configuration 网络环境

主服务器:server1, 192.168.2.231

备份服务器:server2, 192.168.1.78

配置主备数据库 创建同步用户

在主数据库上创建同步用户,以便该帐号可以访问主数据库。

e.g.

mysql> GRANT REPLICATION SLAVE ON *.* TO ‘repl’@’192.168.1.78′ IDENTIFIED BY ’123456′;

验证方法,可以登录到备份服务器使用下面的命令访问主服务器,如果可以访问说明配置正确:

# mysql –u repl –p –h 192.168.2.231

修改数据库配置文件

注意:所有服务器的server-id不能相同!!!

1. 修改主配置文件

# vi /etc/my.cnf

[mysqld]

log-bin=mysql-bin

server-id=1   # 1 – 2^32-1

2. 修改备配置文件

# vi /etc/my.cnf

[mysqld]

server-id=101      # 1 – [...]