- 列出TCP程序端口以及其进程
lsof -nP -iTCP -sTCP:LISTEN
- .bash_profile 配置
#set JAVA_HOME
export JAVA_HOME=`/usr/libexec/java_home`
export JAVA_HOME
#set MAVEN
M2_HOME=~/software/development/environment/apache-maven-3.5.0
export M2_HOME
PATH=$PATH:$JAVA_HOME/bin:$M2_HOME/bin
export PATH```
网友评论