Mac配置Tomcat环境变量

touch ~/.bash_profile; // 将目录跳转到.bash_profile这个文件夹 
open -t ~/.bash_profile //打开.bash_profile文件 

这时候会弹出一个新的窗口输入

export PATH=$PATH:/Users/XXXXX/Applications/apache-tomcat-8.0.36/bin(Tomcat 路径)
sudo su 申请权限
startup.sh 启动tomacat
shutdown.sh 关闭

猜你喜欢

转载自blog.csdn.net/yulianlin/article/details/79434568
今日推荐