ubuntu下tomcat能不能象在Windows下显示一个控制台?

软件和网站开发以及相关技术探讨
回复
hugebrush
帖子: 94
注册时间: 2008-03-05 21:58

ubuntu下tomcat能不能象在Windows下显示一个控制台?

#1

帖子 hugebrush » 2008-05-25 19:43

ubuntu下,默认的启动tomcat没有控制台,不太方便调试程序。能不能设置tomcat象在windows下一样显示控制台?
头像
SuperWar3Fan
帖子: 1263
注册时间: 2006-05-20 6:25
来自: 山东淄博
联系:

#2

帖子 SuperWar3Fan » 2008-05-29 10:33

当前可以,安装一个控制台包。
hugebrush
帖子: 94
注册时间: 2008-03-05 21:58

#3

帖子 hugebrush » 2008-05-29 11:46

去哪里要这个控制台包?
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#4

帖子 yaoms » 2008-05-29 11:47

预先设好 JAVA_HOME CATALINA_HOME 等环境变量。

代码: 全选

$CATALINA_HOME/bin/catalina.sh run
不过我一般是 这样作 :

代码: 全选

$CATALINA_HOME/bin/startup.sh ; tailf $CATALINA_HOME/logs/catalina.out
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
hugebrush
帖子: 94
注册时间: 2008-03-05 21:58

#5

帖子 hugebrush » 2008-05-29 11:52

谢谢!
catalina.sh run、startup.sh启动的服务器功能上有差别吗?
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#6

帖子 yaoms » 2008-05-29 11:58

没区别,你看看 startup.sh 脚本的内容 ,就是调用的 catalina.sh
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
zhmtiger
帖子: 18
注册时间: 2007-09-04 15:37

#7

帖子 zhmtiger » 2008-06-07 23:34

最好的终极解决办法是安装myeclipse,在里面配置tomcat,这样启动关闭tomcat都在myEclipse中,控制台也在里面,非常方便的,一个ide编程环境全部搞定,resin,weblogic也可以在里面配,Eclipse非常强大的,基本上搞web开发有一个Eclipse就全搞定了,包括作页面,因为现在都是手写div+css了,dreamwaver已经可以淘汰了,再说ubuntu下也没有dreamwaver,不好意思有点跑题了,不过我的ubuntu8.04+tomcat6.0+apache2+php5+mysql+oracle10+resin+struts就是全在eclipse中,完全没有问题!
morningboat
帖子: 179
注册时间: 2006-06-09 20:31

#8

帖子 morningboat » 2008-06-27 6:44

These two have no difference on their functionality. If I remember correctly, the only difference is that catalina.sh run does not open a new fork so that the output is shown on the same console, while startup forks a new thread and you will see nothing.
回复