10 2013 档案

摘要:Nginxis an open-source Web Server. It is a high-performance HTTP server that uses very low server resources, is reliable and integrates beautifully w... 阅读全文
posted @ 2013-10-24 18:37 rorshach 阅读(194) 评论(0) 推荐(0) 编辑
摘要:一、一般来说nginx配置文件中对优化比较有作用的为以下几项:1. worker_processes 8;nginx 进程数,建议按照cpu 数目来指定,一般为它的倍数 (如,2个四核的cpu计为8)。2. worker_cpu_affinity 00000001 0000001000000100... 阅读全文
posted @ 2013-10-24 18:26 rorshach 阅读(282) 评论(0) 推荐(0) 编辑
摘要:安装脚本分析工具wget http://www.day32.com/MySQL/tuning-primer.shchmod +x tuning-primer.sh./tuning-primer.sh和mysqlreport一样,tuning-primer.sh也支持.my.cnf 阅读全文
posted @ 2013-10-24 01:10 rorshach 阅读(108) 评论(0) 推荐(0) 编辑
摘要:1.防火墙开启service iptables start2.防火墙关闭service iptables stop3.防火墙规则保存service iptables save4.防火墙状态service iptables status5.防火墙规查看iptables -L -n6.防火墙规则清除ip 阅读全文
posted @ 2013-10-20 12:21 rorshach 阅读(223) 评论(0) 推荐(0) 编辑
摘要:一.不停止mysql的情况下安装SphinxSE1.确定mysql版本,下载对应源码包此处下载5.1.69的mysql源码包#wget ftp://ftp.ntu.edu.tw/pub/MySQL/Downloads/MySQL-5.1/mysql-5.1.69.tar.gz解压2.下载sphin... 阅读全文
posted @ 2013-10-18 18:57 rorshach 阅读(240) 评论(0) 推荐(0) 编辑
摘要:一.Server端 CentOS 6下安装yum -y install xinetd1.配置:vi /etc/xinetd.d/rsyncservice rsync{ disable = yes socket_type = stream wait = no user = root server = 阅读全文
posted @ 2013-10-16 01:31 rorshach 阅读(186) 评论(0) 推荐(0) 编辑
摘要:一.nfs服务端 1.CentOS6安装nfs-utils和rpcbind两个软件包 2.编辑/etc/exports加入: 将/nfsdir目录共享给192.168.1.107这台服务器服务器,可进行读写操作,并且写操作采用同步方式.NFS主要有3类选项:访问权限选项 设置输出目录只读:ro 设置 阅读全文
posted @ 2013-10-14 23:36 rorshach 阅读(197) 评论(0) 推荐(0) 编辑
摘要:http段配置:#cache configclient_body_buffer_size 512k;proxy_connect_timeout 5;proxy_read_timeout 60;proxy_buffer_size 16k;proxy_buffers 4 64k;proxy_busy_... 阅读全文
posted @ 2013-10-14 08:34 rorshach 阅读(238) 评论(0) 推荐(0) 编辑
摘要:webbench最多可以模拟3万个并发连接去测试网站的负载能力wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gztar zxvf webbench-1.5.tar.gzcd webbench-1.5make && ma... 阅读全文
posted @ 2013-10-13 20:39 rorshach 阅读(141) 评论(0) 推荐(0) 编辑
摘要:fastcgi响应http请求的结果中,响应头包括Expires、Cache-Control、Set-Cookie三个,都会可能不被cache.thinkphp3.0禁止session自动启动config.php中配置'SESSION_AUTO_START' => FALSE,更详细的论述在:h... 阅读全文
posted @ 2013-10-13 12:19 rorshach 阅读(187) 评论(0) 推荐(0) 编辑
摘要:nginx的proxy_cache是缓存后端内容,而fastcgi_cache则是缓存Nginx+php的fastcgi,即缓存php动态内容.fastcgi_cache默认已包含在nginx0.7.48及以后的版本中了.配置:http段中配置fastcgi_cache_path /home/ca... 阅读全文
posted @ 2013-10-13 12:00 rorshach 阅读(174) 评论(0) 推荐(0) 编辑
摘要:一、介绍Nginx是俄罗斯人编写的十分轻量级的HTTP服务器,Nginx,它的发音为“engine X”, 是一个高性能的HTTP和反向代理服务器,同时也是一个IMAP/POP3/SMTP 代理服务器.二、Location语法语法:location [=|~|~*|^~] /uri/ { … }注... 阅读全文
posted @ 2013-10-13 10:39 rorshach 阅读(286) 评论(0) 推荐(0) 编辑
摘要:location匹配的原型是这样的:location[=|~|~*|^~|@] /uri/ { … }“=”是精确匹配“@”是命名的location,在正常的location匹配中不会使用,仅仅在内部跳转中才会使用到。“~”是区分大小写的匹配“~*”是不区分大小写的匹配“^~”表示中止正则匹配(这... 阅读全文
posted @ 2013-10-13 10:22 rorshach 阅读(166) 评论(0) 推荐(0) 编辑
摘要:Amoeba安装及读写分离配置一.amoeba简介官网:http://docs.hexnova.com/amoeba/index.html二.Centos下安装jdk1.yum 安装1.6版本jdk2.设置系统变量#vi /etc/profile在最末端增加以下内容export JAVA_HOME... 阅读全文
posted @ 2013-10-05 21:26 rorshach 阅读(380) 评论(0) 推荐(0) 编辑
摘要:一.基本规划负载均衡调度器 192.168.1.104 默认网关 192.168.1.1 ip别名 192.168.1.233realserver1 192.168.1.102 默认网关 192.168.1.1 ip别名 192.168.1.233realserver2 192.168.1.105... 阅读全文
posted @ 2013-10-04 20:23 rorshach 阅读(227) 评论(0) 推荐(0) 编辑
摘要:一.基本规划VIP:192.168.1.11Master:192.168.1.105Backup:192.168.1.102二.安装主备分别安装keepalivedyum -y install keepalived三.Master配置#vi /etc/keepalived/keepalived.co 阅读全文
posted @ 2013-10-04 10:51 rorshach 阅读(280) 评论(0) 推荐(0) 编辑
摘要:1.yum安装wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmrpm -ivh epel-release-6-8.noarch.rpmyum install -y haproxy2.配置文件... 阅读全文
posted @ 2013-10-03 16:23 rorshach 阅读(186) 评论(0) 推荐(0) 编辑
摘要:LVS的优点:1、抗负载能力强、工作在第4层仅作分发之用,没有流量的产生,这个特点也决定了它在负载均衡软件里的性能最强的;无流量,同时保证了均衡器IO的性能不会受到大流量的影响;2、工作稳定,自身有完整的双机热备方案,如LVS+Keepalived和LVS+Heartbeat;3、应用范围比较广,... 阅读全文
posted @ 2013-10-03 10:07 rorshach 阅读(221) 评论(0) 推荐(0) 编辑
摘要:一.Centos下安装Redis1.wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm2.rpm -ivh epel-release-6-8.noarch.rpm 3.yum install r 阅读全文
posted @ 2013-10-02 01:55 rorshach 阅读(245) 评论(0) 推荐(0) 编辑
摘要:TCMalloc(Thread-Caching Malloc)是google-perftools工具中的一个,与标准的glibc库的malloc相比,TCMalloc在内存的分配上效率和速度要高得多,可以提高Mysql服务器在高并发情况下的性能,降低系统负载.该项目地址为:https://code... 阅读全文
posted @ 2013-10-01 16:55 rorshach 阅读(474) 评论(0) 推荐(0) 编辑