---
title: "Linux系统开机，tomcat自动启动"
author: "sunnylocus"
date: "2008-08-21T16:42:10Z"
tags: []
categories: ["操作系统"]
slug: "linux-tomcat"
draft: false
lastmod: "2008-08-21T16:42:10Z"
id: 231243
url: "https://sunnylocus.iteye.com/blog/231243"
---

修改配置文件，使tomcat自动启动

(假设tomcat的安装路径位于 /opt/apache-tomcat5.5.26目录下)

1. 在root根目录下，输入 vi /etc/profile
2. 在profile文件中加入下面几句话
3. cd /opt/apache-tomcat5.5.26/bin
4. chmod 777 *  // 把bin目录下的所有文件的权限设置最大，否则将不能运行
5. ./startup.sh
6. 保存退出