linux lamp under a key installation environment

 

https://lnmp.org/install.html

installation steps:
  
2. Download and install LNMP a key installation package:

You can choose to use the download version (recommended by the United States and overseas VPS users or less space) or full version (recommended VPS domestic use, domestic users is available to download to find domestic replacement Download ), no difference between the two, but some require the full version of the source file into a pre-installed package.

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

Execute the following command:

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

the need to LNMPA or lAMP, the substitution parameters lnmp ./install.sh or behind the lamp is to lnmpa. To change the website and database directories, custom parameters Nginx, PHP parameter module, open the lua, etc. need to modify the installation lnmp.conf files in the package directory before running the ./install.sh command, you can view the detailed lnmp.conf file Parameter Description .

Tip as wget: command not found, use yum install wget or apt-get install wget command to install.

Such as slow download speeds or download can not download please replace other nodes, check the specific alternative method LNMP download node .

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

currently provides more MySQL, MariaDB database versions and options are not installed, you need to note that the 10 must be higher configure MySQL 5.6,5.7 and MariaDB in more than 1G of memory to choose ! The only installed in the database to perform the installation package directory lnmp: ./ install.sh db

corresponding to the input or in front MariaDB MySQL version number, enter into the next step.


Set the MySQL root password (for security not directly enter a carriage return will set lnmp.org # random number) If you make a mistake when you want to delete, hold down the Ctrl key and press Backspace to delete (individual cases need only Backspace key). Press enter the next step, as shown below:

asking whether to enable MySQL InnoDB, InnoDB engine is enabled by default, open generally recommended, or directly enter input y, if it is determined that the engine does not need to input n, (MySQL 5.7+ version can not be closed InnoDB), the input is complete, enter into the next step.


Note: You need to confirm the choice of PHP 7+ own version of PHP version is compatible with their own procedures.

Enter to select PHP version number, enter the next step, choose whether to install memory optimization:

you can choose not to install, Jemalloc or TCmalloc, enter the corresponding number Enter directly Enter the default is not installed.

If LNMPA or LAMP, then set mailbox and will also be prompted to select the Apache "Please the Enter Administrator Email Address:", you need to set the administrator mailbox, the mailbox is displayed on the error page when an error.

Select Apache version

prompted to enter the corresponding version number in front of the number, the transport.

Prompt "Press any key to install ... or Press Ctrl + c to cancel" , press the Enter key to start the installation. 
LNMP script will automatically compile Nginx, MySQL, PHP, phpMyAdmin and other software and related components are installed.

Installation time may be tens of minutes to several hours, mainly the configuration of the machine speed and other factors will be affected.

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

!. And Nginx, MySQL, PHP is running, 80 and 3306 ports are present, and prompt installation time use and Install lnmp V1.6 completed enjoy it, indicates It has been successfully installed.
Some systems may have been stuck in the Install lnmp V1.5 completed! Enjoy it. Do not automatically exit, exit press Ctrl + c.

Then the installation is complete to start using it, by adding web hosting tutorial , after adding a virtual host can use sftp or ftp server upload site code, domain name resolves to the IP VPS or server, parses the entry into force can be used.

4, the installation fails

if prompt similar to the figure appears, there is not one or a few successful installation installation was not successful! ! Need winscp or other similar tools, the / root directory of lnmp-install.log downloaded to LNMP support forum posting indicate your system name and version number of the release, 32-bit or 64-bit and other information, and lnmp -install.log compressed to form attachments reached the forum, we will look for errors in the log, and appropriate solutions.



LNMP is not installed by default FTP server, FTP server as needed: https://lnmp.org/faq/ftpserver.html

Guess you like

Origin blog.csdn.net/LQZ8888/article/details/91572133