ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 在Ubuntu安装Tomcat7.0及开机自动运行

在Ubuntu安装Tomcat7.0及开机自动运行

Linux操作系统 作者:dxm2025 时间:2015-01-23 15:14:21 0 删除 编辑

在Ubuntu安装Tomcat7.0及开机自动运行

1.安装装Tomcat7.0

一般都是绿色版的,下载一个tomcat7.0解开到指定的目录上即可

然后进入tomcat目录的bin文件夹,执行 sudo ./startup.sh即可完成启动

2.开机自动运行tomcat7.0 

用Root权限进入,进入并修改/etc/rc.local

如下:

#!/bin/sh -e

#

# rc.local

#

# This script is executed at the end of each multiuser runlevel.

# Make sure that the script will "exit 0" on success or any other

# value on error.

#

# In order to enable or disable this script just change the execution

# bits.

#

# By default this script does nothing.

/media/D/Tools/tomcat7.0/bin/startup.sh

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  (红色)

exit 0

注:红色的是你开机要启动的项目

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30015039/viewspace-1412196/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-11-09

  • 博文量
    169
  • 访问量
    233177