mac升级到bigsur后无法启动Nacos /Library/Internet: No such file or directory
作者:互联网
mac升级到bigsur后,nacos中startup.sh启动失败,日志显示
nohup: /Library/Internet: No such file or directory
mac自带了一个jdk,在.bash_profile声明自己安装的jdk的JAVA_HOME
- vi ~/.bash_profile
1 2 3 4 5 6 7 |
// 注意自己jdk位置
JAVA_HOME= /Library/Java/JavaVirtualMachines/jdk1 .8.0_131.jdk /Contents/Home
PATH=$JAVA_HOME /bin :$PATH:.
CLASSPATH=$JAVA_HOME /lib/tools .jar:$JAVA_HOME /lib/dt .jar:.
export JAVA_HOME
export PATH
export CLASSPATH
|
- 执行source ~/.bash_profile 生效
标签:profile,bigsur,JAVA,jdk,Nacos,PATH,export,Internet,HOME 来源: https://www.cnblogs.com/psy-sdudio/p/16310790.html