LNMP is Linux, Nginx, MySQL, PHP shorthand, LNMP and lamp environment is used to do Web site backstage, Nginx is lightweight, the process of communication between the use of PHP-FPM independent use; Apache is rather bloated, Call PHP's module to complete, need to load a lot of modules, running relatively slow.
First, install MySQL
We usually install MySQL is the source package installed, but due to its compilation takes a long time, we choose to install binary system free of compiler package. You can go to the MySQL official website to download http://dev.mysql.com/downloads/specific version according to your platform and requirements, currently more commonly used for mysql-5.0/mysql-5.1, 5.5 version although has been released for a period of time, But it seems to be a small number of online-run services.
The specific steps are as follows:
1, download the MySQL installation files to the/USR/LOCAL/SRC directory
| 1 |
[Root@yong ~] # CD/USR/LOCAL/SRC |
| 1 2 |
[Root@yong src] # wget http://syslab.comsenz.com/downloads/linux/mysql-5.1.40-linux-i686-icc-glibc23.tar.gz-- 2015-04-27 09:23:01--http://syslab. comsenz.com/downloads/linux/mysql-5.1.40-linux-i686-icc-glibc23. Tar. gzresolving syslab.comsenz.com ... 101.227.130.115Connecting to syslab.comsenz.com|101.227.130.115|:80 ... Connected. HTTP request sent, awaiting response ... oklength:123633020 (118M) [Application/octet-stream]saving to: "Mysql-5.1.40-linux-i686-icc-glibc23. Tar. Gz " |
2, unzip the downloaded file
| 1 |
[Root@yong src] # tar-zxvf mysql-5.1.40-linux-i686-icc-glibc23.tar.gz |
3. Move the extracted data to/usr/local/mysql
Note: Do not manually add the/mysql directory, the move will also change the original directory name.