For the system environment of the website server, Linux and Windows are mainly used. Since Linux is more secure than Windows, not to mention Dotcpp is a place to cultivate professional talents, so our tutorial abandons Windows and uses Linux system entirely.
LNMP is one of the most mainstream web environments at the moment. LNMP is the abbreviation of Linux system + nginx proxy service + Mysql database + PHP language.
No matter it is ubuntu, centos, redhat, etc. or any kind of Linux, it is applicable. This series of tutorials will take you step by step to install this environment and build a stable and efficient server.
First, you need to prepare a server and install the corresponding distribution. This tutorial uses ubuntu version 18.04. You can choose by yourself.
There are no strict requirements on the installation sequence, but generally Nginx is installed first and then PHP is installed, otherwise PHP will automatically install apache.
If each command is an ordinary user ($ is displayed in the terminal), you need to add the sudo command before the command.
If the installation fails at a certain stage, you can use the sudo apt-get autoremove command to uninstall and then reinstall.
This tutorial requires basic Linux operating commands and common sense, such as cd, vi and other basic file operations and system common sense.
The specific directories are as follows:
1. Ubuntu installation nginx graphic tutorial
2. Ubuntu installation php graphic tutorial
3. Ubuntu installation Mysql graphic tutorial