我正在安装Neo4j服务器作为
Linux服务,但是当我安装它时,我得到以下消息:
/sbin/insserv: Permission denied
这是什么?我该怎么办?我用sudo运行一切.
更新 – 场景:
>我第一次正确安装它,但后来我将neo4j目录移动到另一个位置.
>现在还没有认识到neo4j服务.
>我通过从/etc/init.d中删除然后运行update-rc.d -f neo4j-service remove来手动删除了neo4j-service
>当我重新安装时说/ sbin / insserv没有这样的目录,所以我用谷歌搜索并做了这个:
ln -s /usr/lib / insserv / insserv / sbin / insserv
>现在当我重新安装它时 – 它说/ sbin / insserv:权限被拒绝
使用Ubuntu.
等/ sudoers文件:
# # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d
neo4j安装脚本的权限:
-rwxr-xr-x 1用户名username 15K Feb 27 09:38 neo4j
更新2:
当我在/ sbin上做一个ls -lah时:
lrwxrwxrwx 1 root root 16 5月15日20:29 insserv – > /usr/lib中/ insserv时
和/usr/lib上的ls -lah:
drwxr-xr-x 2 root root 4.0K Feb 14 03:37 insserv