linux下注册tomcat的服务
1.在/etc/rc.d/init.d中建脚本tomcatd.
chmod +x tomcatd
2.chkconfig --add tomcatd就可以用service tomcatd start/stop/rstart了
附:脚本(我也是抄的,呵呵)
[code="ruby"]
#!/bin/sh
#
# Startup script for Tomcat, the Apache...
原创
2012-03-14 12:02:14 ·
82 阅读 ·
0 评论