根据linux下安装的说明文档,进行到执行jar这一步。
java -jar halo-latest.jar

![命令执行后,信息如下:

[root@iZ2ze0a8w2ct7mzkpwufq5Z ~]# java -jar halo-latest.jar

    __  __      __
   / / / /___ _/ /___
  / /_/ / __ `/ / __ \
 / __  / /_/ / / /_/ /
/_/ /_/\__,_/_/\____/

 ::: Spring-Boot 2.1.7.RELEASE     ::: Halo (version: (v1.1.1))
2019-11-28 22:22:36.607  INFO 2705 --- [           main] run.halo.app.Applican                 : Starting Application v1.1.1 on iZ2ze0a8w2ct7mzkpwufq5Z wiPID 2705 (/root/halo-latest.jar started by root in /root)
2019-11-28 22:22:36.622  INFO 2705 --- [           main] run.halo.app.Applican                 : No active profile set, falling back to default profiles: ault
2019-11-28 22:22:40.405  INFO 2705 --- [           main] .s.d.r.c.RepositoryCigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2019-11-28 22:22:41.006  INFO 2705 --- [           main] .s.d.r.c.RepositoryCigurationDelegate : Finished Spring Data repository scanning in 590ms. Found repository interfaces.
2019-11-28 22:22:43.293  INFO 2705 --- [           main] trationDelegate$BeantProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTractionManagementConfiguration' of type [org.springframework.transaction.annotan.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$d85ebd36] iot eligible for getting processed by all BeanPostProcessors (for example: notigible for auto-proxying)
2019-11-28 22:22:45.156  WARN 2705 --- [           main] io.undertow.websockejsr               : UT026010: Buffer pool was not set on WebSocketDeploymentI, the default pool will be used
2019-11-28 22:22:45.224  INFO 2705 --- [           main] io.undertow.servlet                   : Initializing Spring embedded WebApplicationContext
2019-11-28 22:22:45.224  INFO 2705 --- [           main] o.s.web.context.ContLoader            : Root WebApplicationContext: initialization completed in 8 ms
2019-11-28 22:22:46.157  INFO 2705 --- [           main] com.zaxxer.hikari.HiiDataSource       : HikariPool-1 - Starting...
2019-11-28 22:22:47.046  INFO 2705 --- [           main] com.zaxxer.hikari.HiiDataSource       : HikariPool-1 - Start completed.
2019-11-28 22:22:47.304  INFO 2705 --- [           main] o.hibernate.jpa.intel.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [
        name: default
        ...]
2019-11-28 22:22:47.600  INFO 2705 --- [           main] org.hibernate.Versio                  : HHH000412: Hibernate Core {5.3.10.Final}
2019-11-28 22:22:47.602  INFO 2705 --- [           main] org.hibernate.cfg.Enonment            : HHH000206: hibernate.properties not found
2019-11-28 22:22:48.020  INFO 2705 --- [           main] o.hibernate.annotati.common.Version   : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
2019-11-28 22:22:49.528  INFO 2705 --- [           main] org.hibernate.dialecialect            : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Diat
2019-11-28 22:22:53.047  INFO 2705 --- [           main] j.LocalContainerEntianagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unitefault'
2019-11-28 22:23:00.051  INFO 2705 --- [           main] o.h.h.i.QueryTranslaFactoryInitiator  : HHH000397: Using ASTQueryTranslatorFactory
2019-11-28 22:23:08.306  INFO 2705 --- [           main] o.s.b.a.e.web.EndpoiinksResolver      : Exposing 2 endpoint(s) beneath base path '/actuator'
2019-11-28 22:23:08.802  INFO 2705 --- [           main] pertySourcedRequestMingHandlerMapping : Mapped URL path [/v2/api-docs] onto method [public org.spgframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> ingfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.laString,javax.servlet.http.HttpServletRequest)]
2019-11-28 22:23:12.019  INFO 2705 --- [           main] o.s.s.c.ThreadPoolTacheduler          : Initializing ExecutorService 'taskScheduler'
2019-11-28 22:23:12.308  INFO 2705 --- [           main] d.s.w.p.DocumentatiouginsBootstrapper : Context refreshed
2019-11-28 22:23:12.425  INFO 2705 --- [           main] d.s.w.p.DocumentatiouginsBootstrapper : Found 2 custom documentation plugin(s)
2019-11-28 22:23:12.425  INFO 2705 --- [           main] d.s.w.p.DocumentatiouginsBootstrapper : Skipping initializing disabled plugin bean swagger v2.0
2019-11-28 22:23:12.425  INFO 2705 --- [           main] d.s.w.p.DocumentatiouginsBootstrapper : Skipping initializing disabled plugin bean swagger v2.0
2019-11-28 22:23:13.177  INFO 2705 --- [           main] org.xnio                              : XNIO version 3.3.8.Final
2019-11-28 22:23:13.317  INFO 2705 --- [           main] org.xnio.nio                          : XNIO NIO Implementation Version 3.3.8.Final
2019-11-28 22:23:14.354  INFO 2705 --- [           main] o.s.b.w.e.u.UndertowvletWebServer     : Undertow started on port(s) 8090 (http) with context path
2019-11-28 22:23:14.361  INFO 2705 --- [           main] run.halo.app.Applican                 : Started Application in 40.389 seconds (JVM running for 425)
2019-11-28 22:23:15.176  INFO 2705 --- [           main] run.halo.app.listenetartedListener    : Halo started at         http://172.17.106.224:8090
2019-11-28 22:23:15.176  INFO 2705 --- [           main] run.halo.app.listenetartedListener    : Halo admin started at   http://172.17.106.224:8090/admin
2019-11-28 22:23:15.743  INFO 2705 --- [           main] run.halo.app.listenetartedListener    : Copied theme folder from [/BOOT-INF/classes/templates/the] to [/root/.halo/templates/themes]

不知道是哪里出了问题。求大神指导。

    16 天 后
    1 年 后

    ctrl 没必要修改,直接用 localhost 或者公网 IP 访问就好了

    • ctrl 回复了此帖

      johnniang 我是启动了,但是公网ip+端口访问不了,找不到原因