Not sure what happens, but it looks like your dubbo service is shutting
down. You should investigate why this process will shutdown if you don't
start it with root privilege.

[DubboShutdownHook] INFO  [org.apache.zookeeper.ZooKeeper] - Session:
> 0x16469b7714c0006 closed
>

-Ian.

On Thu, Jul 5, 2018 at 9:07 PM 封狼居胥 <[email protected]> wrote:

> 你好:
>     我的dubbo配置如下:
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans";
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>         xmlns:dubbo="http://code.alibabatech.com/schema/dubbo";
> xmlns:context="http://www.springframework.org/schema/context";
>         xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>         http://code.alibabatech.com/schema/dubbo
> http://code.alibabatech.com/schema/dubbo/dubbo.xsd
>         http://www.springframework.org/schema/context
> http://www.springframework.org/schema/context/spring-context-4.0.xsd";>
>
>
>     <dubbo:application name="xxx" organization="xxxxxx"/>
>
>
>     <dubbo:registry id="xxxxxx" protocol="zookeeper"
> address="${dubbo.registry.address}"/>
>
>
>     <dubbo:monitor protocol="registry"/>
>     <dubbo:provider port="21881" delay="-1" timeout="10000"
> host="${dubbo.provider.host}"/>
>     <dubbo:protocol name="dubbo" serialization="kryo"/>
>
>
>     <dubbo:annotation/>
>     <context:component-scan base-package="xxxxxxxxxxx">
>         <context:include-filter type="annotation"
> expression="com.alibaba.dubbo.config.annotation.Service"/>
>         <context:exclude-filter type="annotation"
> expression="org.springframework.stereotype.Controller"/>
>         <context:exclude-filter type="annotation"
> expression="org.springframework.web.bind.annotation.ControllerAdvice"/>
>     </context:component-scan>
>
>
>     <dubbo:consumer check="false" />
> </beans>
>
>
>
>
> 在linux下启动服务的时候,遇到如下问题
> : initialization completed in 3479 ms
> [ZkClient-EventThread-29-127.0.0.1:2181] INFO
> [org.I0Itec.zkclient.ZkEventThread] - Terminate ZkClient event thread.
> [main-EventThread] INFO  [org.apache.zookeeper.ClientCnxn] - EventThread
> shut down
> [DubboShutdownHook] INFO  [org.apache.zookeeper.ZooKeeper] - Session:
> 0x16469b7714c0006 closed
>
> 每次服务启动之后就和zookeeper断开连接。
>
>
> 但是用root用户启动正常,配置和程序相关都是我的用户权限,不是root权限。
>
>
> 请问一下,这个是什么原因造成的,或者有什么思路可供参考,谢谢!
>
>
>
>
> ~
> ~

Reply via email to