You do not need to enter a large number of commands during compilation and installation. As a newbie who uses linux to configure the production environment, it is undoubtedly the least expected. The following describes how to install LNMP in CentOS.
What is LNMP?
LNMP refers to the website server architecture of Nginx + MySQL + PHP in Linux. This website server architecture uses fewer resources and supports more concurrent connections, reflecting higher efficiency. It is ideal for low-configuration VPS.
Install LNMP
This document only describes how to install CentOS.
1. log on to SSH (how to use SSH ?), Run the following command to download the one-click installation package of LNMP.
Http://soft.vpser.net/lnmp/lnmp0.6.tar.gz wget-c
2. Run the following command to decompress the LNMP one-key installation package.
Tar zxvf lnmp0.6.tar.gz
3. Run the following command to enter the lnmp0.6 directory.
Cd lnmp0.6/
4. Run the following command to install LNMP.
./Centos. sh
5. Enter the domain name to be bound, press enter, enter the MySQL root Password to be set, and press enter, prompting "coolcodess any key to start ...", Press any key to start installation. The program automatically installs and compiles software Nginx, PHP, MySQL, phpMyAdmin, and Zend.
VM management
1. Add a VM and run the following command:
./Vhost. sh
Enter the domain name to be bound as prompted, and press Enter. If you want to add more domain names, enter y, and then enter the domain name to be bound. Multiple Domain names can be separated by spaces. Enter the directory to which the domain name is bound (absolute directory, such as/home/wwwroot/lnmp. If this parameter is left blank, the default domain name is/home/wwwroot/.), and then select whether to add pseudo-static rules, by default, Discuz, Wordcoolcodess, Sablog, emlog, and dabr are available. You can directly enter the Preceding Names. To add custom pseudo-static rules, enter the desired name directly, the program will automatically create a pseudo-static file, directly under/usr/local/nginx/conf/your custom pseudo-static name. add pseudo-static rules in conf. Next, you will be prompted whether to enable the log function. Generally, you do not need to start it. Simply enter n. If you need to start it, enter y, and then enter the name of the log file to be defined, press enter to automatically add a VM.
2. Delete the VM and run SSH:
Rm/usr/local/nginx/conf/vhost/Domain Name. conf
3. Status management and related management pages
LNMP Status Management
Start LNMP command:/root/lnmp start
Stop LNMP command:/root/lnmp stop
Reload the relevant configuration file command:/root/lnmp reload
Restart LNMP command:/root/lnmp restart
Other management pages
PhpphpMyAdmin: http: // The domain name or IP address entered earlier/phpmyadmin/
MySQL root Password: if you do not enter the password, press enter as root; otherwise, enter the password for you.
How to upload files
Mainstream FTP servers in Linux include PureFTPd and VsFTPD. But we do not recommend the installation, because the system itself comes with a File Transfer function SFTP, short for Secure File Transfer Protocol, Secure File Transfer Protocol. You only need to download the WinSCP software and enter the administrator username root and password. This is very convenient and supports drag-and-drop upload and download, just like windows Resource Manager.
WinSCP: http://www.jb51.net/softs/28790.html