tensorboard学习—— 解决tensorboard attempted to bind to port 6006,but it was already in use问题的几种方法

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/c20081052/article/details/81974847

在用tensorboard查看训练生成结果时,

查看的指令是(将logdir指向你训练保存的结果目录):

tensorboard --logdir=yourpath/train_dir

遇到如下错误:

[MainThread program.py:262] TensorBoard attempted to bind to port 6006, but it was already in use

字面意思是端口6006被占用中,有如下解决方法:


解决方法一:

搜索网上的参考解决方案是:

在终端输入

lsof -i:6006

这时候在终端会发现

COMMAND     PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
tensorboa 19676 hjxu    3u  IPv4 196245      0t0  TCP *:x11-6 (LISTEN)

然后关闭19676(视你实际的输出)这个端口就可以了

kill -9 19676

然后再执行如上用tensorboard的指令;


解决方法二:

(插句话,如果你是在windows下运行的,建议使用谷歌浏览器,且版本高些。参考:tensorboard无法打开

指定一个新的端口来查看

tensorboard --logdir=yourpath/train_dir --port=6008

参考我写的指令,给port指明一个新的端口号来查看,比如端口号:8800

倘若你上网使用的是代理,仍遇到上面报的错误,请先将你的上网代理关闭。

方法二本人亲测有效。

展开阅读全文

java.net.BindException: Address already in use: bind

02-21

flex初学者 用Myeclipse8.5+flash builder 4.6 + blazeds.warrn我新建了个flex项目 部署在tomcat6.0上 启动服务器报了一下错误:rn2012-2-21 14:50:21 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_16\bin;C:\Program Files\Apache Software Foundation\Tomcat 6.0\binrn2012-2-21 14:50:21 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8089rn2012-2-21 14:50:21 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 353 msrn2012-2-21 14:50:21 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-2-21 14:50:21 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.20rn2012-2-21 14:50:22 org.apache.catalina.startup.HostConfig deployWARrn信息: Deploying web application archive blazeds.warrn2012-2-21 14:50:23 org.apache.catalina.startup.HostConfig deployWARrn信息: Deploying web application archive ds-console.warrn2012-2-21 14:50:24 org.apache.catalina.startup.HostConfig deployWARrn信息: Deploying web application archive flex.warrn02/21 14:50:26 INFO Loading configuration file C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\flex\WEB-INF\flex\flex-webtier-config.xmlrn02/21 14:50:26 INFO Loading configuration file C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\flex\WEB-INF\flex\flex-config.xmlrn2012-2-21 14:50:26 org.apache.catalina.core.ApplicationContext logrn信息: FlexMxmlServlet: Starting Adobe Flex Web Tier Compilerrn2012-2-21 14:50:26 org.apache.catalina.core.ApplicationContext logrn信息: FlexMxmlServlet: Adobe Flex Web Tier Compiler Build: 173666rn2012-2-21 14:50:26 org.apache.catalina.startup.HostConfig deployWARrn信息: Deploying web application archive samples.warrn02/21 14:50:29 INFO Loading configuration file C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\samples\WEB-INF\flex\flex-webtier-config.xmlrn02/21 14:50:30 INFO Loading configuration file C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\samples\WEB-INF\flex\flex-config.xmlrn2012-2-21 14:50:30 org.apache.catalina.core.ApplicationContext logrn信息: FlexMxmlServlet: Starting Adobe Flex Web Tier Compilerrn2012-2-21 14:50:30 org.apache.catalina.core.ApplicationContext logrn信息: FlexMxmlServlet: Adobe Flex Web Tier Compiler Build: 155539rn2012-2-21 14:50:30 org.apache.catalina.loader.WebappClassLoader validateJarFilern信息: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\bin\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classrn[Flex] RTMP-Server on port: 2038 failed to start up.rnjava.net.BindException: Address already in use: bindrn at sun.nio.ch.Net.bind(Native Method)rn at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)rn at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)rn at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)rn at flex.messaging.endpoints.rtmp.BaseNIORTMPServer.run(BaseNIORTMPServer.java:155)rn at java.lang.Thread.run(Thread.java:619)rnrn2012-2-21 14:50:32 org.apache.catalina.loader.WebappClassLoader validateJarFilern信息: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\FlexJava\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.classrn2012-2-21 14:50:34 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8089rn2012-2-21 14:50:34 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2012-2-21 14:50:34 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/31 config=nullrn2012-2-21 14:50:34 org.apache.catalina.startup.Catalina startrn信息: Server startup in 12191 ms 论坛

没有更多推荐了,返回首页