<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[My  life]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/hellyhe</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; hellyhe]]></copyright><item><title><![CDATA[Puppet自动化Nginx+Mongrel负载均衡配置]]></title><link>https://blog.csdn.net/hellyhe/article/details/8312725</link><guid>https://blog.csdn.net/hellyhe/article/details/8312725</guid><author>hellyhe</author><pubDate>Tue, 18 Dec 2012 09:48:12 +0800</pubDate><description><![CDATA[前言 * 随着公司应用需求的增加，需要不断的扩展，服务器数量也随之增加，当服务器数量不断增加，我们会发现一台puppetmaster压力大，解析缓慢，那这时有什么优化的办法吗？答案是有滴！Puppet官网上有类似的解决方案，puppetmaster可以配置多端口，结合WEB代理，这样puppetmaster承受能力至少可以提升10倍以上。



一、硬件环境:
服务器系统：CentOS6]]></description><category></category></item><item><title><![CDATA[解析nginx负载均衡]]></title><link>https://blog.csdn.net/hellyhe/article/details/8306913</link><guid>https://blog.csdn.net/hellyhe/article/details/8306913</guid><author>hellyhe</author><pubDate>Tue, 18 Dec 2012 09:35:42 +0800</pubDate><description><![CDATA[摘要：对于一个大型网站来说，负载均衡是永恒的话题。随着硬件技术的迅猛发展，越来越多的负载均衡硬件设备涌现出来，如F5 BIG-IP、Citrix NetScaler、Radware等等，虽然可以解决问题，但其高昂的价格却往往令人望而却步，因此负载均衡软件仍然是大部分公司的不二之选。nginx作为webserver的后起之秀，其优秀的反向代理功能和灵活的负载均衡策略受到了业界广泛的关注。本文将以工业]]></description><category></category></item><item><title><![CDATA[FreeBSD 添加新硬盘]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309905</link><guid>https://blog.csdn.net/hellyhe/article/details/8309905</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 23:25:46 +0800</pubDate><description><![CDATA[fdisk -B da1
disklabel -e da1s1

# disklabel -e ad1s1

