Zookeeper启动Permission denied

Zookeeper 查询状态,出现如下问题:

JMX enabled by default

Using config: /usr/zookeeper/zookeeper-3.4.5/bin/../conf/zoo.cfg

mkdir: cannot create directory `.‘: Permission denied

Mode: leader

而且运行 zkServer.sh start

同样出现如下问题:?

JMX enabled by default

Using config: /usr/zookeeper/zookeeper-3.4.5/bin/../conf/zoo.cfg

mkdir: cannot create directory `.‘: Permission denied

Starting zookeeper ... /usr/zookeeper/zookeeper-3.4.5/bin/zkServer.sh: line 109: ./zookeeper.out: Permission denied

STARTED

从上述问题描述,可以看出都是权限问题。在第二个提示中,找到第109行。发现如下:

 109     nohup $JAVA "-Dzookeeper.log.dir=${ZOO_LOG_DIR}" "-Dzookeeper.root.logger=${ZOO_LOG4J_PROP}" \

?所以,怀疑是这里有问题。并且,echo ${ZOO_LOG_DIR} ,也没有任何值。

所以,在此,手动设置:

在bin/zkEnv.sh 中修改:?

if [ "x${ZOO_LOG_DIR}" = "x" ]

then

    ZOO_LOG_DIR="/home/hdp/zk"

fi

source zkEnv.sh?

或者在启动的时候直接进入/home/hdp/zk/bin 下run(这种方式更好)

zkServer.sh start
时间: 2024-12-10 11:08:20

Zookeeper启动Permission denied的相关文章

解决mongodb服务启动 Permission denied:exception in ...

解决mongodb服务启动报错:exception in initAndListen: 98 Unable to create/open lock file: /var/lib/mongodb/mongod.lock errno:13 Permission denied is a mongod instance already running? mongodb服务启动不成功,通过查看日志文件,命令: [Shell] 纯文本查看 复制代码 ? 1 sudo gedit /var/log/mongo

tomcat启动报错:java.net.BindException: Permission denied <null>:80

1,启动报错显示 [org.springframework.web.servlet.DispatcherServlet]FrameworkServlet 'springMvc': initialization completed in 382 ms Jun 01, 2015 6:39:06 PM org.apache.coyote.http11.Http11Protocol start SEVERE: Error starting endpoint java.net.BindException:

http启动时提示如下错误Permission denied

apache配置了多端口,启动时提示如下错误,原因是selinux开启导致 [[email protected] conf]# /etc/init.d/httpd start Starting httpd: [Tue Dec 20 11:34:44 2016] [warn] NameVirtualHost *:80 has no VirtualHosts (13)Permission denied: make_sock: could not bind to address [::]:8001 (

Starting nginx: nginx: [emerg] bind() to 0.0.0.0:8088 failed (13: Permission denied) nginx 启动失败

Starting nginx: nginx: [emerg] bind() to 0.0.0.0:8088 failed (13: Permission denied) nginx 启动失败,日志里面报错信息如下: Starting nginx: nginx: [emerg] bind() to 0.0.0.0:8088 failed (13: Permission denied) 权限拒绝,经检查发现是开启selinux 导致的. 直接关闭 getenforce   这个命令可以查看当前是否开

httpd 启动报错“”Permission denied: make_sock: could not bind to address [::]:80“”

今天闲来无事复习一下普通用户httpd源码的安装,安装过程不赘述,在启动过程中提示错误 [[email protected] bin]$ ./httpd -k start httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.56.115 for ServerName (13)Permission denied: make_sock: could not bind t

解决mac os x下 tomcat启动报 java.net.BindException: Permission denied <null>:80 错误

我在mac os x上启动tomcat的时候,报 java.net.BindException: Permission denied <null>:80,java.net.BindException: Permission denied <null>:443错误,443时因为我要弃用ssl服务. Mac OS X 因为要绑定1024以下的端口需要ROOT权限, 但是如果用root权限启动eclipse或tomcat又会造成, 启动创建的各类文件是root的,普通用户无法删除. 为此

Tomcat 启动报错 java.net.BindException: Permission denied :80

Tomcat一启动就报如下错误: Caused by: java.net.BindException: Permission denied <null>:80 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:410) at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:640) at org.apache.coyote.

CentOS 7 虚拟机启动出现 Permission denied

OS:CentOS 7 在CentOS 7 下使用virt-manager增加虚拟机,配置成功后,启动虚拟机时,出现一下提示: qemu-kvm: -drive file=/var/lib/libvirt/images/AloeCCnode_v2.1.qcow2,if=none,id=drive-ide0-0-0,format=qcow2: could not open disk image /var/lib/libvirt/images/AloeCCnode_v2.1.qcow2: Could

Linux启动ftp服务器530 Permission denied解决方法

 Linux启动ftp服务器530 Permission denied解决方法重新在虚拟机下安装了linux.现在我想启动linux自带的ftp服务器:#service  vsftpd  start .如果想linux启动是自动启动ftp服务器:#chkconfig  vsftpd  on  . 运行putty,以root身份进入,出现了报错  530 Permission denied  ,感觉很奇怪,因以普通用户是可以进入的. 原因是我们 /etc/vsftpd/ftpusers  和  /