mac升级到bigsur后,nacos中startup.sh启动失败,日志显示
nohup: /Library/Internet: No such file or directory
mac自带了一个jdk,在.bash_profile声明自己安装的jdk的JAVA_HOME
- vi ~/.bash_profile
//注意自己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 生效