Install and deploy Nginx tutorial in Windows environment

1. Install Nginx Tutorial

1. Official website download address: https://nginx.org/en/download.html

2. Download tutorial: select the Stable version to download to the local

 

3. After the download is complete, unzip it and put it in a local non-Chinese folder:

4. Start nginx: double-click nginx.exe, if the double-click does not pop up, it means that the port is occupied, please refer to step 6 

Or use the command line: enter start nginx

 

 5. Check whether the startup is successful: Enter in the browser: https://localhost, you can see the interface indicating that the startup is successful

6. Open nginx.conf under the conf folder to check the port occupancy:

(1) nginx uses port 80 by default

        

 (2) If the port is occupied, customize the port:

        

2. Deploy Nginx Tutorial

1. Put the packaged dist file into the html folder at the same level as nginx-1.22.0:

 2. Modify the server: modify the server in the nginx.conf file (that is, the address after deployment)

 Deployment step complete

Guess you like

Origin blog.csdn.net/m0_50298323/article/details/126784672