前提:下载配置jdk
一、下载Tomcat
https://link.csdn.net/?target=http%3A%2F%2Ftomcat.apache.org%2Fdownload-80.cgi
二、安装
1)通过工具xftp连接linux,创建一个Tomcat文件夹?,具体命令如下: 1:#cd usr/local/ mkdir myTomcat 2: 上传tomcat到myTomcat
2)将上传的Tomcat8.0解压:?tar -zxv -f apache-tomcat-8.5.37.tar.gz ? 3)解析完成后即可以启动Tomcat,检查是否安装成功,比如: #cd?/usr/local/myTomcat/apache-tomcat-8.0.39/bin
? ? ? ? ? ? ? #./startup.sh
注:如果提示----./startup.sh启动时候提示权限不够时,如下: [root@CENTOS bin]# ./startup.sh -bash: ./startup.sh: 权限不够 [root@CENTOS bin]# chmod u+x *.sh
[root@CENTOS bin]# ./startup.sh Using CATALINA_BASE: ? /usr/local/myTomcat/apache-tomcat-8.0.39 Using CATALINA_HOME: ? /usr/local/myTomcat/apache-tomcat-8.0.39 Using CATALINA_TMPDIR: /usr/local/myTomcat/apache-tomcat-8.0.39/temp Using JRE_HOME: ? ? ? ?/home/soft/jdk1.8.0_301/jre Using CLASSPATH: ? ? ? /usr/local/myTomcat/apache-tomcat-8.0.39/bin/bootstrap.jar:/usr/local/myTomcat-8.0.39/bin/tomcat-juli.jar Tomcat started. ?(到这里Tomcat就启动成功了)
?
|