linux – Ubuntu中使用/阻止的端口

前端之家收集整理的这篇文章主要介绍了linux – Ubuntu中使用/阻止的端口前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
启动Glassfish AS会告诉我端口4848被阻塞(或我配置的任何端口).但是没有使用检查端口.没有防火墙.
  1. root@ubuntu:~/glassfishv3/glassfish/bin# netstat -tlunp
  2. Active Internet connections (only servers)
  3. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
  4. tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2149/sshd
  5. tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2441/cupsd
  6. tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 2075/postgres
  7. tcp6 0 0 :::22 :::* LISTEN 2149/sshd
  8. tcp6 0 0 :::5432 :::* LISTEN 2075/postgres
  9. udp 0 0 0.0.0.0:68 0.0.0.0:* 2082/dhclient3
  10. udp 0 0 0.0.0.0:39256 0.0.0.0:* 2413/avahi-daemon:
  11. udp 0 0 0.0.0.0:5353 0.0.0.0:* 2413/avahi-daemon:

Ubuntu 9.04 Linux ubuntu 2.6.28-11-generic#42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU / Linux(它是一个虚拟服务器hough).

不太确定如何解决这个问题.

解决方法

缺少etc / hosts文件
  1. java.net.UnknownHostException: ubuntu: ubuntu
  2. at java.net.InetAddress.getLocalHost(InetAddress.java:1353)
  3. at com.sun.enterprise.util.net.NetUtils.getCanonicalHostName

原因很简单,有时候不应该寻找复杂的问题!

猜你在找的Linux相关文章