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 [...]
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
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
Linux C hello world
1. vi functions.c 2. vi hello.c 3. Make Executable hello 4. To make functions shared
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 数据库 [...]
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 [...]
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 :