赞
踩
systemctl enable neo4j
报错:
systemctl daemon-reload
按照文档说明继续执行
systemctl enable neo4j
接着启动
systemctl start neo4j
systemctl status neo4j查看服务状态发现抱错
于是在neo4j安装目录下到处翻,看是哪个文件报的这个错,终于在/opt/neo4j/bin/neo4j中找到了
很明显这里找不到java的环境变量,但我不管是在终端中输出java版本还是java_home都是有结果的
经过朋友指点,问题只可能出在脚本本身没有加载/etc/profile,于是在脚本开头加上export /etc/profile,问题解决
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。