Master-Slave MySQL-5.1 Replication
Environment: RHEL: 5.3 MySQL: 5.1.54 Master : 1. MySQL user and group [codesyntax lang="bash"] $ groupadd mysql $ useradd -g mysql mysql [/codesyntax] 2. Download and install MySQL [codesyntax lang="b… Continue reading
PHP-FPM for RHEL
1. Patch PHP-FPM to PHP [codesyntax lang="bash"] $ wget http://php-fpm.org/downloads/php-5.2.17-fpm-0.5.14.diff.gz $ wget http://cn.php.net/distributions/php-5.2.17.tar.bz2 $ tar -jxf php-5.2.17.tar.b… Continue reading
My /etc/rc.local in Development Server of RHEL
[codesyntax lang="bash"] #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V sty… Continue reading
Sync Up the Repository by Rsync
rsync server : 192.168.0.132 rsync client : 192.168.0.133 1. Check and Install rsync : [codesyntax lang="bash"] $ rpm -q rsync $ yum install rsync [/codesyntax] or download and install from http://rsy… Continue reading
Install yum on RHEL5
1. Delete the default yum : [codesyntax lang="bash" lines="no" container="pre" tab_width="4"] $ rpm -aq | grep yum | xargs rpm -e --nodeps [/codesyntax] 2. Install yum of from http://mirrors.163.com/c… Continue reading