System requirements: Centos/rhel/fedora/debian/ubuntu/raspbian Linux system requires more than 5GB of hard disk space required more than 128MB memory (if 128MB of small memory vps,xen need to have swap, OpenVZ must have at least 128MB of Vswap or burst memory), note that small memory do not use 64-bit system. Install MySQL 5.6 or 5.7 and MARIADB 10 must be more than 1G RAM!. The VPS or server must be networked, and the network source must be set to not be the optical source, while the vps/server DNS should be normal. Linux is case-sensitive, please note when entering commands. LNMP One-click installation package V1.3 has been in PhotonVPS, VULTR, Tour host, oneasiahost Singapore VPS, relocation bricklayer, BUDGETVM, Digitalocean, Locvps, Linode, diahosting, Rui Hao Open source, Kvmla, Jingwen Interconnection, Ramnode, Hostigation, BUYVM, 80VPS, Xsvps, hostus, fast-easy interconnection and many other VPS CentOS 5-7, RHEL 6-7, Fedora 21-23, Debian 7-8 , the Ubuntu 10.04-16.04 32-bit and 64-bit systems were tested through.
Installation steps:
1, use putty or similar SSH tool to login VPS or server;
After landing operation: Screen-s LNMP
If prompted screen:command the not found command does not exist to perform: Yum install screen or apt-get install screen installation, details refer to the screen tutorial.
2, download and install LNMP one-button installation package:
You can choose to use the download version (recommended foreign or U.S. VPS use) or the full version (recommended domestic VPS use), the two are no different, but the full version of a number of required source files in advance into the installation package.
Install LNMP execution: 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
The default installation LNMP does not write, if you need to install LNMPA or lamp, replace the./install.sh parameter with Lnmpa or lamp.
If the download speed is slow please change other download nodes, please see the download page for details. LNMP Download node specific replacement method.
After you follow the above command, the following prompts appear:
You need to set the MySQL root password (do not enter direct return will be set to root) if there is an error in the input need to delete, you can hold down CTRL and then press the BACKSPACE key to delete. Enter the next carriage return entry, as shown in the following figure:
Ask if you need to enable the MySQL Innodb,innodb engine defaults to open, generally recommended to open, direct return or enter Y, if you are sure you do not need the engine can input n, input complete, enter the next step
Choose the MySQL version, currently provides more versions of MySQL and mariadb, it should be noted that the MySQL 5.6,5.7 and mariadb 10 must be in the higher than 1G of memory configuration to choose:
Enter the serial number that corresponds to the MySQL or mariadb version, enter the next step, and select the PHP version:
Note: You need to confirm that you are compatible with your program when you select the PHP7 version.
Enter the serial number of the PHP version you want to select, enter the next step, and choose whether to install the memory optimization:
You can choose not to install, jemalloc or Tcmalloc, enter the corresponding ordinal return, direct return to the default is not installed.
If it is LNMPA or lamp will also prompt "Please enter the Administrator email address:", you need to set the administrator mailbox, the mailbox will be in the error message displayed on the wrong page.
And then select the Apache version
Enter the number ordinal of the corresponding version before the prompt.
Prompt "Press any key to install...or presses CTRL + C to cancel", click Enter to confirm the start of the installation.
The Lnmp script automatically installs the software for compiling nginx, MySQL, PHP, phpMyAdmin, Zend Optimizer.
The installation time may be several 10 minutes to several hours, mainly due to the machine's configuration speed and other reasons can affect.
3. Installation Complete
If Nginx:ok,mysql:ok,php:ok is displayed
and Nginx, MySQL, PHP are running,80 and 3306 ports are present, and prompted install LNMP V1.3 completed! Enjoy it. Words, the description has been installed successfully.
Next by adding a virtual host tutorial, add a virtual host after the site code upload, you can use SFTP or FTP server upload site, the domain name resolution to the VPS or server IP, analytical effective can be used.
4. Installation failure
If a hint similar to the previous illustration appears, the installation fails, indicating that the installation was unsuccessful. Need to use WINSCP or other similar tools, the/root directory below the Lnmp-install.log download down to LNMP Support forum post to indicate your system distribution name and version number, 32-bit or 64-bit information, And the Lnmp-install.log compression in the form of attachment to the forum, we will find errors through the log, and give the corresponding solution.
The default LNMP is not to install the FTP server, such as the need for an FTP server: https://lnmp.org/faq/ftpserver.html
5, add, delete virtual host and pseudo static management
Http://lnmp.org/faq/lnmp-vhost-add-howto.html
6, Eaccelerator, XCache, memcached, ImageMagick, Ioncube, Redis, Opcache installation
Http://lnmp.org/faq/addons.html
7, LNMP related software directory and file location
Http://lnmp.org/faq/lnmp-software-list.html
8, LNMP State Management Command
Http://lnmp.org/faq/lnmp-status-manager.html
Article Source: http://lnmp.org/install.html