Reprint Address: http://lnmp.org/install.html
Install package Download:
System Requirements:
- Centos/debian/ubuntu Linux System
- Requires more than 2GB hard drive remaining space
- 128M above memory, OpenVZ recommended 192MB above (small memory do not use 64-bit system)
- VPS or server must already be networked!
- Under Linux, please note that when you enter a command, it is case sensitive!
LNMP One-click installation package V1.1 is already in Linode, diahosting, PhotonVPS, Digitalocean, VR Hong Kong VPS, Tour host, Ramnode, BUDGETVM, Rui Hao Open source, Directspace, Kvmla, Oneasiahost CentOS BUYVM, Debian 5-7, Sindy, Vpsyou, Hostigation, BLUEVM, 123systems, Xsvps, 80VPS, 5-6.5 and many more VPS in Singapore Ubuntu 10.04-14.04 is tested on 32-bit and 64-bit systems.
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 for foreign or US VPS use) or the full version (recommended for domestic VPS use), there is no difference.
Before executing the installer, you need to confirm your Linux distribution, which can be performed: Cat/etc/issue see CentOS, Debian or Ubuntu, or you can view it via the control Panel provided by the VPS service provider. When you are sure, select the appropriate installation command for the system below:
CentOS System execution:wget-c http://soft.vpser.net/lnmp/lnmp1.1-full.tar.gz && tar zxf lnmp1.1-full.tar.gz & & CD Lnmp1.1-full &&./centos.sh
Debian system execution:wget-c http://soft.vpser.net/lnmp/lnmp1.1-full.tar.gz && tar zxf lnmp1.1-full.tar.gz & & CD Lnmp1.1-full &&./debian.sh
Ubuntu system execution:wget-c http://soft.vpser.net/lnmp/lnmp1.1-full.tar.gz && tar zxf lnmp1.1-full.tar.gz & & CD Lnmp1.1-full &&./ubuntu.sh
There are also 2 foreign mirror download points that can be used soft2.vpser.net and soft3.vpser.net specific replacement methods: Http://lnmp.org/faq/lnmp-download-source.html.
To install version 0.9, please visit http://old.lnmp.org/install.html
After you follow the above command, you will see the following prompt:
(Note: If it is a Debian system, you will be prompted where is your servers located? Asia,america,europe,oceania or Africa, here is the choice server/vps on which continent, is generally the United States VPS, Direct return to the line, if it is China, enter Asia, return. If the input has an error, you can press and hold CTRL and then press BACKSPACE to delete, which can be removed by this method. )
This step requires you to set the root password for MySQL and enter it after entering into the next step, as shown in:
Here you need to confirm whether to enable MySQL InnoDB, if you are not sure whether you can enter Y, this can be closed in the MySQL file alone, input y is enabled, input n means not enabled. Enter Y or N to enter the next step, displaying the following information:
This step is to choose PHP version, you can choose PHP 5.3.28 or PHP 5.2.17, if you need to install PHP 5.3.28 input y, if you need to install PHP 5.2.17 input n, enter Y or n after the return, go to the next MySQL version of the choice, such as:
You can choose MySQL version 5.1.73, 5.5.37 or mariadb 5.5.37, if you need to install MySQL 5.5.37 words input y, if you need to install MySQL 5.1.73 input n, if you need to install MARIADB 5.5.37 input MD, Enter when you are finished, and complete the selection.
Prompt "Press any key to start ..." and enter confirm to start the installation.
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 following interface is displayed:
Nginx, MySQL, PHP are both running,80 and port 3306 exist, indicating that the installation was successful.
Next press the add Virtual Host Tutorial , add a virtual host, through the SFTP or FTP server upload website, the domain name resolution to the VPS or server IP, the resolution is valid to use.
4. Installation failure
If a similar prompt appears, the installation fails, stating that no installation was successful!! You will need to download the lnmp-install.log below the/root directory with WINSCP or other similar tools to the LNMP Support forum post to indicate your release name version number (available via cat/etc/issue), 32-bit or 64-bit, 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.
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/Add-ons.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
LNMP One-click Installation