sipp注册话机测试 注册的CSV脚本格式为SEQUENTIAL3001;sip.XXX.com;[authentication username=3001 password=3001]第一行SEQUENTIAL表示顺序读取第二行中每一项使用";"分割,分割的每一项被用于xml文件中的field字段,fi
erlang中gen_server/gen_fsm使用hibernate 简单的理解: hibernate可以使你闲置的erlang进程马上进行gc,因为进程处于receive状态下是不会gc的 我在性能调优时发现,gc对于消息发送速度的影响还是非常大的 关于erlang gc问题也可以参看这个 引用Recently, as part of RabbitMQ server development, we ran into an i
拉链表 拉链表:记录历史数据,可以记录一条数据的变化历史可以使用三个字段来确定:第一个字段表明这条记录是历史还是过去第二个和第三个分别是这条记录的开始和结束的时间 是否使用 开始时间 结束时间 NO 2015-7-1 09:00:00 2015-7-24 18:00
删除软链接目录文件 删除软链接文件1.如果链接的目标文件是文件,直接使用rm 删除2.如果链接的目标文件是目录, 经常出现的错误是 rm后,使用tab补全,会自动补齐为目录如 A 链接到 目录B会这样 rm A/这种时候会报错删除不掉,即使使用rm -rf A/也不行解决办法:将目录符/ 删除 直接使用rm A即可
安装使用percona版本mysql 下载percona镜像安装yum install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm安装后,会在/etc/yum.repo.d中增加了percona-release.repo 安装yum install Percona-Serve
centos上安装updatedb 一 安装linux中locate查找命名依赖updatedb的协助,安装updatedb命令需要使用mlocate包yum install mlocatemac上默认会有mdfind命令来替代locate命令二定时执行在/etc/crontab中增加50 6 * * * updatedb
lsof lsof命令可以查看端口及文件的使用情况lsof --- list open filesnetstat -tunlpActive Internet connections (only servers)Proto Recv-Q Send-Q Local Address Foreign Address State
创建rpm包 一 准备工作 要制作的linux系统中(centos6.5为例),需要保证有rpmbuild rpmdevtools两个开发工具 yum install rpm-build yum install rpmdevtools 安装完rpmdevtools后,会创建一些工具,比如 rpmdev-setuptree Create RPM build tree
linux下清空文件的方法 linux下经常会用到将日志清空的方法1.使用echo命令 echo > test.log 2.使用true true > test.log 3.使用/dev/null cat /dev/null > test.log
配置php服务 在apache配置后,不能解析php文件/var/www/html/index.phpphpinfo();?>使用浏览器查看访问的页面显示就是phpinfo();就是说没有解析成功phpapache配置增加php的解析AddType application/x-httpd-php .phpLoadModule php5_module mo
linux logrotate Linux下处理日志,可以使用logrotate对应的配置文件在/etc/anacrontab看一下配置文件情况: 1 # /etc/anacrontab: configuration file for anacron 2 3 # See anacron(8) and anacrontab(5) for details. 4 5 SHELL=/bin/sh
RabbitMQ默认端口 4369 (epmd), 25672 (Erlang distribution)5672, 5671 (AMQP 0-9-1 without and with TLS)15672 (if management plugin is enabled)61613, 61614 (if STOMP is enabled)1883, 8883 (if MQTT is enabled)
linux中nslookup查询ns [root@mcc-rabmq01 sankuai]# nslookup 192.168.181.113Server: 192.168.6.2Address: 192.168.6.2#53113.181.168.192.in-addr.arpaname = dev-mysql01.wj.sankuai.info.[root@mcc-rabmq01 sanku