84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
I want to install nginx and let it use port 80, thank you!
sudo apachectl stopClose the apache server
lsof -i:80
Then kill 掉 Apache 任务对应的 pid
kill
pid
If lsof 输出太多,试试在后面加上 | grep -i 'apache'
lsof
| grep -i 'apache'
Guess, vi /etc/apache2/httpd.conf, modify listen 80 to listen 88.You don’t have to worry about restarting like this.
Look for the configuration file and modify port 80 of nginx or apache to another port.
sudo apachectl stop
Close the apache server
lsof -i:80
Then
kill
掉 Apache 任务对应的pid
If
lsof
输出太多,试试在后面加上| grep -i 'apache'
Guess, vi /etc/apache2/httpd.conf, modify listen 80 to listen 88.
You don’t have to worry about restarting like this.
Look for the configuration file and modify port 80 of nginx or apache to another port.