pwd命令复制JAVA和neo4j的安装路径
vim ~/.zshrc
按i选择插入:
export JAVA_HOME=/home/jbx/jbx/jdk-11.0.22
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=.:${JAVA_HOME}/bin:$PATH
NEO4J_HOME=/home/jbx/jbx/neo4j-community-4.1.4
PATH=$PATH:$NEO4J_HOME/bin
export NEO4J_HOME PATH
最后生效
source ~/.zshrc
自己查看是否成果