<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[firefoxbug的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/firefoxbug</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; firefoxbug]]></copyright><item><title><![CDATA[zookeeper应用场景之配置文件同步]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/24425707</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/24425707</guid><author>firefoxbug</author><pubDate>Thu, 24 Apr 2014 17:26:41 +0800</pubDate><description><![CDATA[http://www.firefoxbug.net/?p=2628]]></description><category></category></item><item><title><![CDATA[zookeeper应用场景之Master竞选]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/24391227</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/24391227</guid><author>firefoxbug</author><pubDate>Thu, 24 Apr 2014 09:08:32 +0800</pubDate><description><![CDATA[http://www.firefoxbug.net/?p=2590]]></description><category></category></item><item><title><![CDATA[zookeeper中Watcher和Notifications]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/24391125</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/24391125</guid><author>firefoxbug</author><pubDate>Thu, 24 Apr 2014 09:07:17 +0800</pubDate><description><![CDATA[zookeeper中Watcher和Notifications]]></description><category></category></item><item><title><![CDATA[zookeeper基本原理]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/24344503</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/24344503</guid><author>firefoxbug</author><pubDate>Wed, 23 Apr 2014 09:00:14 +0800</pubDate><description><![CDATA[http://www.firefoxbug.net/?p=2556]]></description><category></category></item><item><title><![CDATA[zookeeper python库]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/24344437</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/24344437</guid><author>firefoxbug</author><pubDate>Wed, 23 Apr 2014 08:59:22 +0800</pubDate><description><![CDATA[http://www.firefoxbug.net/?p=2568]]></description><category></category></item><item><title><![CDATA[zookeeper集群安装配置]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/24344377</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/24344377</guid><author>firefoxbug</author><pubDate>Wed, 23 Apr 2014 08:57:54 +0800</pubDate><description><![CDATA[http://www.firefoxbug.net/?p=2565]]></description><category></category></item><item><title><![CDATA[zookeeper应用场景]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/24344333</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/24344333</guid><author>firefoxbug</author><pubDate>Wed, 23 Apr 2014 08:57:17 +0800</pubDate><description><![CDATA[http://www.firefoxbug.net/?p=2543]]></description><category></category></item><item><title><![CDATA[博客已经搬家]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/20068017</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/20068017</guid><author>firefoxbug</author><pubDate>Thu, 27 Feb 2014 20:05:15 +0800</pubDate><description><![CDATA[csdn的已经不更新了
新博客链接 www.firefoxbug.net
wanghuafire@gmail.com 欢迎交流]]></description><category></category></item><item><title><![CDATA[OpenCDN2.0安装]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/10023473</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/10023473</guid><author>firefoxbug</author><pubDate>Sat, 17 Aug 2013 13:44:45 +0800</pubDate><description><![CDATA[部署说明


为网站加速，建立私有的CDN节点群，每部署一个CDN节点只需5分钟，无节点数量上限！参考 http://ocdn.me/

安装需求

OpenCDN的Beta版目前在CentOS5.x - CentOS6.x 下测试通过。内存大小：不低于512M内存。安装前确保主机的80端口不被占用。

注意事项：


OpenCDN2.0版目前提供了CDN集中管控中心，无]]></description><category></category></item><item><title><![CDATA[Linux下I/O模型介绍]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/9884315</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/9884315</guid><author>firefoxbug</author><pubDate>Sat, 10 Aug 2013 20:42:38 +0800</pubDate><description><![CDATA[阻塞I/O

阻塞 I/O 模型是最原始的模型，进程一旦执行某个函数调用，进程就进入休眠状态（Sleeping）。比如平时FIFO管道的 read，还有基于TCP的流socket的 read 调用，进程一旦进行系统函数的调用，会从用户态切入内核态，内核会进行系统调用 read ，这时候如果对应的流（管道，socket都算）还没准备写入数据，那么 read 函数就会阻塞，从而导致进程挂起。直到数]]></description><category></category></item><item><title><![CDATA[shell 字符串操作]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/9057303</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/9057303</guid><author>firefoxbug</author><pubDate>Sat, 08 Jun 2013 16:18:40 +0800</pubDate><description><![CDATA[string="abcABC123ABCabc"
字符串长度:
echo ${#string} #15
echo `expr length $string` #15


索引
用法：expr index $string $substring
expr index $string "ABC" #4


提取子串
用法：${string:position}
echo ${st]]></description><category></category></item><item><title><![CDATA[CentOS Python2.4升级到Python2.7]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/8688735</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/8688735</guid><author>firefoxbug</author><pubDate>Mon, 18 Mar 2013 20:02:34 +0800</pubDate><description><![CDATA[本来python是2.4的，好像不支持requests模块．我就升级到python2.7，结果yum又不能用了．下面是完整的解决方案．



Python升级
# yum install gcc gcc-c++.x86_64 compat-gcc-34-c++.x86_64 openssl-devel.x86_64 zlib*.x86_64
# wget http://www.pyth]]></description><category></category></item><item><title><![CDATA[git+github使用]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/8645522</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/8645522</guid><author>firefoxbug</author><pubDate>Thu, 07 Mar 2013 10:53:53 +0800</pubDate><description><![CDATA[1.在github上新建一个Repository，基本信息完成后记下git@github.com:xxx/xxx.git.
2.本地配置
用户名和邮件配置默认会在 ~/.gitconfig 

  #git config --global user.name "username"
  #git config --global user.email wanghuafire@gmail.co]]></description><category></category></item><item><title><![CDATA[Nginx Purge清除缓存配置]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/8645331</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/8645331</guid><author>firefoxbug</author><pubDate>Thu, 07 Mar 2013 10:21:47 +0800</pubDate><description><![CDATA[在编译安装Nginx的时候加上了Purge模块，来清除缓存．

www.firefoxbug.net/index.html ==>> www.firefoxbug.net/purge/index.html就能清除．

但是之前配置过程中出现了404,但是缓存明明是存在的，就是Purge不了．后来更改Purge的配置就ＯＫ了
## Cache_proxy Purge
location ~]]></description><category></category></item><item><title><![CDATA[SaltStack安装]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/8605049</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/8605049</guid><author>firefoxbug</author><pubDate>Sat, 23 Feb 2013 12:44:53 +0800</pubDate><description><![CDATA[之前尝试了下puppet，感觉还是比较重，比较繁琐。早上试了下SaltStack，python写的就是兼容性好，安

装起来也方便，试用了一些，还是挺方便的，就是不知道承载能力怎么样。下面是安装教程

salt-master安装

[salt-master]# yum install salt-master

master端的配置文件是在 /etc/salt/master

对]]></description><category></category></item><item><title><![CDATA[phpmyadmin error #2002 cannot login to the mysql server]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/8559195</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/8559195</guid><author>firefoxbug</author><pubDate>Thu, 31 Jan 2013 13:04:18 +0800</pubDate><description><![CDATA[将 phpmyadmin 下的 config.inc.php


$cfg['Servers'][$i]['host'] = 'localhost'; 

改成
$cfg['Servers'][$i]['host'] = '127.0.0.1';]]></description><category></category></item><item><title><![CDATA[puppet安装和使用]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/8545009</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/8545009</guid><author>firefoxbug</author><pubDate>Sat, 26 Jan 2013 17:38:26 +0800</pubDate><description><![CDATA[puppet是一种Linux、Unix、windows平台的集中配置管理系统，使用自有的puppet描述语言，可管理配置

文件、用户、cron任务、软件包、系统服务等。puppet把这些系统实体称之为资源，puppet的设计目标

是简化对这些资源的管理以及妥善处理资源间的依赖关系。

puppet采用C/S星状的结构，所有的客户端和一个或几个服务器交互。每个客户端周期的（默认半个小]]></description><category></category></item><item><title><![CDATA[OpenCDN安装说明]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/8542604</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/8542604</guid><author>firefoxbug</author><pubDate>Fri, 25 Jan 2013 16:14:27 +0800</pubDate><description><![CDATA[OpenCDN管控中心安装
# wget http://ocdn.me/wp-content/down/ocdn_console_last.tar.gz
# tar -zxvf ocdn_console_last.tar.gz
# cd ocdn_console 
# ./install.sh









OpenCDN节点端安装
# wget http://ocdn]]></description><category></category></item><item><title><![CDATA[Nginx+CI 出现404错误]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/8531914</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/8531914</guid><author>firefoxbug</author><pubDate>Tue, 22 Jan 2013 22:52:00 +0800</pubDate><description><![CDATA[对于/index.php/abc这种url，Apache和Lighttpd会按”index.php?abc”来解释，而nginx会认为是请求名

字是“index.php”的目录下的abc文件的内容。所以CI在nginx下不配置rewrite是无法运行的，而在Apache

和Lighttpd则正常。

Nginx里rewrite ^/(.*)$ /index.php?$1 last;]]></description><category></category></item><item><title><![CDATA[Linux注册系统服务]]></title><link>https://blog.youkuaiyun.com/firefoxbug/article/details/8393787</link><guid>https://blog.youkuaiyun.com/firefoxbug/article/details/8393787</guid><author>firefoxbug</author><pubDate>Sun, 23 Dec 2012 17:08:36 +0800</pubDate><description><![CDATA[注册一个系统服务，开机自启动．

1 脚本编写

＃vim test.sh
#!/bin/bash

#description: hello.sh
#chkconfig: 2345 20 81

EXEC_PATH=/usr/local/
EXEC=hello.sh
DAEMON=/usr/local/hello.sh
PID_FILE=/var/run/hello.sh.pid

.]]></description><category></category></item></channel></rss>