最近才找到组织,但是在 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.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:551)
at io.netty.channel.DefaultChannelPipeline$HeadContext.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'