system requirement:

  • CentOS/RHEL/Fedora/Debian/Ubuntu/Raspbian/Deepin/Aliyun/Amazon/Mint Linux distribution
  • Requires 5GB or more of free space on the hard disk, MySQL 5.7, MariaDB 10 with at least 9GB of free space
  • Need more than 128MB of memory (128MB small memory VPS, Xen need to have SWAP, OpenVZ must have at least 128MB vSWAP or burst memory), pay attention to small memory do not use 64-bit system!
  • Installation of MySQL 5.6 or 5.7 and MariaDB 10 1G or more memory, a higher version must be at least 2G memory! .
  • Install PHP 7 and above must 1G RAM or above! .
  • The VPS or server must be networked and must be set up. The network source cannot be the CD source, and the VPS/Server DNS should be normal!
  • Case sensitivity under Linux, please pay attention when entering commands!
  • If you have MySQL/MariaDB installed via yum or apt-get, please backup the data and other related files yourself!
  • CentOS 5, Debian 6 and earlier versions of its official website have ended up being unsupported!
LNMP a key installation package V1.5 has been Vultr , travel host , move bricklayer , LocVPS , Linode , vps2ez , DiaHosting , DigitalOcean , KVMLA , Kingman Internet , RamNode , BuyVM , quick and easy interconnection , 80VPS , Ali cloud , and many of VPS Tested on 32-bit and 64-bit systems of CentOS 6-7, RHEL 6-7, Fedora 21-28, Debian 7-9, Ubuntu 10.04-18.04 (CentOS 5, Debian 6 and earlier versions have their official website already closed and cannot be used) Apache on Debian9 needs to be selected above version 2.4.26.
How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

installation steps:
1. Log in to the VPS or server using putty or a similar SSH tool;

run after login: screen -S lnmp
If prompted screen: command not found command can be executed: yum install screen or apt-get install screen installation, detailed content reference screen Tutorial .

2, download and install the LNMP one-click installation package:

you can choose to use the download version (recommended for US and overseas VPS or small space users) or the full version (recommended for domestic VPS use, domestic users can be used to find domestic download addresses in the download ), there is no difference between the two, just the full version put some of the required source files into the installation package.

Installation LNMP stable version
For unattended installation, use the unattended command generation tool , or to view a tutorial unattended 

wget http://soft.vpser.net/lnmp/lnmp1.5.tar.gz -cO lnmp1 .5.tar.gz && tar zxf lnmp1.5.tar.gz && cd lnmp1.5 && ./install.sh lnmp

If you need to install LNMPA or LAMP, replace the parameter lnmp after ./install.sh with lnmpa or lamp Just fine. If you need to change the website and database directory, customize the Nginx parameters, PHP parameter module, open lua, etc., you need to modify the lnmp.conf file in the installation package directory before running the ./install.sh command. For details, see the lnmp.conf file parameter description. .

If the prompt wget: command not found, use the yum install wget or apt-get install wget command to install.

If the download speed is slow or cannot be downloaded, please replace other download nodes. Please check the LNMP download node for specific replacement methods .

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

Currently , there are more MySQL, MariaDB versions and options for not installing the database. It should be noted that MySQL 5.6, 5.7 and MariaDB 10 must be in a higher configuration of 1G or more memory. Can choose ! For example, only need to install the database in the lnmp installation package directory: ./install.sh db

enter the serial number corresponding to the MySQL or MariaDB version, press Enter to enter the next step.

Set the MySQL root password (for security, do not enter directly enter Set to lnmp.org# random number) If you need to delete the input, you can press Ctrl and then press Backspace to delete (in some cases, only the Backspace key is needed). Enter and press Enter to enter the next step, as shown below:

Ask if you need to enable MySQL InnoDB, InnoDB engine is enabled by default, it is generally recommended to open, directly enter or enter y, if you do not need the engine can input n, (MySQL The 5.7+ version cannot close InnoDB), the input is completed, and the carriage return to the next step.

Note: When choosing the PHP 7+ version, you need to confirm that the PHP version is compatible with your own program.

Enter the serial number of the PHP version to

be selected, press Enter to go to the next step, choose whether to install memory optimization: you can choose not to install, Jemalloc or TCmalloc, enter the corresponding serial number to enter, directly return to the default is not installed.

If it is LNMPA or LAMP, it will prompt to set the mailbox and select Apache

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

How to install the LNMP one-click installation package

“Please enter Administrator Email Address:”. You need to set the administrator mailbox, which will be displayed on the error page when the error is reported.

Then select the Apache version

. Enter the number sequence number in front of the corresponding version and press Enter.

After prompted “Press any key to install…or Press Ctrl+c to cancel”, press Enter to confirm the installation.
The LNMP script will automatically install and compile Nginx, MySQL, PHP, phpMyAdmin and other related components.

The installation time may vary from tens of minutes to several hours, mainly due to reasons such as the configuration speed of the machine.

3, the installation is complete
If you display Nginx: OK, MySQL: OK, PHP: OK

and Nginx, MySQL, PHP are running, 80 and 3306 ports are present, and prompted the installation time and Install lnmp V1.5 completed! enjoy it If it is, the installation has been successful.
Some systems may always be stuck in Install lnmp V1.5 completed! Enjoy it. Do not exit automatically, you can press Ctrl+c to exit.

After the installation is complete, you can start using it. Press Add Virtual Host Tutorial . After adding the virtual host, you can use sftp or ftp server to upload the website code, and resolve the domain name to the VPS or server IP.

4, the installation failed

If there is a prompt similar to the above picture, one or several failed to install successfully indicates that the installation failed! ! Need to use winscp or other similar tools, download the lnmp-install.log under the /root directory, post to the LNMP support forum to indicate your system release name and version number, 32-bit or 64-bit information, and lnmp -install.log compression is uploaded to the forum as an attachment. We will find the error through the log and give the corresponding solution.

The default LNMP is not to install an FTP server, such as an FTP server: https://lnmp.org/faq/ftpserver.html

5, add, delete virtual host and pseudo-static management 
https://lnmp.org/faq/lnmp-vhost-add-howto.html

6, eAccelerator, xcache, memcached, imageMagick, ionCube, redis, opcache installation 
https://lnmp.org/faq/addons.html

7. LNMP related software directory and file location 
https://lnmp.org/faq/lnmp-software-list.html

8, LNMP state management command 
https://lnmp.org/faq/lnmp-status-manager.html

9, only install the database, Nginx
lnmp 1.5 began to support only install MySQL / MariaDB database or Nginx
add a separate nginx installation, install the package directory to run: ./install.sh nginx to install;
add a separate database installation, the installation package directory to run: ./install.sh db to install;

 

 

Reference: lnmp.org