After some twists and turns, the LNMP environment was finally built. The LNMP environment introduced in this article is built on a Centos VM in Oracle VM VirtualBox in Windows. Each software version is Centos7 + Nginx1.12.2 + mysql-5.6.38 + PHP7.2.0. This article is under the assumption that Centos7 virtual machine has been introduced under the premise of the installation is complete, if not yet installed, you can go to install Centos website to download the corresponding ios file, I download is this: mirrors.tuna.tsinghua.edu.cn/centos/7/is… , and then according to the online tutorial for installation, tutorial example: jingyan.baidu.com/article/9c6…

After installing the Centos7 virtual machine, you can start compiling and installing Nginx, Mysql and PHP.

 

First, before installation

1. Update system software:

yum update

2. Check whether wGET is installed: