上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 38 下一页
摘要: 1、查看物理cpu个数grep 'physical id' /proc/cpuinfo | sort -u | wc -l2、查看核心数量grep 'core id' /proc/cpuinfo | sort -u | wc -l3、查看目录大小du -hs /usr/local/openresty... 阅读全文
posted @ 2014-11-14 08:55 缤纷世界 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1、下载drizzle模块wget http://openresty.org/download/drizzle7-2011.07.21.tar.gz2、安装drizzle模块tar zxvf drizzle7-2011.07.21.tar.gzcd drizzle7-2011.07.21./conf... 阅读全文
posted @ 2014-11-01 15:21 缤纷世界 阅读(1075) 评论(0) 推荐(0) 编辑
摘要: 使用 Lua module 来进行 Lua 代码的复用是推荐的做法。然后在用户代码中直接用require()来调用module代码:local myTest = {}function myTest:getid() local str = "123" return strendreturn m... 阅读全文
posted @ 2014-11-01 13:35 缤纷世界 阅读(519) 评论(0) 推荐(0) 编辑
摘要: 如果没有安装iptables可以直接用yum安装yum install -t iptables检查iptables服务的状态,service iptables status如果出现“iptables: Firewall is not running”,说明没有启动或没有规则启动iptables服务s... 阅读全文
posted @ 2014-10-30 08:17 缤纷世界 阅读(19004) 评论(1) 推荐(0) 编辑
摘要: 1、安装apr下载:http://apache.dataguru.cn//apr/apr-1.5.1.tar.gztar zxvf apr-1.5.1.tar.gzcd apr-1.5.1vi configure 找到$RM “$cfgfile”这行删掉./configure --prefix=/u... 阅读全文
posted @ 2014-10-10 11:26 缤纷世界 阅读(1357) 评论(0) 推荐(1) 编辑
摘要: 创建备份文件存放的目录mkdir /usr/local/dbbak脚本:vi /usr/local/mysqlback.sh# /bin/bashDB_NAME="dsideal_db"DB_USER="root"DB_PASS="123456"BACK_DIR="/usr/local/dbbak"... 阅读全文
posted @ 2014-10-07 10:25 缤纷世界 阅读(458) 评论(0) 推荐(0) 编辑
摘要: source mysql{ type = mysql sql_host = 10.10.3.181 sql_user = root sql_pass = dsideal sql_db = ... 阅读全文
posted @ 2014-09-10 11:46 缤纷世界 阅读(2562) 评论(0) 推荐(0) 编辑
摘要: 安装Redis(主从两个装在同一服务器上)参考地址:http://www.cnblogs.com/kgdxpr/p/3550633.html主安装在“/usr/local/redis-Master/”从安装在“/usr/local/redis-Slave/”分别修改主从的配置文件的端口(port),... 阅读全文
posted @ 2014-09-03 17:37 缤纷世界 阅读(316) 评论(0) 推荐(0) 编辑
摘要: index rt{ type = rt rt_mem_limit = 512M path = /usr/local/sphinx/data/rt rt_field = title rt_field = content ... 阅读全文
posted @ 2014-09-01 15:00 缤纷世界 阅读(4268) 评论(0) 推荐(0) 编辑
摘要: 1、安装依赖包yum -y install wget gcc gcc-c++ -y2、安装libunwind库可以从http://ftp.twaren.net/Unix/NonGNU//libunwind/下载wget http://ftp.twaren.net/Unix/NonGNU//libun... 阅读全文
posted @ 2014-08-25 09:41 缤纷世界 阅读(773) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 38 下一页