Before installing LNMP, please run screen
Although before the VPS detective has published the use of the screen command, and combined with the LNMP one-click installation package for a simple explanation, but still some small white will ask when the putty or SECURECRT installation LNMP, the network suddenly dropped or accidentally putty was turned off, etc. reasons, The LNMP installation process is interrupted to do, in fact, to prevent this phenomenon is very simple, as long as the installation of LNMP before the screen command to do it.
Licess also in the VPS detective said the use of screen command, the following combination of LNMP installation process again.
1, screen installation method will not say, look at the VPS Detective article on it
2, execution: screen-s LNMP Create a screen session.
If the network is dropped, you can reconnect, and then execute screen-r lnmp you will see your LNMP installation process.
LNMP One-click installation package V1.2 is already in Linode, diahosting, PhotonVPS, Digitalocean, Tour host, Ramnode, BUDGETVM, Rui Hao Open source, Directspace, Kvmla, Oneasiahost CentOS 5-7, RHEL 6-7, Fedora 21-22, Debian 5-8 for many VPS such as VPS, Sindy Interconnect, Hostigation, BUYVM, Locvps, 80VPS, Xsvps, fast and easy connectivity in Singapore , Ubuntu 10.04-15.04 32-bit and 64-bit systems on the test pass.
Installation steps:
1. Use putty or similar SSH tools to login to VPS or server;
Run after Login:screen-s Lnmp
If the prompt screen:command not found command does not exist can be performed: Yum installs screen or apt-get install screen installation, detailed screen tutorial.
2. Download and install the LNMP one-click 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 the required source files are pre-placed in the installation package.
Install LNMP execution:wget-c http://soft.vpser.net/lnmp/lnmp1.2-full.tar.gz && tar zxf lnmp1.2-full.tar.gz && CD Lnmp1.2-full &&/install.sh lnmp
If you need to install LNMPA or lamp, replace the parameter after./install.sh with theLnmpaOrLampCan.
If the download speed is slow, please replace other download nodes, please see the download page for details. LNMP Download node specific replacement method.
After you follow the above command, you will see the following prompt:
650) this.width=650; "src=" Http://lnmp.org/images/1.2/lnmp-1.2-install-1.png "style=" margin:5px;padding:0px; border:0px;vertical-align:baseline;background:transparent; "alt=" Lnmp-1.2-install-1.png "/>
Need to set the root password of MySQL (do not enter the direct return will be set to root) if the input has an error to delete, you can hold down CTRL and then press BACKSPACE to delete. Enter back and enter the next step as shown in:
650) this.width=650; "src=" Http://lnmp.org/images/1.2/lnmp-1.2-install-2.png "style=" margin:5px;padding:0px; border:0px;vertical-align:baseline;background:transparent; "alt=" Lnmp-1.2-install-2.png "/>
Here you need to confirm whether MySQL InnoDB is enabled, if you are not sure whether you can enter Y for enable, enter Y for Enable, and N for not enabled. By default, y is enabled, enter back to enter next, select MySQL version:
650) this.width=650; "src=" Http://lnmp.org/images/1.2/lnmp-1.2-install-3.png "style=" margin:5px;padding:0px; border:0px;vertical-align:baseline;background:transparent; "alt=" Lnmp-1.2-install-3.png "/>
Enter the serial number of the MySQL or mariadb version, enter the next step and select the PHP version:
650) this.width=650; "src=" Http://lnmp.org/images/1.2/lnmp-1.2-install-4.png "style=" margin:5px;padding:0px; border:0px;vertical-align:baseline;background:transparent; "alt=" Lnmp-1.2-install-4.png "/>
Enter the number of the PHP version, enter the next step, choose whether to install memory optimization:
650) this.width=650; "src=" Http://lnmp.org/images/1.2/lnmp-1.2-install-5.png "style=" margin:5px;padding:0px; border:0px;vertical-align:baseline;background:transparent; "alt=" Lnmp-1.2-install-5.png "/>
You can choose not to install, jemalloc or Tcmalloc, enter the corresponding serial number.
If it is Lnmpa or lamp, you also need to set up the administrator mailbox
650) this.width=650; "src=" Http://lnmp.org/images/1.2/lnmp-1.2-install-6.png "style=" margin:5px;padding:0px; border:0px;vertical-align:baseline;background:transparent; "alt=" Lnmp-1.2-install-6.png "/>
Then select Apache Version
650) this.width=650; "src=" Http://lnmp.org/images/1.2/lnmp-1.2-install-7.png "style=" margin:5px;padding:0px; border:0px;vertical-align:baseline;background:transparent; "alt=" Lnmp-1.2-install-7.png "/>
After you have prompted "Press any key to install...or presses CTRL + C to cancel", click Enter to confirm the installation begins.
The Lnmp script will automatically install software that compiles nginx, MySQL, PHP, PhpMyAdmin, Zend Optimizer.
Installation time may vary from a few 10 minutes to several hours, mainly due to the machine's configuration speed and other factors.
3. Complete Installation
If the Nginx:ok,mysql:ok,php:ok is displayed
650) this.width=650; "src=" Http://lnmp.org/images/1.2/lnmp-1.2-install-sucess2.png "style=" margin:5px;padding:0px ; border:0px;vertical-align:baseline;background:transparent; "alt=" Lnmp-1.2-install-sucess2.png "/>
and Nginx, MySQL, PHP are both running,80 and 3306 ports are present, and install LNMP V1.2 completed! Enjoy it. Then the instructions have been installed successfully.
Next PressAdd a virtual host tutorial, add the virtual host, upload the website via SFTP or FTP server, resolve the domain name to the VPS or the server IP, the resolution can be used.
4. Installation Failure
650) this.width=650; "src=" Http://lnmp.org/images/1.2/lnmp-1.2-install-failed.png "style=" margin:5px;padding:0px; border:0px;vertical-align:baseline;background:transparent; "alt=" Lnmp-1.2-install-failed.png "/>
If a similar prompt appears, the installation fails, stating that no installation was successful!! Need to use WINSCP or other similar tools, the/root directory below the Lnmp-install.log download down to the LNMP support forum post note your system distribution name and version number, 32-bit or 64-bit information, And the Lnmp-install.log compression to the attachment form to the forum, we will find errors through the log, and give the corresponding solution.
The default LNMP is to not install an FTP server, such as 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
This article from "Enjoy Programming" blog, reproduced please contact the author!
Before installing LNMP, please run screen