Because the company asked me to build a WebService server for the Ford project based on nginx to implement the load, I started to use nginx. Here I will share the installation of nginx My local environment: win10-64 bit. 1. Download the corresponding installation package from the nginx official website, http://nginx.org/en/download.html; Download and decompress it, and put the decompressed files in the directory of your choice. My decompressed files are placed in the root directory of drive D, as shown below: Enter the cmd window of the window, enter the command as shown in the figure below, enter the nginx directory (D:/nginx-1.8.1), and use "start nginx.exe" to install nginx, as shown in the figure below: After successful installation, you will see the "nginx.exe" process in the "Task Manager", as shown in the following figure: Enter 127.0.0.1 in the browser address bar, and you will see the nginx welcome interface as shown below If you find that there is no process, it means that your installation failed. You can check the error in the logs folder in your D:\nginx-1.8.1 directory. If you find that it says: This means that your port 80 is occupied, or you can enter the DOS system and execute the following command: netstat -aon | findstr :80 to check whether port 80 is occupied. If so, you need to modify the registry as follows: 1. Open the registry: regedit 2. Find: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP 3. Find a REG_DWORD type item Start and change it to 0 4. Restart the system, the System process will not occupy port 80 At this point, you can execute Corresponding command: start nginx.exe command. nginx.exe -s stop //Stop nginx nginx.exe -s reload //Reload nginx nginx.exe -s quit //Exit nginx Note: In the above commands, .exe can be removed The operation of the corresponding command is shown in the figure below: 2. nginx configuration file The nginx configuration file is nginx.conf. The corresponding operations are shown in the figure below: Nginx configuration file analysis: https://www.jb51.net/article/103968.htm The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Using better-scroll component in Vue to realize horizontal scrolling function
>>: Mysql dynamically updates the database script example explanation
undefined In JavaScript, if we want to determine ...
Note: The system is Ubuntu 14.04LTS, a 32-bit ope...
Table of contents 1. Scenario description: 2. Cas...
In Linux systems, especially server systems, it i...
First create a directory cd /etc/nginx mkdir ssl ...
What is em? em refers to the font height, and the ...
In the field of design, there are different desig...
Table of contents Preface Introduction to QueryCa...
Problem Description When filter attribute is used...
Core SQL statements MySQL query statement that do...
The blogger hasn't used MySQL for a month or ...
KILL [CONNECTION | QUERY] processlist_id In MySQL...
background First of all, I would like to state th...
Now there are many WeChat public account operatio...
Preface <br />I have been working in the fro...