mac下搭建tomcat环境

时间:2021-08-11 15:59:21

tomcat安装

1. 下载tomcat  http://tomcat.apache.org/download-70.cgi

mac下搭建tomcat环境


2. 安装JAVA的JDK环境

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

mac下搭建tomcat环境


3. 启动tomcat

(1)将下载下来的tomcat解压到/usr/local/tomcat目录下

(2).然后切换到/usr/local/tomcat/bin这个当前目录下:cd /usr/local/tomcat/bin

( 3)启动tomcat :sudo sh startup.sh 

  (4)   关闭tomcat: sudo sh shutdown.sh


mac下搭建tomcat环境


4.验证tomcat,是否已经启动

在浏览器中输入http://localhost:8080/

出来如下界面就证明tomcat安装成功了

mac下搭建tomcat环境