最近才找到组织,但是在 clone 了 solo 之后在本地运行跑不起来,总是提示这个端口占用,而且无论是 solo 还是 latke-demo 效果是一样的,很令人费解 启动信息如下所示: Connected to the target VM, address: '127.0.0.1:63097', transpor ..

idea 运行 solo 报错,总是提示端口被占用 Address already in use: bind

最近才找到组织,但是在 clone 了 solo 之后在本地运行跑不起来,总是提示这个端口占用,而且无论是 solo 还是 latke-demo 效果是一样的,很令人费解

启动信息如下所示:

Connected to the target VM, address: '127.0.0.1:63097', transport: 'socket'
[INFO ]-[2019-11-14 16:05:25]-[org.b3log.latke.Latkes:646]: Runtime cache is [LOCAL_LRU]
[INFO ]-[2019-11-14 16:05:25]-[org.b3log.latke.ioc.ClassPathResolver:83]: RootDirResource [protocol=file, path=/E:/IQHub_workspaces/latke-demo/target/classes/latke/demo/]
[INFO ]-[2019-11-14 16:05:25]-[org.b3log.latke.Latkes:653]: Initialized Latke
[INFO ]-[2019-11-14 16:05:25]-[org.b3log.latke.repository.Repositories:299]: Loading repository description....
[INFO ]-[2019-11-14 16:05:25]-[org.b3log.latke.repository.Repositories:308]: Parsing repository description....
[INFO ]-[2019-11-14 16:05:25]-[org.b3log.latke.repository.jdbc.util.Connections:145]: Initialized database connection pool [hikari]
[INFO ]-[2019-11-14 16:05:25]-[com.zaxxer.hikari.HikariDataSource:110]: HikariPool-1 - Starting...
[INFO ]-[2019-11-14 16:05:26]-[com.zaxxer.hikari.HikariDataSource:123]: HikariPool-1 - Start completed.
[INFO ]-[2019-11-14 16:05:26]-[org.b3log.latke.repository.AbstractRepository:89]: Constructed repository [name=user]
[ERROR]-[2019-11-14 16:05:27]-[org.b3log.latke.http.BaseServer:66]: Start server failed, exit process
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:436)
at sun.nio.ch.Net.bind(Net.java:428)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:214)
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
at io.netty.channel.AbstractChannelAbstractUnsafe.bind(AbstractChannel.java:551) at io.netty.channel.DefaultChannelPipelineHeadContext.bind(DefaultChannelPipeline.java:1346)
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:503)
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:488)
at io.netty.handler.logging.LoggingHandler.bind(LoggingHandler.java:191)
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:503)
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:488)
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:985)
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:247)
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:344)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:163)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:510)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:518)
at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1050)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:745)
[INFO ]-[2019-11-14 16:05:27]-[com.zaxxer.hikari.HikariDataSource:350]: HikariPool-1 - Shutdown initiated...
[INFO ]-[2019-11-14 16:05:27]-[com.zaxxer.hikari.HikariDataSource:352]: HikariPool-1 - Shutdown completed.
Disconnected from the target VM, address: '127.0.0.1:63097', transport: 'socket'

  • Solo

    Solo 是一款小而美的开源博客系统,专为程序员设计。

    Solo 有着非常活跃的社区,可将文章作为帖子推送到社区,来自社区的回帖将作为博客评论进行联动。

    这是一种全新的网络社区体验,让热爱记录和分享的你不再感到孤单!
    具体细节请浏览 B3log 构思

    924 引用 • 7008 回帖 • 664 关注
  • Q&A

    提问之前请先看《提问的智慧》,好的问题比好的答案更有价值。

    1372 引用 • 8985 回帖 • 575 关注
被采纳的回答
  • 88250

    默认是 8080 端口,是不是已经启动了其他容器,比如 Tomcat。

2 回帖
请输入回帖内容...
  • 88250

    默认是 8080 端口,是不是已经启动了其他容器,比如 Tomcat。

    1 回复
  • MineLV

    给力哦,我注意力被全被后面提示的那个端口吸引了 😭