第一次删除前一个版本后安装了neo4j 2.2.1。
service neo4j-service start
产生错误:
未能启动新4j-service.service:单元new4j-service.service加载失败:没有这样的文件或目录.
系统是:
系统: os => {"name"=>"Ubuntu“、”=>“=>”Debian“、”=>{主要“”=>“15.04”、“=>”15.04}、“lsb”=>{“distcodename”=>“生动”、“distid”“=>”“Ubuntu”、“distdescription”“=>”Ubuntu 15.04、“distrelease”“=>”15.04、“distdescription”“=>”15.04}}
安装脚本的输出:
root@cb-8:~# aptitude install neo4j -y # Install Neo4j, community edition
The following NEW packages will be installed:
daemon{a} neo4j
0 packages upgraded, 2 newly installed, 0 to remove and 0 not to upgrade.
Need to get 0 B/53.2 MB of archives. After unpacking 62.4 MB will be used.
Selecting previously unselected package daemon.
(Reading database ... 183856 files and directories currently installed.)
Preparing to unpack .../daemon_0.6.4-1_amd64.deb ...
Unpacking daemon (0.6.4-1) ...
Selecting previously unselected package neo4j.
Preparing to unpack .../archives/neo4j_2.2.1_all.deb ...
Unpacking neo4j (2.2.1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (219-7ubuntu3) ...
Setting up daemon (0.6.4-1) ...
Setting up neo4j (2.2.1) ...
update-rc.d: error: initscript does not exist: /etc/init.d/neo4j-service
dpkg: error processing package neo4j (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
neo4j
E: Sub-process /usr/bin/dpkg returned an error code (1)
Failed to perform requested operation on package. Trying to recover:
Setting up neo4j (2.2.1) ...
update-rc.d: error: initscript does not exist: /etc/init.d/neo4j-service
dpkg: error processing package neo4j (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
neo4j
root@cb-8:~# service neo4j-service status
● neo4j-service.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
/etc/init.d/ne4j-服务确实存在。
lrwxrwxrwx 1 root root 36 Mar 5 17:28 /etc/init.d/neo4j-service -> /opt/neo4j-community-2.1.7/bin/neo4j
我没有什么想法,希望有人能给我指明正确的方向。
罗斯
发布于 2015-04-25 09:26:29
问题解决了。2.2.1仍以某种方式与2.1.7挂钩。删除虚假链接,这一切都成功了。
发布于 2017-11-02 05:31:38
我也犯了同样的错误。但是,如果安装更新版本(在我的例子中是3.3.0)的neo4j
,语法是不同的。它应该是:
service neo4j start
不
service neo4j-service start
要再次检查,您可以:
ls /etc/init.d | grep neo4j
在我的例子中,它找到了neo4j
https://stackoverflow.com/questions/29841776
复制相似问题