Archive for July, 2010

佛曰禅语

July 31st, 2010

八条

1、曰:忘记并不等于从未存在,一切自在来源于选择,而不是刻意。不如放手,放下的越多,越觉得拥有的更多。

» Read more: 佛曰禅语

linux查看内核 cpu mem gcc libc命令

July 30th, 2010

查看系统内核版本命令:

uname -a

more /etc/*release more /etc/redhat-release

more /proc/version

» Read more: linux查看内核 cpu mem gcc libc命令

NGINX 负载均衡404 错误怎么处理

July 26th, 2010

使用NGINX 实现负载均衡,但一组服务器的数据不是实施同步,主服务器有了数据要过段时间才同步到其他服务器
upstream   image.stream.com   {

» Read more: NGINX 负载均衡404 错误怎么处理

Nginx时报错 requires the PCRE library

July 23rd, 2010

安装Nginx时报错

./configure: error: the HTTP rewrite module requires the PCRE library.

» Read more: Nginx时报错 requires the PCRE library

lsyncd+rsync实现实时自动同步

July 22nd, 2010

一、概述

一般rsync软件是通过crond这支后台进行(计划任务)来实现自动同步数据,如今已有更好的开源软件来代替使用crond了,那就是lsyncd( Live Syncing (Mirror) Daemon)它的工作原理:监视本地(rsync client)的目录,当源数据有文件或目录更新时,更新本地文件或目录到远端机器(rsync server),保持实时文件同步,但是它更新数据时需要远端rsync server运行rsync demon

» Read more: lsyncd+rsync实现实时自动同步

SELINUX — setsebool常用设置

July 21st, 2010

===ftp===
//If you want to share files anonymously
chcon -R -t public_content_t /var/ftp
//If you want to setup a directory where you can upload files
chcon -t public_content_rw_t /var/ftp/incoming
You must also turn on the boolean allow_ftpd_anon_write
setsebool -P allow_ftpd_anon_write=1
//If you are setting up this machine as a ftpd server and wish to allow users to access their home directorories
setsebool -P ftp_home_dir 1
//If you want to run ftpd as a daemon
setsebool -P ftpd_is_daemon 1
//You can disable SELinux protection for the ftpd daemon
setsebool -P ftpd_disable_trans 1
» Read more: SELINUX — setsebool常用设置

rsync @ERROR: chdir failed

July 21st, 2010
系统平台:RHEL5.3
客户机:
[root@test1 ~]# rsync -vzrtopg –progress –delete –password-file=/etc/rsyncd.pwd
marsaber@10.10.10.3::backup /var/www/html
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1296) [sender=2.6.8]

» Read more: rsync @ERROR: chdir failed

Setup a rsync server on Centos 5

July 21st, 2010

These instructions assume that you have root access and are operating as the root user. If you only have sudo access, just add sudo to the beginning of most of the commands. The standard port for rsync which is 873 is assumed too.

» Read more: Setup a rsync server on Centos 5

压力测试工具webbench[转]

July 20th, 2010
webbench最多可以模拟3万个并发连接去测试网站的负载能力,个人感觉要比Apache自带的ab压力测试工具好,安装使用也特别方便。

» Read more: 压力测试工具webbench[转]

ARP防火墙 antiarp 破解版

July 17th, 2010

局域网反网速限制局域网反网速控制、p2pover xun6下载地址
安装完成后,用压缩包里的AntiArp.exe覆盖安装目录下的原文件,就是永不过期的ARP防火墙了
目前虽然有最新的版本 但是这个版本4.1.1是最稳定的 同时他还是永不过期的.

» Read more: ARP防火墙 antiarp 破解版