我在我的 arch linux 设置上安装了 neo4j,并且能够手动启动服务器(sudo neo4j start
)。但是,当我尝试使用systemctl start neo4j
,我得到
Job for neo4j.service failed. See 'systemctl status neo4j.service' and
'journalctl -xn' for details.
错误消息中的任何建议都没有提供任何帮助。我有/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
我尝试在 neo4j 和 root 之间更改用户,并且在我尝试在 security/limits.conf 中设置限制之前,我最初没有注释掉 LimitNOFILE(它在正常启动时消除了文件编号错误)。AUR 中提到了此设置,但我无法使其正常工作。任何帮助表示赞赏!