Linux中安装Tomcat6手记

本文详细介绍了如何在服务器上安装Tomcat6,包括确保已安装JDK、下载并解压Tomcat压缩包、配置环境变量及启动Tomcat等步骤。

安装步骤:

Ø 安装tomcat前先要保证安装了JDK,可以用命令查看是否安装了JDK

[root@wxr webapps]# java -version

java version "1.6.0_19"

Java(TM) SE Runtime Environment (build 1.6.0_19-b04)

Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)

Ø 下载Tomcat6的压缩包,文件名为:apache-tomcat-6.0.26.tar.gz

Ø /usr/local目录下解压此压缩文件:

[root@wxr local]# tar xzvf apache-tomcat-6.0.26.tar.gz

之后生成一个名为“apache-tomcat-6.0.26”的文件夹, 安装的Tomcat目录。;

Ø 启动tomcat

cd /usr/local/ apache-tomcat-6.0.26/bin

[root@wxr bin]# ./startup.sh

注:可以把安装的tomcat文件夹改个名字或者做个备份为tomcat6

[root@wxr bin]# mv apache-tomcat-6.0.26 tomcat6

[root@wxr bin]# cp -r apache-tomcat-6.0.26 tomcat6

Ø tomcat添加环境变量:

[root@wxr ~]# more .bashrc

# .bashrc

# User specific aliases and functions

alias rm='rm -i'

alias cp='cp -i'

alias mv='mv -i'

# Source global definitions

if [ -f /etc/bashrc ]; then

. /etc/bashrc

fi

export JAVA_HOME=/usr/java/jdk1.6.0_19

export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib

export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOMR/bin

export TOMCAT_HOME=/usr/local/tomcat6

Ø 查看测试页:

在其他机器上如果能ping通安装了tomcat的服务器地址,就应该能访问tomcat的测试页了,如在ie中直接访问:http://192.168.2.254:8080

Ø The End…

The TPS54331 is a 28-V, 3-A non-synchronous buck Integrated 80 mΩ High Side MOSFET Supports up to 3A Continuous Output Current converter that integrates a low Rds(on) high side MOSFET. To increase efficiency at light loads, a pulse skipping Eco-mode™ feature is automatically High Efficiency at Light Loads with a Pulse activated. Furthermore, the 1 A shutdown supply Skipping Eco-mode™ current allows the device to be used in battery Fixed 570kHz Switching Frequency Typical 1A Shutdown Quiescent Current powered applications. Current mode control with internal slope compensation simplifies the external compensation calculations and reduces component Adjustable Slow Start Limits Inrush Currents count while allowing the use of ceramic output Programmable UVLO Threshold Overvoltage Transient Protection capacitors. A resistor divider programs the hysterisis of the input under-voltage lockout. An overvoltage transient protection circuit limits voltage overshoots Cycle by Cycle Current Limit, Frequency Fold during startup and transient conditions. A cycle by Back and Thermal Shutdown Protection cycle current limit scheme, frequency fold back and Available in Easy-to-Use SOIC8 Package Supported by SwitcherPro™ Software Tool (http://focus.ti.com/docs/toolsw/folders/print/s witcherpro.html) For SWIFT™ Documentation, See the TI Website at www.ti.com/swift thermal shutdown protect the device and the load in the event of an overload condition. The TPS54331 is available in an 8-pin SOIC package that has been internally optimized to improve thermal performance.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值