安装后成功信息:
Contains:
Sun Java System Application Server Platform Edition 8.1 2005Q1 UR1
J2SE 1.4.2
J2EE 1.4 SDK Samples 2005Q1 UR1
J2EE 1.4 API Documentation
file:///usr/SUNWappserver/docs/about.html
/usr/SUNWappserver/bin/asadmin start-domain domain1
http://localhost:4848
http://localhost:8088/samples/index.html
需修改的配置文件:
/etc/profile
加入:
export JAVA_HOME=/usr/SUNWappserver/jdk
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:.
export PATH=$PATH:$JAVA_HOME/bin
使新配置生效:
#source /etc/profile
******************************************************
# /usr/local/tomcat/bin/startup.sh
启动后的信息:
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JAVA_HOME: /usr/SUNWappserver/jdk
但是无法访问http://localhost:8080
什么原因呢?
14 个解决方案
#1
OS:redflag AS4.1
#2
1.检查防火墙
2.netstat -lnp检查开放的端口
3.有无其他程序占用了8080
2.netstat -lnp检查开放的端口
3.有无其他程序占用了8080
#3
系统重新装的
只装了j2eesdk和Tomcat
怎么知道别的程序占用了8080呢?
我猜也是8080被占了,可是http://localhost:8088/samples/index.html
我改过端口,并成功访问的.
只装了j2eesdk和Tomcat
怎么知道别的程序占用了8080呢?
我猜也是8080被占了,可是http://localhost:8088/samples/index.html
我改过端口,并成功访问的.
#4
[root@localhost root]# netstat -lnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:32970 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:33227 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:33132 0.0.0.0:* LISTEN 945/java
tcp 0 0 0.0.0.0:3820 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:33134 0.0.0.0:* LISTEN 945/java
tcp 0 0 0.0.0.0:8686 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:3920 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:4848 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 708/X
tcp 0 0 0.0.0.0:3700 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 582/sshd
tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:7676 0.0.0.0:* LISTEN 945/java
tcp 0 0 0.0.0.0:8189 0.0.0.0:* LISTEN 914/appserv
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 1229 708/X /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 1304 744/ssh-agent /tmp/ssh-RwGQC718/agent.718
unix 2 [ ACC ] STREAM LISTENING 1357 792/kdeinit: Runnin /tmp/ksocket-root/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING 1129 623/xfs /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 1361 795/kdeinit: dcopse /tmp/.ICE-unix/dcop795-1117702539
unix 2 [ ACC ] STREAM LISTENING 1463 805/artsd /tmp/mcop-root/localhost_localdomain-0325-429ec994
unix 2 [ ACC ] STREAM LISTENING 1388 798/kdeinit: klaunc /tmp/ksocket-root/klauncherpgkfHa.slave-socket
unix 2 [ ACC ] STREAM LISTENING 1527 821/kdeinit: ksmser /tmp/.ICE-unix/821
unix 2 [ ACC ] STREAM LISTENING 1564 824/usb_dock /tmp/dock-socket
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:32970 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:33227 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:33132 0.0.0.0:* LISTEN 945/java
tcp 0 0 0.0.0.0:3820 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:33134 0.0.0.0:* LISTEN 945/java
tcp 0 0 0.0.0.0:8686 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:3920 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:4848 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 708/X
tcp 0 0 0.0.0.0:3700 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 582/sshd
tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:7676 0.0.0.0:* LISTEN 945/java
tcp 0 0 0.0.0.0:8189 0.0.0.0:* LISTEN 914/appserv
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 1229 708/X /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 1304 744/ssh-agent /tmp/ssh-RwGQC718/agent.718
unix 2 [ ACC ] STREAM LISTENING 1357 792/kdeinit: Runnin /tmp/ksocket-root/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING 1129 623/xfs /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 1361 795/kdeinit: dcopse /tmp/.ICE-unix/dcop795-1117702539
unix 2 [ ACC ] STREAM LISTENING 1463 805/artsd /tmp/mcop-root/localhost_localdomain-0325-429ec994
unix 2 [ ACC ] STREAM LISTENING 1388 798/kdeinit: klaunc /tmp/ksocket-root/klauncherpgkfHa.slave-socket
unix 2 [ ACC ] STREAM LISTENING 1527 821/kdeinit: ksmser /tmp/.ICE-unix/821
unix 2 [ ACC ] STREAM LISTENING 1564 824/usb_dock /tmp/dock-socket
#5
8080并没有被占啊
#6
是否启动了服务器
iptables,检查一下,他最坏
iptables,检查一下,他最坏
#7
没有任何出错信息么
#8
127.0.0.1:8080
#9
打开浏览器
http://localhost:8080
报错:
无法联接服务器
http://localhost:8080
报错:
无法联接服务器
#10
救命啊
因为是装在本本上,网卡是BROADCOM 440X,没有驱动
没有IP
有影响吗?
因为是装在本本上,网卡是BROADCOM 440X,没有驱动
没有IP
有影响吗?
#11
127.0.0.1:8080
报错:
无法联接服务器
报错:
无法联接服务器
#12
http://127.0.0.1:8080
加http
加http
#13
还是不明白什么原因啊
加HTTP也不行
改装J2SE,没问题,可惜用不了SUN APP
加HTTP也不行
改装J2SE,没问题,可惜用不了SUN APP
#14
换个端口试试
#1
OS:redflag AS4.1
#2
1.检查防火墙
2.netstat -lnp检查开放的端口
3.有无其他程序占用了8080
2.netstat -lnp检查开放的端口
3.有无其他程序占用了8080
#3
系统重新装的
只装了j2eesdk和Tomcat
怎么知道别的程序占用了8080呢?
我猜也是8080被占了,可是http://localhost:8088/samples/index.html
我改过端口,并成功访问的.
只装了j2eesdk和Tomcat
怎么知道别的程序占用了8080呢?
我猜也是8080被占了,可是http://localhost:8088/samples/index.html
我改过端口,并成功访问的.
#4
[root@localhost root]# netstat -lnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:32970 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:33227 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:33132 0.0.0.0:* LISTEN 945/java
tcp 0 0 0.0.0.0:3820 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:33134 0.0.0.0:* LISTEN 945/java
tcp 0 0 0.0.0.0:8686 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:3920 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:4848 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 708/X
tcp 0 0 0.0.0.0:3700 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 582/sshd
tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:7676 0.0.0.0:* LISTEN 945/java
tcp 0 0 0.0.0.0:8189 0.0.0.0:* LISTEN 914/appserv
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 1229 708/X /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 1304 744/ssh-agent /tmp/ssh-RwGQC718/agent.718
unix 2 [ ACC ] STREAM LISTENING 1357 792/kdeinit: Runnin /tmp/ksocket-root/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING 1129 623/xfs /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 1361 795/kdeinit: dcopse /tmp/.ICE-unix/dcop795-1117702539
unix 2 [ ACC ] STREAM LISTENING 1463 805/artsd /tmp/mcop-root/localhost_localdomain-0325-429ec994
unix 2 [ ACC ] STREAM LISTENING 1388 798/kdeinit: klaunc /tmp/ksocket-root/klauncherpgkfHa.slave-socket
unix 2 [ ACC ] STREAM LISTENING 1527 821/kdeinit: ksmser /tmp/.ICE-unix/821
unix 2 [ ACC ] STREAM LISTENING 1564 824/usb_dock /tmp/dock-socket
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:32970 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:33227 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:33132 0.0.0.0:* LISTEN 945/java
tcp 0 0 0.0.0.0:3820 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:33134 0.0.0.0:* LISTEN 945/java
tcp 0 0 0.0.0.0:8686 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:3920 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:4848 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN 708/X
tcp 0 0 0.0.0.0:3700 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 582/sshd
tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN 914/appserv
tcp 0 0 0.0.0.0:7676 0.0.0.0:* LISTEN 945/java
tcp 0 0 0.0.0.0:8189 0.0.0.0:* LISTEN 914/appserv
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 1229 708/X /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 1304 744/ssh-agent /tmp/ssh-RwGQC718/agent.718
unix 2 [ ACC ] STREAM LISTENING 1357 792/kdeinit: Runnin /tmp/ksocket-root/kdeinit-:0
unix 2 [ ACC ] STREAM LISTENING 1129 623/xfs /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 1361 795/kdeinit: dcopse /tmp/.ICE-unix/dcop795-1117702539
unix 2 [ ACC ] STREAM LISTENING 1463 805/artsd /tmp/mcop-root/localhost_localdomain-0325-429ec994
unix 2 [ ACC ] STREAM LISTENING 1388 798/kdeinit: klaunc /tmp/ksocket-root/klauncherpgkfHa.slave-socket
unix 2 [ ACC ] STREAM LISTENING 1527 821/kdeinit: ksmser /tmp/.ICE-unix/821
unix 2 [ ACC ] STREAM LISTENING 1564 824/usb_dock /tmp/dock-socket
#5
8080并没有被占啊
#6
是否启动了服务器
iptables,检查一下,他最坏
iptables,检查一下,他最坏
#7
没有任何出错信息么
#8
127.0.0.1:8080
#9
打开浏览器
http://localhost:8080
报错:
无法联接服务器
http://localhost:8080
报错:
无法联接服务器
#10
救命啊
因为是装在本本上,网卡是BROADCOM 440X,没有驱动
没有IP
有影响吗?
因为是装在本本上,网卡是BROADCOM 440X,没有驱动
没有IP
有影响吗?
#11
127.0.0.1:8080
报错:
无法联接服务器
报错:
无法联接服务器
#12
http://127.0.0.1:8080
加http
加http
#13
还是不明白什么原因啊
加HTTP也不行
改装J2SE,没问题,可惜用不了SUN APP
加HTTP也不行
改装J2SE,没问题,可惜用不了SUN APP
#14
换个端口试试