数据库 mysql 57
linux Ubuntu
用户目录启动
这是配置文件:
server:
port: 8090
# Response data gzip.
compression:
enabled: true
spring:
datasource:
# MySQL database configuration.
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3333/Blog?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: Rainy666...
halo:
# Your admin client path is https://your-domain/{admin-path}
admin-path: admin
# memory or level or redis
cache: memory
'上次登录: 星期六 Jun 11 23:56:38 2022 从 127.0.0.1
root@VM-8-13-ubuntu:~# cd /home/Rainy/.halo
root@VM-8-13-ubuntu:/home/Rainy/.halo# su - Rainy
Rainy@VM-8-13-ubuntu:~$ cd /home/Rainy/RunHalo
Rainy@VM-8-13-ubuntu:~/RunHalo$ java -jar halo.jar
__ __ __
/ / / /___ / /__
/ // / __ `/ / __ \
/ __ / // / / // /
// //_,//____/
版本: 1.5.3
2022-06-11 23:58:46.386 INFO 7594 --- [ main] run.halo.app.Application : 在 VM-8-13-ubuntu 上使用 Java 11.0.15 和 PID 7594 (/home/Rainy/RunHalo/halo.jar 由 Rainy 在 /home/Rainy/RunHalo 启动)
2022-06-11 23:58:46.394 INFO 7594 --- [ main] run.halo.app.Application : No active profile set, fall back to 1 default profile: “default”
2022-06-11 23:58:49.215 INFO 7594 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate: 找到多个Spring Data模块,进入严格的存储库配置模式!
2022-06-11 23:58:49.218 INFO 7594 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : BOOTSTRAPPING Spring Data JPA 存储库在默认模式下。
2022-06-11 23:58:49.855 INFO 7594 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : 在615 ms内完成春季数据存储库扫描。找到 24 个 JPA 存储库接口。
2022-06-11 23:58:52.245 INFO 7594 --- [ main] org.eclipse.jetty.util.log : 日志记录初始化@8978ms org.eclipse.jetty.util.log.Slf4jLog
2022-06-11 23:58:52.771 INFO 7594 --- [ main] o.s.b.w.e.j.JettyServletWebServerFactory : Server initialized with port: 8090
2022-06-11 23:58:52.789 INFO 7594 --- [ main] org.eclipse.jetty.server.Server : jetty-9.4.45.v20220203;内置: 2022-02-03T09:14:34.105Z;git: 4a0c91c0be53805e3fcffdcdcc9587d5301863db;jvm 11.0.15+10-Ubuntu-0ubuntu0.20.04.1
2022-06-11 23:58:52.851 INFO 7594 --- [ main] o.e.j.s.h.ContextHandler.application : 初始化 Spring 嵌入式 WebApplicationContext
2022-06-11 23:58:52.855 INFO 7594 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: 初始化在 6331 ms
中完成 2022-06-11 23:58:54.369 INFO 7594 --- [ main] run.halo.app.config.HaloConfiguration : Halo cache store load impl : [class run.halo.app.cache.InMemoryCacheStore]
2022-06-11 23:58:56.262 INFO 7594 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2022-06-11 23:58:56.411 INFO 7594 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM 核心版本 5.4.33
2022-06-11 23:58:56.541 INFO 7594 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2022-06-11 23:58:56.908 INFO 7594 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start...
2022-06-11 23:58:57.307 INFO 7594 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start complete.<
2022-06-11 23:58:57.382 INFO 7594 --- [ main] org.hibernate.dialect.dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL57Dialect
2022-06-11 23:59:00.437 INFO 7594 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform 实现: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2022-06-11 23:59:00.458 INFO 7594 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2022-06-11 23:59:02.613 INFO 7594 --- [ main] org.eclipse.jetty.server.session : DefaultSessionIdManager workerName=node0
2022-06-11 23:59:02.615 INFO 7594 --- [ main] org.eclipse.jetty.server.session : No SessionScavenger set, using defaults
2022-06-11 23:59:02.621 INFO 7594 --- [ main] org.eclipse.jetty.server.session : node0 清除每600000ms
2022-06-11 23:59:02.639 INFO 7594 --- [ main] o.e.jetty.server.handler.ContextHandler : Started o.s.b.w.e.j.JettyEmbeddedWebAppContext@29147c12{application,/,[file:///tmp/jetty-docbase.8090.5972263387205271258/, jar:file:/home/Rainy/RunHalo/halo.jar!/BOOT-INF/lib/springfox-swagger-ui-3.0.0.jar!/META-INF/resources],available}
2022-06-11 23:59:02.642 INFO 7594 --- [ main] org.eclipse.jetty.server.Server : @19376ms
2022-06-11 23:59:07.985 WARN 7594 --- [ main] r.h.app.handler.file.LocalFileHandler : 请确保 /home/Rainy/.halo/ 是一个目录,可读写!
2022-06-11 23:59:08.040 INFO 7594 --- [ main] run.halo.app.handler.file.FileHandlers : Registered 9 file handlers:
2022-06-11 23:59:08.230 WARN 7594 --- [ main] ConfigServletWebServerApplication: 上下文初始化期间遇到的异常 - 取消刷新尝试: org.springframework.beans.factory.BeanCreation例外: 在 URL 中定义的名称为“staticStorageServiceImpl” 的 Bean 时出错 [jar:file:/home/Rainy/RunHalo/halo.jar!/BOOT-INF/classes!/run/halo/app/service/impl/StaticStorageServiceImpl.class]: 通过构造函数实现 Bean 实例化失败;嵌套异常是 org.springframework.beans.BeanInstantiationException: Failed to instanceiate [run.halo.app.service.impl.StaticStorageServiceImpl]: Constructor threw exception;嵌套异常是 java.nio.file.AccessDeniedException: /home/Rainy/.halo/static
2022-06-11 23:59:08.253 INFO 7594 --- [ main] j.LocalContainerEntityManagerFactoryBean : 关闭 JPA EntityManagerFactory for persistence unit 'default'
2022-06-11 23:59:08.256 INFO 7594 --- [ main] com.zaxxer.hikari.HikariData :Source HikariPool-1 - 关闭启动...
2022-06-11 23:59:08.275 INFO 7594 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - 关闭完成。
2022-06-11 23:59:08.308 INFO 7594 --- [ main] org.eclipse.jetty.server.session : node0 Stopscaveing
2022-06-11 23:59:08.311 INFO 7594 --- [ main] o.e.jetty.server.handler.ContextHandler : Stop o.s.b.w.e.j.JettyEmbeddedWebAppContext@29147c12{application,/,[file:///tmp/jetty-docbase.8090.5972263387205271258/, jar:file:/home/Rainy/RunHalo/halo.jar!/BOOT-INF/lib/springfox-swagger-ui-3.0.0.jar!/META-INF/resources],STOPPED}
2022-06-11 23:59:08.341 INFO 7594 --- [ 主] 条件评估报告记录Listener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-06-11 23:59:08.405 ERROR 7594 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'staticStorageServiceImpl' defined in URL [jar:file:/home/Rainy/RunHalo/halo.jar!/BOOT-INF/classes!/run/halo/app/service/impl/StaticStorageServiceImpl.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [run.halo.app.service.impl.StaticStorageServiceImpl]: Constructor threw exception; nested exception is java.nio.file.AccessDeniedException: /home/Rainy/.halo/static
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:315) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:296) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1372) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1222) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:953) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.18.jar!/:5.3.18]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.18.jar!/:5.3.18]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:145) ~[spring-boot-2.5.12.jar!/:2.5.12]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) ~[spring-boot-2.5.12.jar!/:2.5.12]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:448) ~[spring-boot-2.5.12.jar!/:2.5.12]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:339) ~[spring-boot-2.5.12.jar!/:2.5.12]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1365) ~[spring-boot-2.5.12.jar!/:2.5.12]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1354) ~[spring-boot-2.5.12.jar!/:2.5.12]
at run.halo.app.Application.main(Application.java:21) ~[classes!/:1.5.3]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) ~[halo.jar:1.5.3]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108) ~[halo.jar:1.5.3]
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) ~[halo.jar:1.5.3]
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:88) ~[halo.jar:1.5.3]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [run.halo.app.service.impl.StaticStorageServiceImpl]: Constructor threw exception; nested exception is java.nio.file.AccessDeniedException: /home/Rainy/.halo/static
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:224) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:117) ~[spring-beans-5.3.18.jar!/:5.3.18]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:311) ~[spring-beans-5.3.18.jar!/:5.3.18]
... 27 common frames omitted
Caused by: java.nio.file.AccessDeniedException: /home/Rainy/.halo/static
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90) ~[na:na]
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) ~[na:na]
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116) ~[na:na]
at java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:389) ~[na:na]
at java.base/java.nio.file.Files.createDirectory(Files.java:690) ~[na:na]
at java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:797) ~[na:na]
at java.base/java.nio.file.Files.createDirectories(Files.java:783) ~[na:na]
at run.halo.app.utils.FileUtils.createIfAbsent(FileUtils.java:426) ~[classes!/:1.5.3]
at run.halo.app.service.impl.StaticStorageServiceImpl.<init>(StaticStorageServiceImpl.java:51) ~[classes!/:1.5.3]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:na]
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:na]
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) ~[na:na]
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:211) ~[spring-beans-5.3.18.jar!/:5.3.18]
... 29 common frames omitted`