Chinaunix首页 | 论坛 | 博客
  • 博客访问: 318416
  • 博文数量: 173
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1060
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-09 16:23
文章分类

全部博文(173)

文章存档

2015年(66)

2014年(107)

我的朋友

分类: LINUX

2015-01-23 15:14:59

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

1.安装装Tomcat7.0

一般都是绿色版的,下载一个7.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/Too/tom7.0/bin/stup.sh

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

exit 0

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

 

  • 本文来自:
阅读(857) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~