1. Use putty or a similar SSH tool to log in to the VPS or server. # yum install screen: apt-get install screen # yum install screen: apt-get install screen

2. Download and install LNMP one-click installation package;

3. After running the above LNMP installation command, the following prompt will appear:

9. Note: you need to make sure that you are compatible with your own program when you choose PHP7 or other advanced versions.

11. You can choose not to install, Jemalloc, or TCmalloc. Enter the corresponding serial number and press Enter.

13. Select the Apache version

14. Enter the number before the version as prompted, and press Enter.

Press any key to install… Or Press Ctrl+ C to Cancel “and Press Enter to start the installation. LNMP script will automatically install and compile Nginx, MySQL, PHP, phpMyAdmin, Zend Optimizer.

Installation time may be dozens of minutes to several hours, mainly due to the configuration of the machine network speed and other reasons will affect.

Nginx: OK, MySQL: OK, PHP: OK

16. After the installation is completed, start to use it, according to add virtual host tutorial, add virtual host can use SFTP or FTP server to upload website code, the domain name resolution to VPS or server IP, resolution can be used.