首页 技术 正文
技术 2022年11月19日
0 收藏 966 点赞 4,307 浏览 610 个字

下载tamcet

官网 http://tomcat.apache.org/

左侧选择版本

部署和调优  2.4 tomcat安装

复制下载链接

部署和调优  2.4 tomcat安装

切换到下载目录

cd /usr/local/src

linux wget

wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.67/bin/apache-tomcat-7.0.67.tar.gz

解压

tar zxvf apache-tomcat-7.0..tar.gz

移动

mv apache-tomcat-7.0. /usr/local/tomcat

把启动脚本拷贝到另一个位置下

cp -v /usr/local/tomcat/bin/catalina.sh /etc/init.d/tomcat

想设置开机启动

修改配置文件。在#!/bin/sh 下面添加一段

#chkconfig:
. /etc/init.d/functions
JAVA_HOME=/usr/local/jdk1..0_65
CATALINA_HOME=/usr/local/tomcat

把它加到系统服务的列表

chmod  /etc/init.d/tomcat
chkconfig --add tomcat

然后启动

chkconfig tomcat on

启动tomcat,重启只能先stop 然后start

/etc/init.d/tomcat start

查看是否进程

ps aux |grep tomcat

访问

在浏览器里输入 192.168.1.117:8080

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,077
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,552
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,401
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,176
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,813
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,896