/dev/da0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  1048576        0    4.2BSD        0     0     0]]></description><category></category></item><item><title><![CDATA[sysctl.conf文件里的参数解释]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309890</link><guid>https://blog.csdn.net/hellyhe/article/details/8309890</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 23:21:36 +0800</pubDate><description><![CDATA[整理中...

#共享内存和信号灯
kern.ipc.shmmax=134217728
kern.ipc.shmall=128000
kern.ipc.semmap=256


#不接受源路由信息包可以防止你的内部网络被探测
net.inet.ip.sourceroute=0
net.inet.ip.accept_sourceroute=0


#最大的等待连接完成的套接]]></description><category></category></item><item><title><![CDATA[postgreSQL 自动备份脚本]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309875</link><guid>https://blog.csdn.net/hellyhe/article/details/8309875</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 23:15:46 +0800</pubDate><description><![CDATA[#echo "start backup database: postgres"
#${backup_command} -Fc postgres > ${backup_folder}${DATE}/postgres.${DATETIME}.bak


echo "Start backup time: $(date '+%Y-%m-%d %H:%M:%S')"; 


for loop]]></description><category></category></item><item><title><![CDATA[10条最常用的命令]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309872</link><guid>https://blog.csdn.net/hellyhe/article/details/8309872</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 23:14:37 +0800</pubDate><description><![CDATA[1.按内存从大到小排列进程:  
ps -eo "%C : %p : %z : %a"|sort -k5 -nr


6.杀死Nginx进程(杀死某一进程)
ps -ef|grep -v grep |grep nginx|awk '{print $2}' 或
for i in `ps aux | grep nginx | grep -v grep | awk {'print $2'}`]]></description><category></category></item><item><title><![CDATA[使用 pgfouine 分析 postgresql的log]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309860</link><guid>https://blog.csdn.net/hellyhe/article/details/8309860</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 23:09:47 +0800</pubDate><description><![CDATA[使用 pgfouine 分析 postgresql的log文件
通过记录和分析postgrsql的log文件，可以比较容易的找出哪些SQL的执行时间长。但是手工分析会很累，而且不准确。不过有了pgfouine的帮助，事情就简单多了。

注意，在使用pgfouine之前，要适当修改postgresql.conf的相关配置，主要是以下几项：


log_min_duration_state]]></description><category></category></item><item><title><![CDATA[Legato On FreeBSD (Linux ON FreeBSD)]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309818</link><guid>https://blog.csdn.net/hellyhe/article/details/8309818</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 23:06:07 +0800</pubDate><description><![CDATA[FreeBSD系统为了能够使用一些只能在Linux系统上运行的软件，提供了一个虚拟的Linux环境，具体配置方法：
配置Linux内核

1、更新系统port安装包，需要连接FreeBSD的下载站点，下载50M的文件。
portsnap fetch && portsnap extract

2、安装Linux虚拟环境
kldload linux
echo compat.linux.]]></description><category></category></item><item><title><![CDATA[FreeBSD程序安装及管理]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309808</link><guid>https://blog.csdn.net/hellyhe/article/details/8309808</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 22:56:48 +0800</pubDate><description><![CDATA[pkg_replace
常用参数：
-P 使用二进制安装包升级，二进制包自动从 PACKAGEROOT 环境变量定义的存储服务器中获取
-f 强制更新程序包（当有其他程序依赖于该程序包时，需要使用该参数，否则无法更新）
-F 下载更新包，不安装更新


全部参数：
-a       Do with all the installed packages.
-b       Keep]]></description><category></category></item><item><title><![CDATA[FreeBSD 系统信息]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309792</link><guid>https://blog.csdn.net/hellyhe/article/details/8309792</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 22:53:21 +0800</pubDate><description><![CDATA[测试并查看硬盘信息
[root@changchundl /etc]# diskinfo -tv /dev/da0
/dev/da0
        512             # sectorsize
        159450660864    # mediasize in bytes (149G)
        311427072       # mediasize in s]]></description><category></category></item><item><title><![CDATA[Freebsd 修改分区]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309782</link><guid>https://blog.csdn.net/hellyhe/article/details/8309782</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 22:46:49 +0800</pubDate><description><![CDATA[disklabel -e /dev/ad0s1
实例
#        size   offset    fstype   [fsize bsize bps/cpg]
  a: 20971520        0    4.2BSD     2048 16384 28528
  b:  4194304 20971520      swap
  c: 311419962        0]]></description><category></category></item><item><title><![CDATA[制作FreeBSD系统定制安装ISO]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309766</link><guid>https://blog.csdn.net/hellyhe/article/details/8309766</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 22:43:01 +0800</pubDate><description><![CDATA[FreeBSD ISO的定制的想法起源于当时在安装完系统后，要做些重复的配置工作，浪费时间可经历。
于是就开始查找资料，发现国内几乎没有这方面的资料可查，最后还是从老外的一篇文章中知道了大概的过程！


FreeBSD系统的结构相对还是比较简单的，其目录文件基本上分为两类：
1、基本系统，安装在除 /usr/local 外的位置。
2、通过pkg_add 或 使用port树 make]]></description><category></category></item><item><title><![CDATA[mysql 数据库在修改数据库默认路径的问题]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309470</link><guid>https://blog.csdn.net/hellyhe/article/details/8309470</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 21:46:52 +0800</pubDate><description><![CDATA[mysql 修改数据库默认路径时出现服务无法启动，检查日志发现报文件权限的错误。
对于更改后的目录已经设置mysql为目录的owner啦呀！且命令行下直接启动数据库就一切正常。
祭出万能的Google ，最后在一篇老外的帖子中找到了原因——SELINUX 策略问题！


凡是后台服务都需要有对相应目录的对应权限，而 mysql 的默认路径/var/lib/mysql 已经添加了相应的策略]]></description><category></category></item><item><title><![CDATA[获取IP地址库(APNIC.NET)]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309402</link><guid>https://blog.csdn.net/hellyhe/article/details/8309402</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 21:09:10 +0800</pubDate><description><![CDATA[因国内不同电信运营商网络之间的联通问题，导致互访的网络质量非常差，如果电信的用户访问网通的服务器将导致较差的用户体验，所以判断用户的IP地址所在网络情况就非常重要啦，Linux系统下whois3就是一款查询IP地址注册信息的软件，通过该软件可以查询各大运营商的IP地址分布情况。
下面只是介绍了该工具的使用，由于申请资料填写人员的不负责的态度，导致IP地址库中部分信息错误百出，想要从结果中整理一份]]></description><category></category></item><item><title><![CDATA[安全工具]]></title><link>https://blog.csdn.net/hellyhe/article/details/8309386</link><guid>https://blog.csdn.net/hellyhe/article/details/8309386</guid><author>hellyhe</author><pubDate>Mon, 17 Dec 2012 20:51:52 +0800</pubDate><description><![CDATA[网络安全扫描工具Nessus
http://server.chinabyte.com/448/2622948.shtml

