These days a company the next day to the demand, let me modify a backend written in PHP a big brother official website, although modified content is very simple, but after all, no contact before or PHP, then began a long the climb pit tour, did not talk much to say, this gave me introduce you to configure during the installation of the three services now.
First of all, I think as a white, if you're just beginning to learn the back-end development, or simply to start some services are not ready to understand these words, here is a key to recommend wamp installation services, as long as Download well wamp after that, he will automatically configure the environment for everyone, see below to download.
1) First, open wamp's official website , the home page we can see the page shown below, click on download
2) when you download here, suggest that you use the new version of Thunder x to download, because the browser downloads is still relatively slow, time-consuming estimates will be very long, but the Thunder x provides Google extensions, you do not he needs to be left open, he only needs to jump out when in use.
Note: There is a point of note is that we need to run our project will put at www directory, wamp default root directory is the directory www
So let's talk about nginx + mysql + php way to set up the environment
A, nginx download and environmental structures
1) nginx can download directly nginx official website , as shown below, direct download version 1.17.5 on it
2) After downloading we need to change the nginx configuration, open nginx installation directory, as I find the directory C: \ nginx-1.17.5 \ conf \ nginx.conf, with an editor to open this file, where we need modify the configuration information under the nginx.
There is little, do pay attention to the second location is not what I said this yo, because there are several location in the inside
Two, PHP download and install
First we go to download PHP installation package, you can choose to go to the official website to download , or if we have previously installed wamp, we can directly use his inside PHP files downloaded
Three, MySQL download and install
First, we need a MySQL installation package, the installation configuration tutorial can refer to this blog mysql, mysql installation tutorial .
Fourth, start the service
After more than three software installed, we can begin to start the service, following these steps I'll start to do some software list.
1) Start nginx: nginx into the directory, start nginx, will find that flash back window, and then execute nginx -s reload, this time to the task manager which can be found nginx start up
2) Start php, php into your directory, execute php-cgi.exe -b 127.0.0.1:9000 -cc / wamp64 / bin / php / php7.3.5 / php.ini
3) Start mysql, mysql into the bin directory under the directory, enter the command line, execute net start mysql, and then execute mysql -uroot -p, enter the password, and then start the associated database just fine.
Note: If the database can not start, then you may need administrator privileges to start cmd, and then run the above command
V. Summary
After the above steps, we will initially set up a build nginx + php + mysql server environment, of course, I'm sure there are more places to learn and pay attention, but I just started his view of the back end, there inadequacies also hope a lot of correction.