Actual deployment of LNMP architecture (with LNMP source code package and CRUD test Web site)

1. Introduction to LNMP architecture

In the installation software configuration section of installing the operating system, it is recommended to select "Server with GUI", and select the two additional software "Development Tools" and "Compatibility Libraries". Make sure that compilers such as gcc, libgcc, and gcc-c++ have been installed correctly.

LNMP is a group of well-known Web site server architecture environments, that is, a high-performance, lightweight, stable, and scalable Web site server architecture environment composed of Linux+Nginx+MySQL+PHP (MySQL sometimes refers to Mariadb).

Nginx ("engine x") is a lightweight, high-performance HTTP and reverse proxy server, load balancing server. The official website of Nginx is nginx.org, and the latest stable version of Nginx is Nginx1.13.9.

MySQL is divided into community edition and commercial edition. The latest version is MySQL8.0.3, which is still in the development stage. If you want to apply it in the production environment, you can use the latest stable version MySQL5.7.20.

PHP is a scripting language with the most users, the fastest operation, and the easiest way to get started. The latest stable version is PHP7.1.14.

2. Compile and install Nginx from source code

Nginx can be installed through source code or yum. According to the online environment operation and maintenance deployment experience, it is recommended to use source code for installation.

Dependency installation:

[root@centos ~]# yum -y install zlib pcre pcre-devel openssl openssl-devel

Create nginx user www:

[root&#

Guess you like

Origin blog.csdn.net/qq_35029061/article/details/132179596