大佬们好,现在在学习nginx但是80端口被占用怎么解决?
Tofloor
poster avatar
liaoyi
deepin
2018-10-25 08:17
Author
查询80端口占用情况,但是显示占用的程序pid为-,这个怎么解决?
Reply Favorite View the author
All Replies
avatar
Dracarys
deepin
2018-10-25 15:23
#1
本帖最后由 gaoyanglion 于 2018-10-25 07:25 编辑

加sudo再查看一下,应该能看到pid

或者,编辑   \conf\nginx.conf,将80改成不冲突的
Reply View the author
avatar
qiuyunbest
deepin
2018-10-25 16:44
#2
应该是安装php的时候默认安装了Apache,试试sudo service stop apache2再开启nginx
Reply View the author
avatar
liaoyi
deepin
2018-10-25 18:39
#3
https://bbs.deepin.org/post/170193
加sudo再查看一下,应该能看到pid

或者,编辑   \conf\nginx.conf,将80改成不冲突的

嗯嗯,好的。我下班了回去试试。谢谢
Reply View the author
avatar
liaoyi
deepin
2018-10-25 18:39
#4
https://bbs.deepin.org/post/170193
应该是安装php的时候默认安装了Apache,试试sudo service stop apache2再开启nginx

嗯嗯,好的。谢谢。完善回去了就试试
Reply View the author