lnmp one-click installation package

system requirement:

  • CentOS/RHEL/Fedora/Debian/Ubuntu/Raspbian Linux系统
  • Need more than 3GB free hard disk space
  • Need more than 128MB of memory (if it is a 128MB small memory VPS, Xen needs to have SWAP, OpenVZ needs at least 128MB of vSWAP or burst memory), pay attention to small memory, do not use 64-bit system!
  • Install MySQL 5.6 or 5.7 and MariaDB 10 must have more than 1G memory! .
  • The VPS or server must be connected to the Internet, and the network source must not be a CD source, and the VPS/server DNS must be normal!
  • Linux is case sensitive, please pay attention when entering commands!
LNMP one-click installation package V1.3 has been installed in PhotonVPS , Vultr , Travel Host , OneAsiahost Singapore VPS , Bricklayer , BudgetVM , DigitalOcean , LocVPS , Linode , DiaHosting , Ruihao Open Source , KVMLA , Jingwen Internet , RamNode , Hostigation , BuyVM , 80VPS , XSVPS , HostUS , Kuaiyi Internet and many other VPS's CentOS 5-7, RHEL 6-7, Fedora 21-23, Debian 7-8, Ubuntu 10.04-16.04 32-bit and 64-bit systems passed the test.

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 installation, please refer to screen

for details tutorial .

2. Download and install the LNMP one-click installation package:

You can choose to use the download version (recommended for foreign or American VPS) or the full version (recommended for domestic VPS), there is no difference between the two, but the full version pre-installs some required source code files into the installation package.

To install LNMP execute: wget -c http://soft.vpser.net/lnmp/lnmp1.3-full.tar.gz && tar zxf lnmp1.3-full.tar.gz && cd lnmp1.3-full && ./ install.sh  lnmp
installs lnmp by default. If you need to install LNMPA or LAMP, replace the parameters after ./install.sh with lnmpa or lamp .

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 the above command is executed, the following prompt will appear: You

need to set the root password of MySQL (if you do not enter the key, 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 then press the Backspace key to delete it. 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 enter the next step
to select the MySQL version. Currently, there are many versions of MySQL and MariaDB. It should be noted that MySQL 5.6, 5.7 and MariaDB 10 must be selected on a higher configuration with more than 1G memory:

Enter the serial number in front of the corresponding MySQL or MariaDB version, press Enter to go to the next step, and select the PHP version:
Note: When selecting 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. If 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 it prompts Install lnmp V1.3 completed! Successful installation.
Next, press the add virtual host tutorial , upload the website code after adding the virtual host, you can use sftp orThe ftp server uploads the website, resolves the domain name to the IP of the VPS or server, and the resolution takes effect and it can be used.

4. Installation fails

If a prompt similar to the above picture appears, it means that the installation failed, indicating that the installation was not successful! ! 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 an FTP server is required: https://lnmp.org/faq/ftpserver.html

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

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

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

8. LNMP status management command
http://lnmp.org/faq/lnmp-status-manager.html

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326555132&siteId=291194637