LNMP one-click installation

You can choose to use the download version (recommended for U.S. and overseas VPS or users with smaller space) or the full version (recommended for domestic VPS, domestic users can find the domestic download address in the download to replace), there is no difference between the two, but the full version has Some required source files are pre-installed in the installation package. Deepin/deepin can only use the server version, please do not install the desktop version! !

Install LNMP stable version
wget -c http://soft.vpser.net/lnmp/lnmp1.4.tar.gz && tar zxf lnmp1.4.tar.gz && cd lnmp1.4 && ./install.shlnmp


lnmp is installed by default If you need to install LNMPA or LAMP, replace the parameters after ./install.sh with lnmpa or lamp. If you need to change the website and database directory, first modify the lnmp.conf file in the installation package directory.

If the download speed is slow, please change other download nodes. For details, please refer to the download page . The specific replacement method of the LNMP download node .

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

Currently, there are more MySQL and MariaDB versions and options for not installing the database. It should be noted that MySQL 5.6, 5.7 and MariaDB 10 must be on a higher configuration with more than 1G memory to choose !

Enter the serial number in front of the corresponding MySQL or MariaDB version and press Enter to go to the next step.


You need to set the root password of MySQL (if you don't enter it directly, it will be set to root). If there is an error in the input and you need to delete it, you can hold down Ctrl and press the Backspace key to delete it (in some cases, only the Backspace key is required). After entering, press Enter to go to the next step, as shown in the following figure:

Ask if you need to enable MySQL InnoDB, the InnoDB engine is enabled by default, it is generally recommended to enable it, press Enter directly or enter y, if you are sure that you do not need the engine, you can enter n, the input is complete , press Enter to go to the next step.

Note: When choosing a higher version such as PHP7, you need to confirm whether it is compatible with your own program.

Enter the serial number of the PHP version you want to select, press Enter to go to the next step, and choose whether to install memory optimization:

you can choose not to install, Jemalloc or TCmalloc, enter the corresponding serial number and press Enter, and press Enter to default to not install.

If it is LNMPA or LAMP, it will also prompt "Please enter Administrator Email Address:", and you need to set the administrator's email address, which will be displayed on the error page when an error is reported.

Then select the Apache version and

press the prompt to enter the number in front of the corresponding version and press Enter.

After the prompt "Press any key to install...or Press Ctrl+c to cancel", press Enter to confirm to start the installation. 
The LNMP script will automatically install and compile Nginx, MySQL, PHP, phpMyAdmin, and Zend Optimizer.

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

3. The installation is complete
If it shows Nginx: OK, MySQL: OK, PHP: OK

And Nginx, MySQL, and PHP are all running, and ports 80 and 3306 exist, and prompts the installation time and Install lnmp V1.4 completed! Enjoy it. If the installation is successful.

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

4. Installation failed

If there is a prompt similar to the above picture, if one of them is not installed successfully, it indicates that the installation failed! ! You need to use winscp or other similar tools to download lnmp-install.log under the /root directory, and post on the LNMP support forum to indicate your system distribution name and version number, 32-bit or 64-bit and other information, and lnmp -The install.log is compressed and uploaded to the forum as an attachment. We will find errors through the log and give corresponding solutions.


By default, LNMP does not install an FTP server. If you need an FTP server: https://lnmp.org/faq/ftpserver.html

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

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

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

8. LNMP status management commands
https://lnmp.org/faq/lnmp-status-manager.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326070911&siteId=291194637