今天使用了 lsof -i:80
值得注意的一点是,root用户可以用lsof命令查到所有占用端口的进程,但普通用户不能查到root用户占用端口的进程。
此外,用systemctl stop firewalld关掉了防火墙。