原创 ORACLE10g安裝

  --安裝oracle前的準備: -1.hareware required: at least 1G  physical memory  (移動的海量內存250G) swap分區爲physical memory(物理內存)的1.5倍

原创 安裝fedora的epel源

yum install -y rpm-libswget http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6導入KEY:rpm --import RPM-GPG-KEY-EPEL-6

原创 get_user_grants_info

#!/bin/bash PassWord="123456" MysqlBin=/usr/bin/mysql UserAndHost=`$MysqlBin -uroot -p"$PassWord" -e "select user,host

原创 mysql5.5安裝

  tar zxvf mysql-VERSION.tar.gz cd mysql-VERSION cmake . \ -DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_INSTALL_PREFIX:PA

原创 刪除大量小文件

  FreeBSD刪除文件緩存,在負載方面FreeBSD比CentOS好很多很多。#!/bin/sh if [ ! -s /tmp/dir.dat ];then find /home/www/web/cache -type d >

原创 Linux6.x內核參數調優

## 本人在測試機上測試過,效果不錯fs.file-max = 6553600 net.ipv4.ip_local_port_range = 1024 65000 net.ipv4.tcp_max_orphans = 3276800 net

原创 Error expanding embedded variable.

今天在FreeBSD下面下了個測試版的redis-3.0.0-beta3,開始make就出錯: test_freebsd# make cd src && make all "Makefile", line 30: Missing depe

原创 inotify+rsync實現文件同步更新

下載inotify:wget http://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.tar.gz解包安裝:tar xvf inotify-tools-3

原创 get_domain_ip

#!/bin/bash if [ $# -lt 1 ]; then          echo $0 need a parameter          exit 0  fi   ADDR=$1   TMPSTR=`ping ${ADDR}

原创 'Could not find first log file name in binary log index file

主從出錯: Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Could not find first log file

原创 源碼安裝的軟件添加man page

源碼安裝的軟件,有的帶有man page,有的沒有,有的情況下讓它生效,方法:   vi /etc/man.config 大概在43行開始就是設置man page的路徑,假如安裝的varnish軟件放在/usr/local/varnish下

原创 Nginx 簡單的負載均衡配置示例

   www.s135.com 和 blog.s135.com 域名均指向 Nginx 所在的服務器IP。   用戶訪問http://www.s135.com,將其負載均衡到192.168.1.2:80、192.168.1.3:80、19