基于zheng创建新项目dubbo端口被占用

错误如下:

~~~

D:\Java\jdk1.8.0_101\bin\java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:1568,suspend=y,server=n -Dfile.encoding=UTF-8 -classpath "D:\Java\jdk1.8.0_101\jre\lib\charsets.jar;D:\Java\jdk1.8.0_101\jre\lib\deploy.jar;D:\Java\jdk1.8.0_101\jre\lib\ext\access-bridge-64.jar;D:\Java\jdk1.8.0_101\jre\lib\ext\cldrdata.jar;D:\Java\jdk1.8.0_101\jre\lib\ext\dnsns.jar;D:\Java\jdk1.8.0_101\jre\lib\ext\jaccess.jar;D:\Java\jdk1.8.0_101\jre\lib\ext\jfxrt.jar;D:\Java\jdk1.8.0_101\jre\lib\ext\localedata.jar;D:\Java\jdk1.8.0_101\jre\lib\ext\nashorn.jar;D:\Java\jdk1.8.0_101\jre\lib\ext\sunec.jar;D:\Java\jdk1.8.0_101\jre\lib\ext\sunjce_provider.jar;D:\Java\jdk1.8.0_101\jre\lib\ext\sunmscapi.jar;D:\Java\jdk1.8.0_101\jre\lib\ext\sunpkcs11.jar;D:\Java\jdk1.8.0_101\jre\lib\ext\zipfs.jar;D:\Java\jdk1.8.0_101\jre\lib\javaws.jar;D:\Java\jdk1.8.0_101\jre\lib\jce.jar;D:\Java\jdk1.8.0_101\jre\lib\jfr.jar;D:\Java\jdk1.8.0_101\jre\lib\jfxswt.jar;D:\Java\jdk1.8.0_101\jre\lib\jsse.jar;D:\Java\jdk1.8.0_101\jre\lib\management-agent.jar;D:\Java\jdk1.8.0_101\jre\lib\plugin.jar;D:\Java\jdk1.8.0_101\jre\lib\resources.jar;D:\Java\jdk1.8.0_101\jre\lib\rt.jar;D:\work\mypro\server\lineduc\lineduc-upms\lineduc-upms-rpc-service\target\classes;D:\work\mypro\server\lineduc\lineduc-upms\lineduc-upms-rpc-api\target\classes;D:\work\mypro\server\lineduc\lineduc-upms\lineduc-upms-dao\target\classes;D:\work\mypro\server\lineduc\lineduc-upms\lineduc-upms-common\target\classes;D:\work\mypro\server\lineduc\lineduc-common\target\classes;C:\Users\Administrator\.m2\repository\org\springframework\spring-context-support\4.3.7.RELEASE\spring-context-support-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-beans\4.3.7.RELEASE\spring-beans-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-context\4.3.7.RELEASE\spring-context-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-core\4.3.7.RELEASE\spring-core-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-webmvc\4.3.7.RELEASE\spring-webmvc-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-aop\4.3.7.RELEASE\spring-aop-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-expression\4.3.7.RELEASE\spring-expression-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-web\4.3.7.RELEASE\spring-web-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-jdbc\4.3.7.RELEASE\spring-jdbc-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-tx\4.3.7.RELEASE\spring-tx-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-test\4.3.7.RELEASE\spring-test-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-jms\4.3.7.RELEASE\spring-jms-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-messaging\4.3.7.RELEASE\spring-messaging-4.3.7.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\security\spring-security-web\4.1.3.RELEASE\spring-security-web-4.1.3.RELEASE.jar;C:\Users\Administrator\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\Administrator\.m2\repository\org\springframework\security\spring-security-core\4.1.3.RELEASE\spring-security-core-4.1.3.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\security\spring-security-config\4.1.3.RELEASE\spring-security-config-4.1.3.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\session\spring-session-data-redis\1.3.0.RELEASE\spring-session-data-redis-1.3.0.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\apache\commons\commons-pool2\2.4.2\commons-pool2-2.4.2.jar;C:\Users\Administrator\.m2\repository\org\springframework\session\spring-session\1.3.0.RELEASE\spring-session-1.3.0.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\apache\shiro\shiro-core\1.3.2\shiro-core-1.3.2.jar;C:\Users\Administrator\.m2\repository\org\apache\shiro\shiro-web\1.3.2\shiro-web-1.3.2.jar;C:\Users\Administrator\.m2\repository\org\apache\shiro\shiro-quartz\1.3.2\shiro-quartz-1.3.2.jar;C:\Users\Administrator\.m2\repository\org\opensymphony\quartz\quartz\1.6.1\quartz-1.6.1.jar;C:\Users\Administrator\.m2\repository\org\apache\shiro\shiro-spring\1.3.2\shiro-spring-1.3.2.jar;C:\Users\Administrator\.m2\repository\org\mybatis\mybatis\3.4.2\mybatis-3.4.2.jar;C:\Users\Administrator\.m2\repository\org\mybatis\mybatis-spring\1.3.1\mybatis-spring-1.3.1.jar;C:\Users\Administrator\.m2\repository\com\github\pagehelper\pagehelper\5.0.1\pagehelper-5.0.1.jar;C:\Users\Administrator\.m2\repository\com\github\jsqlparser\jsqlparser\0.9.5\jsqlparser-0.9.5.jar;C:\Users\Administrator\.m2\repository\org\mybatis\generator\mybatis-generator-core\1.3.5\mybatis-generator-core-1.3.5.jar;C:\Users\Administrator\.m2\repository\com\alibaba\dubbo\2.5.6\dubbo-2.5.6.jar;C:\Users\Administrator\.m2\repository\org\javassist\javassist\3.20.0-GA\javassist-3.20.0-GA.jar;C:\Users\Administrator\.m2\repository\org\jboss\netty\netty\3.2.5.Final\netty-3.2.5.Final.jar;C:\Users\Administrator\.m2\repository\com\github\sgroschupf\zkclient\0.1\zkclient-0.1.jar;C:\Users\Administrator\.m2\repository\org\apache\zookeeper\zookeeper\3.3.3\zookeeper-3.3.3.jar;C:\Users\Administrator\.m2\repository\jline\jline\0.9.94\jline-0.9.94.jar;C:\Users\Administrator\.m2\repository\log4j\log4j\1.2.14\log4j-1.2.14.jar;C:\Users\Administrator\.m2\repository\org\apache\velocity\velocity\1.7\velocity-1.7.jar;C:\Users\Administrator\.m2\repository\commons-collections\commons-collections\3.2.1\commons-collections-3.2.1.jar;C:\Users\Administrator\.m2\repository\net\sf\ehcache\ehcache\2.10.0\ehcache-2.10.0.jar;C:\Users\Administrator\.m2\repository\org\mybatis\mybatis-ehcache\1.0.0\mybatis-ehcache-1.0.0.jar;C:\Users\Administrator\.m2\repository\net\sf\ehcache\ehcache-core\2.0.0\ehcache-core-2.0.0.jar;C:\Users\Administrator\.m2\repository\mysql\mysql-connector-java\5.1.34\mysql-connector-java-5.1.34.jar;C:\Users\Administrator\.m2\repository\com\alibaba\druid\1.0.14\druid-1.0.14.jar;D:\Java\jdk1.8.0_101\lib\jconsole.jar;D:\Java\jdk1.8.0_101\lib\tools.jar;C:\Users\Administrator\.m2\repository\redis\clients\jedis\2.9.0\jedis-2.9.0.jar;C:\Users\Administrator\.m2\repository\org\springframework\data\spring-data-redis\1.7.5.RELEASE\spring-data-redis-1.7.5.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\data\spring-data-keyvalue\1.1.5.RELEASE\spring-data-keyvalue-1.1.5.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\data\spring-data-commons\1.12.5.RELEASE\spring-data-commons-1.12.5.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\spring-oxm\4.2.8.RELEASE\spring-oxm-4.2.8.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\slf4j\jcl-over-slf4j\1.7.21\jcl-over-slf4j-1.7.21.jar;C:\Users\Administrator\.m2\repository\org\slf4j\slf4j-api\1.7.12\slf4j-api-1.7.12.jar;C:\Users\Administrator\.m2\repository\org\slf4j\slf4j-log4j12\1.7.12\slf4j-log4j12-1.7.12.jar;C:\Users\Administrator\.m2\repository\commons-fileupload\commons-fileupload\1.3.1\commons-fileupload-1.3.1.jar;C:\Users\Administrator\.m2\repository\commons-io\commons-io\2.2\commons-io-2.2.jar;C:\Users\Administrator\.m2\repository\io\springfox\springfox-swagger2\2.4.0\springfox-swagger2-2.4.0.jar;C:\Users\Administrator\.m2\repository\io\swagger\swagger-annotations\1.5.6\swagger-annotations-1.5.6.jar;C:\Users\Administrator\.m2\repository\io\swagger\swagger-models\1.5.6\swagger-models-1.5.6.jar;C:\Users\Administrator\.m2\repository\io\springfox\springfox-spi\2.4.0\springfox-spi-2.4.0.jar;C:\Users\Administrator\.m2\repository\io\springfox\springfox-core\2.4.0\springfox-core-2.4.0.jar;C:\Users\Administrator\.m2\repository\io\springfox\springfox-schema\2.4.0\springfox-schema-2.4.0.jar;C:\Users\Administrator\.m2\repository\io\springfox\springfox-swagger-common\2.4.0\springfox-swagger-common-2.4.0.jar;C:\Users\Administrator\.m2\repository\io\springfox\springfox-spring-web\2.4.0\springfox-spring-web-2.4.0.jar;C:\Users\Administrator\.m2\repository\com\google\guava\guava\18.0\guava-18.0.jar;C:\Users\Administrator\.m2\repository\com\fasterxml\classmate\1.3.1\classmate-1.3.1.jar;C:\Users\Administrator\.m2\repository\org\springframework\plugin\spring-plugin-core\1.2.0.RELEASE\spring-plugin-core-1.2.0.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\springframework\plugin\spring-plugin-metadata\1.2.0.RELEASE\spring-plugin-metadata-1.2.0.RELEASE.jar;C:\Users\Administrator\.m2\repository\io\springfox\springfox-swagger-ui\2.4.0\springfox-swagger-ui-2.4.0.jar;C:\Users\Administrator\.m2\repository\commons-beanutils\commons-beanutils\1.9.3\commons-beanutils-1.9.3.jar;C:\Users\Administrator\.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;C:\Users\Administrator\.m2\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;C:\Users\Administrator\.m2\repository\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;C:\Users\Administrator\.m2\repository\org\apache\commons\commons-compress\1.12\commons-compress-1.12.jar;C:\Users\Administrator\.m2\repository\javax\persistence\persistence-api\1.0.2\persistence-api-1.0.2.jar;C:\Users\Administrator\.m2\repository\javax\validation\validation-api\1.1.0.Final\validation-api-1.1.0.Final.jar;C:\Users\Administrator\.m2\repository\org\hibernate\hibernate-validator\5.2.2.Final\hibernate-validator-5.2.2.Final.jar;C:\Users\Administrator\.m2\repository\org\jboss\logging\jboss-logging\3.2.1.Final\jboss-logging-3.2.1.Final.jar;C:\Users\Administrator\.m2\repository\com\baidu\unbiz\fluent-validator\1.0.6\fluent-validator-1.0.6.jar;C:\Users\Administrator\.m2\repository\org\thymeleaf\thymeleaf-spring4\3.0.3.RELEASE\thymeleaf-spring4-3.0.3.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\thymeleaf\thymeleaf\3.0.3.RELEASE\thymeleaf-3.0.3.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\attoparser\attoparser\2.0.2.RELEASE\attoparser-2.0.2.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\unbescape\unbescape\1.1.4.RELEASE\unbescape-1.1.4.RELEASE.jar;C:\Users\Administrator\.m2\repository\org\apache\activemq\activemq-core\5.7.0\activemq-core-5.7.0.jar;C:\Users\Administrator\.m2\repository\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.1.1\geronimo-jms_1.1_spec-1.1.1.jar;C:\Users\Administrator\.m2\repository\org\apache\activemq\kahadb\5.7.0\kahadb-5.7.0.jar;C:\Users\Administrator\.m2\repository\org\apache\activemq\protobuf\activemq-protobuf\1.1\activemq-protobuf-1.1.jar;C:\Users\Administrator\.m2\repository\org\fusesource\mqtt-client\mqtt-client\1.3\mqtt-client-1.3.jar;C:\Users\Administrator\.m2\repository\org\fusesource\hawtdispatch\hawtdispatch-transport\1.11\hawtdispatch-transport-1.11.jar;C:\Users\Administrator\.m2\repository\org\fusesource\hawtdispatch\hawtdispatch\1.11\hawtdispatch-1.11.jar;C:\Users\Administrator\.m2\repository\org\fusesource\hawtbuf\hawtbuf\1.9\hawtbuf-1.9.jar;C:\Users\Administrator\.m2\repository\org\apache\geronimo\specs\geronimo-j2ee-management_1.1_spec\1.0.1\geronimo-j2ee-management_1.1_spec-1.0.1.jar;C:\Users\Administrator\.m2\repository\commons-net\commons-net\3.1\commons-net-3.1.jar;C:\Users\Administrator\.m2\repository\org\jasypt\jasypt\1.9.0\jasypt-1.9.0.jar;C:\Users\Administrator\.m2\repository\net\sf\json-lib\json-lib\2.4\json-lib-2.4-jdk15.jar;C:\Users\Administrator\.m2\repository\net\sf\ezmorph\ezmorph\1.0.6\ezmorph-1.0.6.jar;C:\Users\Administrator\.m2\repository\com\alibaba\fastjson\1.2.28\fastjson-1.2.28.jar;C:\Users\Administrator\.m2\repository\com\fasterxml\jackson\core\jackson-core\2.6.5\jackson-core-2.6.5.jar;C:\Users\Administrator\.m2\repository\com\fasterxml\jackson\core\jackson-databind\2.6.5\jackson-databind-2.6.5.jar;C:\Users\Administrator\.m2\repository\com\fasterxml\jackson\core\jackson-annotations\2.6.5\jackson-annotations-2.6.5.jar;C:\Users\Administrator\.m2\repository\javax\mail\mail\1.4.7\mail-1.4.7.jar;C:\Users\Administrator\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar;C:\Users\Administrator\.m2\repository\org\apache\httpcomponents\httpclient\4.5.2\httpclient-4.5.2.jar;C:\Users\Administrator\.m2\repository\org\apache\httpcomponents\httpcore\4.4.4\httpcore-4.4.4.jar;C:\Users\Administrator\.m2\repository\org\aspectj\aspectjweaver\1.8.8\aspectjweaver-1.8.8.jar;C:\Users\Administrator\.m2\repository\javax\servlet\jstl\1.2\jstl-1.2.jar;D:\Program Files\JetBrains\IntelliJ IDEA 2017.2.2\lib\idea_rt.jar" com.lineduc.upms.rpc.LineducUpmsRpcServiceApplication
Connected to the target VM, address: '127.0.0.1:1568', transport: 'socket'
2018-01-21 07:17:40,566 [main] INFO  [com.lineduc.upms.rpc.LineducUpmsRpcServiceApplication] - >>>>> lineduc-upms-rpc-service 正在启动 <<<<<
2018-01-21 07:17:40,985 [main] INFO  [com.alibaba.dubbo.common.logger.LoggerFactory] - using logger: com.alibaba.dubbo.common.logger.log4j.Log4jLoggerAdapter
2018-01-21 07:17:44,481 [main] INFO  [com.alibaba.druid.pool.DruidDataSource] - {dataSource-1} inited
2018-01-21 07:17:44,536 [main] INFO  [com.alibaba.druid.pool.DruidDataSource] - {dataSource-2} inited
2018-01-21 07:17:46,412 [main] INFO  [com.alibaba.dubbo.config.AbstractConfig] -  [DUBBO] The service ready on spring started. service: com.lineduc.upms.rpc.api.UpmsSystemService, dubbo version: 2.5.6, current host: 127.0.0.1
2018-01-21 07:17:46,571 [main] INFO  [com.alibaba.dubbo.config.AbstractConfig] -  [DUBBO] Export dubbo service com.lineduc.upms.rpc.api.UpmsSystemService to local registry, dubbo version: 2.5.6, current host: 127.0.0.1
2018-01-21 07:17:46,571 [main] INFO  [com.alibaba.dubbo.config.AbstractConfig] -  [DUBBO] Export dubbo service com.lineduc.upms.rpc.api.UpmsSystemService to url dubbo://192.168.56.1:20881/com.lineduc.upms.rpc.api.UpmsSystemService?anyhost=true&application=lineduc-upms-rpc-service&dubbo=2.5.6&generic=false&interface=com.lineduc.upms.rpc.api.UpmsSystemService&methods=selectByExample,countByExample,insertSelective,selectByExampleForStartPage,updateByPrimaryKeySelective,selectByExampleWithBLOBs,insert,selectUpmsSystemByName,selectByExampleForOffsetPage,selectFirstByExampleWithBLOBs,selectByExampleWithBLOBsForOffsetPage,updateByExampleWithBLOBs,updateByPrimaryKeyWithBLOBs,updateByExample,selectByPrimaryKey,updateByExampleSelective,deleteByExample,initMapper,updateByPrimaryKey,deleteByPrimaryKeys,deleteByPrimaryKey,selectByExampleWithBLOBsForStartPage,selectFirstByExample&pid=9380&side=provider&timeout=10000×tamp=1516490266432, dubbo version: 2.5.6, current host: 127.0.0.1
2018-01-21 07:17:46,572 [main] INFO  [com.alibaba.dubbo.config.AbstractConfig] -  [DUBBO] Register dubbo service com.lineduc.upms.rpc.api.UpmsSystemService url dubbo://192.168.56.1:20881/com.lineduc.upms.rpc.api.UpmsSystemService?anyhost=true&application=lineduc-upms-rpc-service&dubbo=2.5.6&generic=false&interface=com.lineduc.upms.rpc.api.UpmsSystemService&methods=selectByExample,countByExample,insertSelective,selectByExampleForStartPage,updateByPrimaryKeySelective,selectByExampleWithBLOBs,insert,selectUpmsSystemByName,selectByExampleForOffsetPage,selectFirstByExampleWithBLOBs,selectByExampleWithBLOBsForOffsetPage,updateByExampleWithBLOBs,updateByPrimaryKeyWithBLOBs,updateByExample,selectByPrimaryKey,updateByExampleSelective,deleteByExample,initMapper,updateByPrimaryKey,deleteByPrimaryKeys,deleteByPrimaryKey,selectByExampleWithBLOBsForStartPage,selectFirstByExample&pid=9380&side=provider&timeout=10000×tamp=1516490266432 to registry registry://zkserver:2181/com.alibaba.dubbo.registry.RegistryService?application=lineduc-upms-rpc-service&dubbo=2.5.6&pid=9380®istry=zookeeper×tamp=1516490266420, dubbo version: 2.5.6, current host: 127.0.0.1
Exception in thread "main" com.alibaba.dubbo.rpc.RpcException: Fail to start server(url: dubbo://192.168.56.1:20881/com.lineduc.upms.rpc.api.UpmsSystemService?anyhost=true&application=lineduc-upms-rpc-service&channel.readonly.sent=true&codec=dubbo&dubbo=2.5.6&generic=false&heartbeat=60000&interface=com.lineduc.upms.rpc.api.UpmsSystemService&methods=selectByExample,countByExample,insertSelective,selectByExampleForStartPage,updateByPrimaryKeySelective,selectByExampleWithBLOBs,insert,selectUpmsSystemByName,selectByExampleForOffsetPage,selectFirstByExampleWithBLOBs,selectByExampleWithBLOBsForOffsetPage,updateByExampleWithBLOBs,updateByPrimaryKeyWithBLOBs,updateByExample,selectByPrimaryKey,updateByExampleSelective,deleteByExample,initMapper,updateByPrimaryKey,deleteByPrimaryKeys,deleteByPrimaryKey,selectByExampleWithBLOBsForStartPage,selectFirstByExample&pid=9380&side=provider&timeout=10000×tamp=1516490266432) Failed to bind NettyServer on /192.168.56.1:20881, cause: Failed to bind to: /0.0.0.0:20881
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:279)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.openServer(DubboProtocol.java:256)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:243)
at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:56)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:94)
at com.alibaba.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java)
at com.alibaba.dubbo.registry.integration.RegistryProtocol.doLocalExport(RegistryProtocol.java:163)
at com.alibaba.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:116)
at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:54)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:92)
at com.alibaba.dubbo.rpc.Protocol$Adaptive.export(Protocol$Adaptive.java)
at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:550)
at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:346)
at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:307)
at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:206)
at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:109)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:383)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:337)
at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:882)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)
at com.lineduc.upms.rpc.LineducUpmsRpcServiceApplication.main(LineducUpmsRpcServiceApplication.java:16)
Caused by: com.alibaba.dubbo.remoting.RemotingException: Failed to bind NettyServer on /192.168.56.1:20881, cause: Failed to bind to: /0.0.0.0:20881
at com.alibaba.dubbo.remoting.transport.AbstractServer.(AbstractServer.java:67)
at com.alibaba.dubbo.remoting.transport.netty.NettyServer.(NettyServer.java:63)
at com.alibaba.dubbo.remoting.transport.netty.NettyTransporter.bind(NettyTransporter.java:33)
at com.alibaba.dubbo.remoting.Transporter$Adaptive.bind(Transporter$Adaptive.java)
at com.alibaba.dubbo.remoting.Transporters.bind(Transporters.java:57)
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.bind(HeaderExchanger.java:41)
at com.alibaba.dubbo.remoting.exchange.Exchangers.bind(Exchangers.java:71)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.createServer(DubboProtocol.java:277)
... 24 more
Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:20881
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303)
at com.alibaba.dubbo.remoting.transport.netty.NettyServer.doOpen(NettyServer.java:94)
at com.alibaba.dubbo.remoting.transport.AbstractServer.(AbstractServer.java:62)
... 31 more
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:148)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleServerSocket(NioServerSocketPipelineSink.java:100)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:74)
at org.jboss.netty.channel.Channels.bind(Channels.java:468)
at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:192)
at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:348)
at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.(NioServerSocketChannel.java:85)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:142)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:90)
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:282)
... 33 more

~~~

解决:

找到启动model的applicationContext-dubbo-provider.xml文件下的这行代码,把port改成其他没被使用的。
~~~
<dubbo:protocol name="dubbo" port="20891"/>
~~~


你可能感兴趣的:(服务器开发)