lnmp one-click installation steps

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

after logging in, run: screen -S lnmp If the prompt screen: command not found command does not exist, you can execute: yum install screen or apt-get install screen to install, see screen
for details 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 users with small 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 puts some required source files in the installation package in advance.

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.sh  lnmp

is installed by default lnmp can be omitted. 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 prompted wget: command not found, use yum install wget or apt-get install wget command to install.

If the download speed is slow or cannot be downloaded, please change to another download node. 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:

At present, 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 (press Enter without entering it will set it 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 Delete (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 the engine is not really needed, 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 displays Nginx: OK, MySQL: OK, PHP: OK

and Nginx, MySQL, and PHP are all running, ports 80 and 3306 exist, and prompts the installation time and Install lnmp V1.4 completed! enjoy it., it means Installed successfully.
Some systems may be stuck at Install lnmp V1.4 completed! enjoy it. It does not exit automatically, you can exit with Ctrl+c.

After the installation is complete, you can start using it

Guess you like

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