Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在运行带有 csf 防火墙的 CentOS 5。我正在运行一个无法连接到另一台服务器的程序(使用一些我认为被 csf 阻止的端口)。“端口”的日志文件在哪里?
Netstat是用于获取端口和网络活动的命令。为了诊断我通常使用的服务器进程:
netstat -tln
这会在tcp模式监听中产生端口号。要识别关联的进程,您还可以使用 -p 来获取pid。这是 IANA端口列表。
在搜索了更多线程后,我立即找到了答案。
# tail -f /var/log/messages
显示 UDP 消息但不显示端口.... 嗯....