8

我正在使用 linux mint xfce 版本,我的 localhost:80 被某个程序使用,但我不知道是哪一个,当我打开 Firefox 并访问 localhost:80 时,它说

有用!这是此服务器的默认网页。Web 服务器软件正在运行,但尚未添加任何内容。

我试过使用lsof -i @localhost:80,但它什么也没返回。

4

2 回答 2

11

netstat -anpt | grep :80作为 root 用户应该列出使用端口 80 的进程。关闭 Web 浏览器后,它可以帮助您识别进程。

于 2013-06-08T02:11:29.033 回答
2

尝试这个:

# fuser -n tcp 80      

从手册页:

-n SPACE, --namespace SPACE
      Select  a  different  name space.  The name spaces file (file names, 
      the default), udp (local UDP ports), and tcp (local TCP ports)
      are supported.  For ports, either the port number or the symbolic name can 
      be specified.  If there is no  ambiguity,  the  shortcut
      notation name/space (e.g. 80/tcp) can be used.
于 2013-06-08T02:12:01.223 回答