登录后台报401 用户名或密码错误,总是登不进去。
刚安装好,访问路径:http://47.93.194.59:8090/console
用户名: admin
密码:P@99w0rd
登录不进去
帮我分析下哪里的问题,或者怎么把密码重置掉也行
使用mysql数据库
启动参数如下:
-server -Xms1024m -Xmx1024m -XX:MetaspaceSize=256M -XX:MaxMetaspaceSize=512m -Xss256k -XX:+DisableExplicitGC -XX:LargePageSizeInBytes=128m -Dhalo.security.initializer.superAdminUsername=admin -Dhalo.security.initializer.superAdminPassword=P@99w0rd
application.yaml配置如下:
server:
port: 8090
compression:
enabled: true
error:
whitelabel:
enabled: false
spring:
output:
ansi:
enabled: detect
r2dbc:
url: r2dbc:h2:file:///${halo.work-dir}/db/halo-next?MODE=MySQL&DB_CLOSE_ON_EXIT=FALSE
username: admin
password: 123456
sql:
init:
mode: always
platform: mysql
codec:
max-in-memory-size: 10MB
messages:
basename: config.i18n.messages
web:
resources:
cache:
cachecontrol:
max-age: 365d
halo:
external-url: "http://${server.address:localhost}:${server.port}"
work-dir: ${user.home}/.halo2
plugin:
plugins-root: ${halo.work-dir}/plugins
attachment:
resource-mappings:
- pathPattern: /upload/**
locations:
- migrate-from-1.x
springdoc:
api-docs:
enabled: false
logging:
file:
name: ${halo.work-dir}/logs/halo.log
logback:
rollingpolicy:
max-file-size: 10MB
total-size-cap: 1GB
max-history: 0
management:
endpoints:
web:
exposure:
include: ["health", "info", "startup", "globalinfo", "logfile"]
endpoint:
health:
probes:
enabled: true
info:
java:
enabled: true
os:
enabled: true