Nmap
能够在类UNIX系统及Windows系统的终端下以命令方式运行，
它的命令执行格式为：nmap [Scan Type(s)] [Options]。
我们可以从http://insecure.org/网站上下载到它的最新版本，

Nikto
Nikt]]></description><category></category></item><item><title><![CDATA[shinken 监控报警系统配置]]></title><link>https://blog.csdn.net/hellyhe/article/details/8288780</link><guid>https://blog.csdn.net/hellyhe/article/details/8288780</guid><author>hellyhe</author><pubDate>Thu, 13 Dec 2012 00:23:49 +0800</pubDate><description><![CDATA[Shinken系统是一个nagios like 系统，作者使用python重新设计/编写的兼容nagios的，可以直接使用nagios-plugins，

官方网站上提供了大量的插件可供下载  http://www.shinken-monitoring.org/download/


由于是重新设计、编写的系统，其在架构和配置的便利性上要优于nagios，目录结构非常清晰。

系统安]]></description><category></category></item><item><title><![CDATA[MySQL 的备份方法]]></title><link>https://blog.csdn.net/hellyhe/article/details/8288723</link><guid>https://blog.csdn.net/hellyhe/article/details/8288723</guid><author>hellyhe</author><pubDate>Wed, 12 Dec 2012 23:52:43 +0800</pubDate><description><![CDATA[逻辑备份

        通过一些普通的SQL SELECT查询语句的集合，通过表扫描创建逻辑备份。

    优缺点：速度慢，可在线备份。




物理备份

        通过对原始二进制数据的复制获得的备份。

    优缺点：速度快，但必须离线备份（数据库系统必须关闭）。




备份实用程序和操作系统及方案

​


1、InnoDB H]]></description><category></category></item><item><title><![CDATA[MySQL性能、监控与灾难恢复]]></title><link>https://blog.csdn.net/hellyhe/article/details/8288696</link><guid>https://blog.csdn.net/hellyhe/article/details/8288696</guid><author>hellyhe</author><pubDate>Wed, 12 Dec 2012 23:44:35 +0800</pubDate><description><![CDATA[监控方案：

    up.time    http://www.uptimesoftware.com/    收费

    Cacti        http://www.cacti.net/

    KDE System Guard(KSysGuard) 

                    http://docs.kde.org/stable/en/kdebase-]]></description><category></category></item><item><title><![CDATA[MySQL 系统调优及问题查找]]></title><link>https://blog.csdn.net/hellyhe/article/details/8288682</link><guid>https://blog.csdn.net/hellyhe/article/details/8288682</guid><author>hellyhe</author><pubDate>Wed, 12 Dec 2012 23:37:41 +0800</pubDate><description><![CDATA[性能优化相关状态参数
    SHOW STATUS LIKE 'value';
    connections      连接数
    uptime              启动时间
    show_queries    慢查询次数
    com_select        查询操作次数
    com_insert        插入操作次数
    com_update]]></description><category></category></item><item><title><![CDATA[nginx 防垃圾流量的perl清洗脚本]]></title><link>https://blog.csdn.net/hellyhe/article/details/8288606</link><guid>https://blog.csdn.net/hellyhe/article/details/8288606</guid><author>hellyhe</author><pubDate>Wed, 12 Dec 2012 23:24:18 +0800</pubDate><description><![CDATA[最近公司的网站经常遭受到不怀好意的网站联盟的无用的大量的垃圾流量的骚扰，既造成了流量的浪费，还影响到正常用户的访问（严重时还会导致apache进程的崩贵）。
首先分析日志，总结出垃圾流量的特征，在apache前端增加nginx代理，利用nginx来完成流量的清理，只有正常的流量才交给后端的apache来处理。


1、根据nginx的访问日志，根据匹配规则查出来源域名，按照来源域名的在一定]]></description><category></category></item></channel></rss>