CentOS System under LNMP environment one-click Installation _nginx

Source: Internet
Author: User
Tags apc centos mysql database phpmyadmin

First, we use SSH to login to the operating system ...
Then download the installation package

Copy Code code as follows:

wget Http://catlnmp.googlecode.com/files/lnmp1.1.zip

And then we unpack it.
Copy Code code as follows:

Unzip Lnmp1.1.zip

Some are not unzip, we are like this

Copy Code code as follows:

Yum Install unzip

And then we jump to that directory

Copy Code code as follows:

CD LNMP

Then we add permissions to the file:

Copy Code code as follows:

chmod +x install.sh apc.sh eaccelerator.sh

Finally we execute

Copy Code code as follows:

./install.sh


After installing the default MySQL username and password are root, we can use the following command to modify the password:

Copy Code code as follows:

/usr/local/mysql/bin/mysqladmin-u root-p Password your password.

So you can upload your site.

Program Installation 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: MySQL database username root password root, login into the MySQL database, find the user table, delete all except the root password of all users.
You need to install VSFTP to perform the following commands:

Copy Code code as follows:

Yum-y Install VSFTPD
/ETC/INIT.D/VSFTPD start
Chkconfig--level 345 vsftpd on

The WWW user password can be modified by logging on to WWW users:

Copy Code code as follows:

passwd www

You need to install Eaccelerator to perform the following commands:

Copy Code code as follows:

./eaccelerator.sh

You need to install APC to perform the following commands:

Copy Code code as follows:

./apc.sh

Note: Eaccelerator APC can only choose to install one
For actions such as adding a site and restarting Nginx see: CentOS Some basic commands to use

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.