标签:应用 轻量 cto file roo nec red port 启动
tomcat 服务器是一个免费的开放源代码的 web 应用服务器,属于轻量级应用服务器,在中小型系统和并发访问用户不是很多的场合下被普遍使用,是开发和调试jsp 程序的首选。tomcat 是 apache 服务器的扩展,但运行时是独立运行的,故当运行 tomcat 时,它实际上是作为一个与 apache 独立的进程单独运行的。
下载地址:https://www.oracle.com/technetwork/java/javase/downloads/index.html
# mv jdk1.7.0_25/ /usr/local/
# vim /etc/profile export JAVA_HOME=/usr/local/jdk1.7 export TOMCAT_HOME=/usr/local/tomcat export PATH=$PATH:$JAVA_HOME/bin:$TOMCAT_HOME/bin
# source /etc/profile
# java -version
下载地址:https://tomcat.apache.org/
# cp -a apache-tomcat-7.0.42 /usr/local/
# vim /etc/profile export JAVA_HOME=/usr/local/jdk1.7 export TOMCAT_HOME=/usr/local/tomcat export PATH=$PATH:$JAVA_HOME/bin:$TOMCAT_HOME/bin # source /etc/profile
# chmod +x /usr/local/tomcat/bin/*
# /usr/local/tomcat/bin/catalina.sh start # netstat -antp
http://ip:8080
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="" docBase="test.war" debug="0" privileged="true"/>
# cp -a test.war /usr/local/tomcat/webapps/
# rm -rf ROOT
# /usr/local/tomcat/bin/catalina.sh stop # /usr/local/tomcat/bin/catalina.sh start
# /usr/local/tomcat/bin/catalina.sh stop
# cp -a tomcat tomcat-a # rm -rf tomcat-a/logs/*
[root@localhost /usr/local/tomcat-a/conf]# vim server.xml <Server port="8006" shutdown="SHUTDOWN"> <Connector port="8090" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
在第一行均加入:
export CATALINA_HOME=/usr/local/tomcat-a
# /usr/local/tomcat/bin/catalina.sh start # /usr/local/tomcat-a/bin/catalina.sh start # netstat -antp
http://ip:8080
http://ip:8090
标签:应用 轻量 cto file roo nec red port 启动
原文地址:https://www.cnblogs.com/sswind/p/12144047.html