As shown in the figure: Check port usage: View the process occupying the port: From the results, we can see that port 80 is occupied by Nginx itself. You can kill the process and restart Nginx. After successfully killing the process, start Nginx Start Nginx successfully. Enter the IP address of the system where Nginx is located in the browser to verify whether Nginx is started successfully. The following describes how to start, stop, and restart Nginx. start up Startup code format: nginx installation directory address -c nginx configuration file address For example: [root@LinuxServer sbin]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf stop There are three ways to stop nginx: Stop calmly 1. Check the process number [root@LinuxServer ~]# ps -ef|grep nginx 2. Kill the process [root@LinuxServer ~]# kill -QUIT 2072 Quick Stop 1. Check the process number [root@LinuxServer ~]# ps -ef|grep nginx 2. Kill the process [root@LinuxServer ~]# kill -TERM 2132 or [root@LinuxServer ~]# kill -INT 2132 Force Stop [root@LinuxServer ~]# pkill -9 nginx Restart 1. Verify whether the nginx configuration file is correct Method 1: Enter the nginx installation directory sbin and enter the command ./nginx -t The following shows that nginx.conf syntax is ok This indicates that the configuration file is correct! Method 2: Add -t before the startup command -c 2. Restart Nginx service Method 1: Enter the nginx executable directory sbin and enter the command ./nginx -s reload Method 2: Find the current nginx process number, and then enter the command: kill -HUP process number to restart the nginx service Summarize The above is what I introduced to you about the prompt that the port is occupied when starting Nginx: Address already in use. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Implementation of vscode custom vue template
>>: MySql 5.6.35 winx64 installation detailed tutorial
Table of contents First method App.vue Home.vue H...
Introduction EXISTS is used to check whether a su...
Click here to return to the 123WORDPRESS.COM HTML ...
Don't be surprised if you see some kind of und...
Download opencv.zip Install the dependencies ahea...
Table of contents 1. Phenomenon 2. Solution 3. Su...
1. this.$router.push() 1. Vue <template> &l...
1. Each function is an object and occupies memory...
Readonly and Disabled both prevent users from cha...
Table of contents Overview Functionality and read...
In some interview experiences, you can often see ...
Table of contents 01 Common Faults 1 02 Common Fa...
Preface As we all know, the nginx configuration f...
1. System environment The system version after yu...
Preface: When we use Vue, we often use and write ...