008--【Mac】安装tomcat

2021-09-07  本文已影响0人  糖纸疯了

1、写作背景

最近在使用servlet测试,需要在本地安装tomcat,记录安装过程


2、核心操作


3、具体操作

3.1)下载软件

前往官网下载: http://tomcat.apache.org/

3.2)安装软件

3.3)运行测试

chmod 755 bin/*.sh
./bin/startup.sh

3.4)配置环境变量

参考网址:https://blog.csdn.net/u014788838/article/details/87742126

①输入touch .bash_profile ( pico .bash_profile 也行)

②打开bash_profile,输入命令打开:open -e .bash_profile(nano .bash_profile亦可)

③输入Tomcat存储路径export PATH=$PATH:/Users/keso/Library/Tomcat8/bin (注意:此处路径是自己保存的 tomcat 存储路径)

④更新配置的环境变量,输入命令:source .bash_profile

⑤验证是否成功,终端中输入命令 $PATH


4、参考网址


上一篇 下一篇

猜你喜欢

热点阅读