小编Jar*_*ver的帖子

在 arch linux 上 Neo4j 服务器启动时出错

我有一个 arch linux 设置并通过 arch 用户存储库 ( yaourt -S neo4j) 安装了 neo4j,并且我能够正常运行 Web 控制台(sudo neo4j console具有看似正常的输出和完整功能),但是当尝试启动服务器 ( sudo neo4j start) 时,我遇到如下错误信息:

\n\n
/usr/share/neo4j/bin/utils: line 345: [: -lt: unary operator expected\nUsing additional JVM arguments:  -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=/etc/neo4j/neo4j-server.properties -Djava.util.logging.config.file=/etc/neo4j/logging.properties -Dlog4j.configuration=file:/etc/neo4j/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled\nStarting Neo4j Server...cat: /run/neo4j/neo4j-service.pid: No such file or directory\nprocess []... waiting for server to be ready. Failed to start within 120 seconds.\nNeo4j Server may have failed to start, please check the logs.\nrm: cannot remove \xe2\x80\x98/run/neo4j/neo4j-service.pid\xe2\x80\x99: No such …
Run Code Online (Sandbox Code Playgroud)

linux su neo4j archlinux

5
推荐指数
1
解决办法
1418
查看次数

在Arch Linux上使用Systemd运行Neo4j时出错

我已经在我的arch linux设置上安装了neo4j,并且能够手动启动服务器(sudo neo4j start).但是,当我尝试使用它时systemctl start neo4j,我得到了

Job for neo4j.service failed. See 'systemctl status neo4j.service' and
'journalctl -xn' for details.
Run Code Online (Sandbox Code Playgroud)

错误消息中的任何建议都没有提供任何帮助.我有/usr/lib/systemd/system/neo4j.service:

[Unit]
Description=Neo4j

[Service]
User=root
Type=forking
ExecStart=/usr/bin/neo4j start
ExecStop=/usr/bin/neo4j stop
PIDFile=/run/neo4j/neo4j-service.pid
#LimitNOFILE=40000

[Install]
WantedBy=multi-user.target
Run Code Online (Sandbox Code Playgroud)

我尝试在neo4j和root之间更改用户,在尝试设置security/limits.conf中的限制之前,我最初没有注释掉LimitNOFILE(在正常启动时摆脱了文件编号错误).AUR中提到了此设置,但我无法使其正常工作.任何帮助表示赞赏!

neo4j archlinux systemd

2
推荐指数
1
解决办法
1868
查看次数

标签 统计

archlinux ×2

neo4j ×2

linux ×1

su ×1

systemd ×1