可以使用以下幾種方法來查看已經開啟的端口:
netstat -tuln
ss -tuln
lsof -i -P -n | grep LISTEN
這些命令將顯示當前系統上所有正在監聽的端口以及相應的進程信息。