mac

2020-05-30  本文已影响0人  A徐小帅

常用软件

osascript

Mac使用命令行退出应用程序:
osascript -e 'quit app "WeChat.app"'

java

安装

jdk华为源

查看 java 安装路径

cd /Library/Java/JavaVirtualMachines/
----------------------------------------------------------------------------------------------------------
drwxr-xr-x  3 root  wheel    96B  4  9 10:17 jdk-10.0.2.jdk
drwxr-xr-x  3 root  wheel    96B  4  9 10:15 jdk-11.jdk
drwxr-xr-x  3 root  wheel    96B  4  9 10:22 jdk-12.jdk
drwxr-xr-x  3 root  wheel    96B  4  9 10:23 jdk-13.jdk
drwxr-xr-x  3 root  wheel    96B  4  9 10:15 jdk-14.jdk
drwxr-xr-x  3 root  wheel    96B  4  9 10:19 jdk-9.0.1.jdk
drwxr-xr-x  3 root  wheel    96B  1  3 10:49 jdk1.8.0_231.jdk

临时切换java版本

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
java -version
----------------------------------------------------------------------------------------------------------
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)

永久切换java版本

echo 'export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/' >> ~/.bash_profile
source ~/.bash_profile

IDEA

理解IDEA项目配置

上一篇 下一篇

猜你喜欢

热点阅读