One-click installation of lnmp environment in centos

Source: Internet
Author: User
Tags apc

First, log on to the Operating System Using SSH...
Then download the installation package

CopyCode The Code is as follows: wget http://catlnmp.googlecode.com/files/lnmp1.1.zip

Then decompress the package.Copy codeThe Code is as follows: unzip lnmp1.1.zip

Some of them do not have unzip. We do this.

Copy code The Code is as follows: Yum install unzip

Then we will jump to this directory

Copy code The Code is as follows: CD lnmp

Then we add permissions to the file:

Copy code The Code is as follows: chmod + x install. Sh APC. Sh eaccelerator. Sh

Finally, execute

Copy code The Code is as follows:./install. Sh

After installation, the default MySQL user name and password are both root. You can use the following command to change the password:

Copy code The Code is as follows:/usr/local/MySQL/bin/mysqladmin-u root-P password your password

In this way, you can upload your website.

ProgramInstallation path:
MySQL:/usr/local/MySQL
PHP:/usr/local/PHP
Nginx:/usr/local/nginx
PHPmyAdmin/home/www/phpMyAdmin
Web directory/home/WWW
FTP root directory/home/WWW
Note: the MySQL database username is root and password. After logging on to the MySQL database, find the user table and delete all users except the root password.
To install vsftp, run the following command:

Copy code The Code is as follows: Yum-y install vsftpd
/Etc/init. d/vsftpd start
Chkconfig -- level 345 vsftpd on

You can change the password of a WWW user when logging on with the WWW User:

Copy code The Code is as follows: passwd WWW

To install eaccelerator, run the following command:

Copy code The Code is as follows:./eaccelerator. Sh

To install APC, run the following command:

Copy code The Code is as follows:./APC. Sh

Note: Only one accelerator APC can be installed.
For how to add a site and restart nginx, see some basic commands in centos.

Related Article

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.