LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1063|回复: 7

JSP + TOMCAT

[复制链接]
发表于 2004-2-1 00:09:19 | 显示全部楼层 |阅读模式
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-5.0.16
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-5.0.16
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-5.0.16/temp
Using JAVA_HOME:       /usr/java/jdk1.3.1_10

[root@localhost local]# telnet localhost 8080
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

#cat /etc/services
webcache        8080/tcp                        # WWW caching service
webcache        8080/udp                        # WWW caching service


-----
JSP 是否在 port 8080 啟動???
如何啟動port 8080???
发表于 2004-2-1 00:13:55 | 显示全部楼层
tomcat的port是在8080
记得是telnet 127.0.0.1:8080........:ask
 楼主| 发表于 2004-2-2 13:49:45 | 显示全部楼层
[root@localhost /]# telnet 127.0.0.1 8080
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

--
same result??
How to open port 8080
发表于 2004-2-4 15:29:18 | 显示全部楼层

?????

tomcat 提供telnet服务?
发表于 2004-2-4 21:07:12 | 显示全部楼层
http是可以telnet的,不信找个网站试试.......
发表于 2004-2-4 21:36:30 | 显示全部楼层

~__~ 我指的不是这样啊。

为什么正确要用telnet来确认tomcat已经正常工作呢?
 楼主| 发表于 2004-2-5 13:48:06 | 显示全部楼层
telnet 可以測試下 port 是不是啟動了....
如果port 沒有開, 網頁就不能有效,
例如 port 80 指 web server
port 21 指 ftp server
 楼主| 发表于 2004-2-5 13:50:55 | 显示全部楼层
telnet localhost 21
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 localhost.localdomain FTP server (Version wu-2.6.2-8) ready.

----
telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表