本人在5.30号成功使用jar文件部署Halo博客并成功运行,但是6.14号试着访问时报错503。
云服务器是在vultr上租的,在成功部署之后就没有使用SSH来连接云服务器进行任何操作。之后我试着重启服务器和重新启动halo.service脚本,均无法访问。
输出日志如下:
`[root@vultr .halo2]# sudo systemctl status halo
● halo.service - Halo Service
Loaded: loaded (/etc/systemd/system/halo.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2024-06-16 09:44:57 UTC; 1min 52s ago
Docs: https://docs.halo.run
Process: 2719 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS)
Main PID: 2749 (java)
Tasks: 31 (limit: 4655)
Memory: 371.1M
CGroup: /system.slice/halo.service
└─2749 /opt/jdk-17/bin/java -server -Xms256m -Xmx256m -jar /root/app/halo.jar --spring.config.additional-location=optional:file:/home/halo/.halo2/
Jun 16 09:45:29 vultr.guest java[2749]: 2024-06-16 09:45:29.311 INFO 2749 --- [ main] o.f.c.i.s.JdbcTableSchemaHistory : Repair of failed migration in Schema History tab>
Jun 16 09:45:29 vultr.guest java[2749]: 2024-06-16 09:45:29.346 INFO 2749 --- [ main] o.f.core.internal.command.DbRepair : Successfully repaired schema history table "PUBL>
Jun 16 09:45:29 vultr.guest java[2749]: 2024-06-16 09:45:29.361 INFO 2749 --- [ main] o.f.c.internal.license.VersionPrinter : Flyway Community Edition 7.15.0 by Redgate
Jun 16 09:45:29 vultr.guest java[2749]: 2024-06-16 09:45:29.392 INFO 2749 --- [ main] o.f.core.internal.command.DbValidate : Successfully validated 6 migrations (execution t>
Jun 16 09:45:29 vultr.guest java[2749]: 2024-06-16 09:45:29.428 INFO 2749 --- [ main] o.f.core.internal.command.DbMigrate : Current version of schema "PUBLIC": 6
Jun 16 09:45:29 vultr.guest java[2749]: 2024-06-16 09:45:29.450 INFO 2749 --- [ main] o.f.core.internal.command.DbMigrate : Schema "PUBLIC" is up to date. No migration nece>
Jun 16 09:45:29 vultr.guest java[2749]: 2024-06-16 09:45:29.452 INFO 2749 --- [ main] run.halo.app.listener.StartedListener : Migrate database succeed.
Jun 16 09:45:29 vultr.guest java[2749]: 2024-06-16 09:45:29.844 INFO 2749 --- [ main] run.halo.app.listener.StartedListener : Halo started at http://127.0.0.1:8090
Jun 16 09:45:29 vultr.guest java[2749]: 2024-06-16 09:45:29.844 INFO 2749 --- [ main] run.halo.app.listener.StartedListener : Halo admin started at http://127.0.0.1:8090/ad>
Jun 16 09:45:29 vultr.guest java[2749]: 2024-06-16 09:45:29.845 INFO 2749 --- [ main] run.halo.app.listener.StartedListener : Halo has started successfully!
`
在本地服务器使用wget来访问http://127.0.0.1:8090和http://45.76.110.33:8090均可以成功,但是在外部服务器上不能正常访问。
``
在使用ip检测工具(https://www.toolsdaquan.com/ipcheck/)对8090端口和22端口进行检测时结果如下:
想请教一下大佬这个问题该怎么解决,如果要重新部署的话文章内容可以在哪里找到,不胜感激!