我首先使用腾讯云重装了系统,cenos 7.5 64 位,然后直接安装 Docker,按照 readme 下载了 solo,配备了数据库,请问接下来如何运行,直接启动访问域名发现无法访问?
Docker 部署的小问题
相关帖子
-
[INFO ]-[2019-04-01 16:24:32]-[org.b3log.solo.SoloServletListener:97]: Solo is booting [pid=1, runtimeDatabase=MYSQL, runtimeMode=PRODUCTION, jdbc.username=root, jdbc.URL=jdbc:mysql://127.0.0.1:3306/solo?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC] [INFO ]-[2019-04-01 16:24:32]-[com.zaxxer.hikari.HikariDataSource:110]: HikariPool-1 - Starting... [ERROR]-[2019-04-01 16:24:34]-[com.zaxxer.hikari.pool.HikariPool:574]: HikariPool-1 - Exception during pool initialization. com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:174) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64) at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:832) at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:456) at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:240) at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:207) at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:136) at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:369) at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:198) at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:467) ... 40 more [ERROR]-[2019-04-01 16:24:34]-[org.b3log.solo.service.InitService:189]: Check tables failed, please make sure database existed and database configuration [jdbc.*] in local.props is correct [msg=Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.]
1 回复 - 其他回帖
-
wd • • 1
你使用的是容器内回环地址连接数据库,而容器内并没有 MySQL 服务,所以是连不上的,如果你的 MySQL 在宿主机上需要使用宿主机的地址进行连接。或者你可以试试 docker-compose。
- 查看全部回帖
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于