命令一
使用命令lsof查看端口占用情況
lsof -i[:端口號]
例:lsof -i:8081
佔用結果:打印出進程與端口信息
未佔用結果:什麼也不打印
命令二
netstat -anp | grep 80