Mac 关闭终端后,环境变量失效,每次都需source .bash_profile 问题.
解决方法:每次打开终端自己加载这个变量
vim .zshrc
source ~/.bash_profile
mvn -v
Mac关闭终端后,环境变量失效。
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:matlab学习
下一篇:3.1kubeadm集群安装
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
TCP关闭连接的方式tcp
-
Ubuntu 关闭终端
ctrl+d关闭终端
ctrl+d关闭终端 -
如何在Linux中使SpringBoot项目关闭终端后不关闭项目进程
编写一个shell脚本,名字是startup.sh#!/bin/shnohup java -jar /usr/Bean/FoodSyste
SpringBoot进程不关闭 jar java shell脚本