Master-Slave MySQL-5.1 Replication

Environment: RHEL: 5.3 MySQL: 5.1.54 Master : 1. MySQL user and group 2. Download and install MySQL 3. Create database 4. Master config 5. Password for root 6. Launch master 7. Create account for replication Slave : 1. Copy master application and data as slave 2. Slave Config 3. Launch Slave Test : 1. Check [...]

Posted in MySQL, RHEL | Tagged , | 2 Comments

PHP-FPM for RHEL

1. Patch PHP-FPM to PHP 2. PHP Configure Options for CGI/FastCGI (for help) 3. Install PHP 4. Modify php.ini and php-fpm.conf 5. Test and Start

Posted in PHP, RHEL | Tagged , | Leave a comment

One Tips for the Loading Order of Environment Files

loading order which? who? when? 1 /etc/enviroment system once 2 /etc/profile (& /etc/profile.d/*) all users once 3 ~/.bash_profile | ~/.bash_login | ~/.profile you once 4 ~/.bashrc you each time 5 /etc/bashrc all users each time 6 ~/.bach_logout all users each time

Posted in Linux | Tagged , | Leave a comment

Linux C hello world

1. vi functions.c 2. vi hello.c 3. Make Executable hello 4. To make functions shared

Posted in C, Linux | Tagged , | Leave a comment

My Linux files/dirs Distribution

Here is my linux files/dirs distribution. Main purpose is to easily centralized data maintenance.   Company abc’s directory /data/abc/   All web applications /data/abc/vhosts/   All the packages and dependencies /data/abc/soft_misc/ 放所有linux的安装包和依赖包   Logs /data/abc/weblog/   Cache folder for eaccelerator_cache /data/abc/eaccelerator_cache/   For storing MySQL data /data/abc/mysqldata/ /data/abc/mysqldata/mysql_m1 分布式mysql master数据库 /data/abc/mysqldata/mysql_s1 分布式mysql slave 1 数据库 [...]

Posted in Linux | Tagged | Leave a comment

Install Webbench

1. Install 2. Test

Posted in Linux | Tagged , | Leave a comment

Sync Up the Repository by Rsync

rsync server : 192.168.0.132 rsync client : 192.168.0.133 1. Check and Install rsync : or download and install from http://rsync.samba.org/ 2. Configurations of rsync server (192.168.0.132) : 3. User & Password : 4. Open port 873 on both server and client : 5. Rsync daemon : 6. Set autorun : or 7. List all the [...]

Posted in RHEL | Tagged , | Leave a comment

Install yum on RHEL5

1. Delete the default yum : 2. Install yum of from http://mirrors.163.com/centos/5/os/i386/CentOS/ : 3. Download Config to /etc/yum.repos.d/ : 4. Test :

Posted in RHEL | Tagged , | 1 Comment