Linux under the LNMP environment to build __linux

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.