当前位置:论坛首页 > Linux面板 > 求助

求助!重装系统后再次部署宝塔Linux面板——无法登录问题

发表在 Linux面板前天 17:17 [复制链接] 0 118

本帖最后由 SullivanHua 于 2024-11-13 09:14 编辑

各位技术大神们,我现在遇到了一个非常棘手的问题,急需大家的帮助。
为了能快速了解并处理问题,现提供以下基础信息:
面板版本

使用的是 Linux 面板安装脚本 Ubuntu/Deepin 稳定版 9.0.0。
系统版本

opiaipro_ubuntu22.04_desktop_aarch64_20240923.img
问题描述

一开始,我在香橙派开发板上进行首次部署宝塔面板非常成功,当时的回显信息如下:
  1. 【云服务器】请在安全组放行 18465 端口
  2. 外网面板地址:https://113.118.83.252:18465/9c936c7c
  3. 内网面板地址:https://192.168.1.109:18465/9c936c7c
复制代码

然而,后来我在通过这个宝塔面板(内网面板地址)进行重启服务器的过程中,
开发板不小心断电了,没有等到内网面板地址重启完成。
从那以后,开发板就无法通过 SSH 连接了,不过奇怪的是,ping 192.168.1.109 仍然是正常的。


没办法,我只好重新格式化了香橙派开发板 Ubuntu 系统的 TF 存储卡,
并重新烧录 Ubuntu 系统镜像。
再次部署宝塔面板后,回显信息变成了:
  1. 【云服务器】请在安全组放行 25007 端口
  2. 外网面板地址:https://113.118.83.186:25007/63d64c89
  3. 内网面板地址:https://172.17.0.1:25007/63d64c89
复制代码

现在的问题是,这个内网面板地址并不是我开发板的 IP(192.168.1.109),
所以我点击回显地址后根本无法登录宝塔面板。


我已经尝试了很多方法,包括检查网络配置(如下截图)、查看宝塔面板的配置文件等,
但都没有解决这个问题。
相关截图(网络配置命令及回显

命令1
  1. ifconfig
复制代码
ifconfig.png

命令2
  1. route -n
复制代码
route -n.png

命令3
  1. ip ro
复制代码
ip ro.png

命令4
  1. curl -vvv --connect-timeout 10 -m 60 https://www.bt.cn/api/getipaddress
复制代码
  1. *   Trying 211.99.98.160:443...
  2. * Connected to www.bt.cn (211.99.98.160) port 443 (#0)
  3. * ALPN, offering h2
  4. * ALPN, offering http/1.1
  5. *  CAfile: /etc/ssl/certs/ca-certificates.crt
  6. *  CApath: /etc/ssl/certs
  7. * TLSv1.0 (OUT), TLS header, Certificate Status (22):
  8. * TLSv1.3 (OUT), TLS handshake, Client hello (1):
  9. * TLSv1.2 (IN), TLS header, Certificate Status (22):
  10. * TLSv1.3 (IN), TLS handshake, Server hello (2):
  11. * TLSv1.2 (IN), TLS header, Finished (20):
  12. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  13. * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
  14. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  15. * TLSv1.3 (IN), TLS handshake, Certificate (11):
  16. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  17. * TLSv1.3 (IN), TLS handshake, CERT verify (15):
  18. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  19. * TLSv1.3 (IN), TLS handshake, Finished (20):
  20. * TLSv1.2 (OUT), TLS header, Finished (20):
  21. * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
  22. * TLSv1.2 (OUT), TLS header, Supplemental data (23):
  23. * TLSv1.3 (OUT), TLS handshake, Finished (20):
  24. * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
  25. * ALPN, server accepted to use h2
  26. * Server certificate:
  27. *  subject: C=CN; ST=\U5E7F\U4E1C\U7701; O=\U5E7F\U4E1C\U5821\U5854\U5B89\U5168\U6280\U672F\U6709\U9650\U516C\U53F8; CN=*.bt.cn
  28. *  start date: Sep 23 00:00:00 2024 GMT
  29. *  expire date: Oct 24 23:59:59 2025 GMT
  30. *  subjectAltName: host "www.bt.cn" matched cert's "*.bt.cn"
  31. *  issuer: C=CN; O=sslTrus; CN=sslTrus (RSA) OV CA
  32. *  SSL certificate verify ok.
  33. * Using HTTP2, server supports multiplexing
  34. * Connection state changed (HTTP/2 confirmed)
  35. * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
  36. * TLSv1.2 (OUT), TLS header, Supplemental data (23):
  37. * TLSv1.2 (OUT), TLS header, Supplemental data (23):
  38. * TLSv1.2 (OUT), TLS header, Supplemental data (23):
  39. * Using Stream ID: 1 (easy handle 0xaaaaecfa2cc0)
  40. * TLSv1.2 (OUT), TLS header, Supplemental data (23):
  41. > GET /api/getipaddress HTTP/2
  42. > Host: www.bt.cn
  43. > user-agent: curl/7.81.0
  44. > accept: */*
  45. >
  46. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  47. * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
  48. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  49. * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
  50. * old SSL session ID is stale, removing
  51. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  52. * Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
  53. * TLSv1.2 (OUT), TLS header, Supplemental data (23):
  54. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  55. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  56. < HTTP/2 200
  57. < server: openresty
  58. < date: Wed, 13 Nov 2024 00:46:31 GMT
  59. < content-type: text/html;charset=utf8
  60. < content-length: 14
  61. < strict-transport-security: max-age=31536000; includeSubdomains; preload
  62. < strict-transport-security: max-age=31536000
  63. < x-frame-options: SAMEORIGIN
  64. < strict-transport-security: max-age=31536000
  65. <
  66. * Connection #0 to host www.bt.cn left intact
  67. 113.118.83.186(base) root@orangepiaipro:/home/HwHiAiUser/Downloads#
复制代码

命令5
  1. curl -vvv --connect-timeout 10 -m 60 https://api.bt.cn/Api/getIpAddress
复制代码
  1. *   Trying 211.99.98.159:443...
  2. * Connected to api.bt.cn (211.99.98.159) port 443 (#0)
  3. * ALPN, offering h2
  4. * ALPN, offering http/1.1
  5. *  CAfile: /etc/ssl/certs/ca-certificates.crt
  6. *  CApath: /etc/ssl/certs
  7. * TLSv1.0 (OUT), TLS header, Certificate Status (22):
  8. * TLSv1.3 (OUT), TLS handshake, Client hello (1):
  9. * TLSv1.2 (IN), TLS header, Certificate Status (22):
  10. * TLSv1.3 (IN), TLS handshake, Server hello (2):
  11. * TLSv1.2 (IN), TLS header, Finished (20):
  12. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  13. * TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
  14. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  15. * TLSv1.3 (IN), TLS handshake, Certificate (11):
  16. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  17. * TLSv1.3 (IN), TLS handshake, CERT verify (15):
  18. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  19. * TLSv1.3 (IN), TLS handshake, Finished (20):
  20. * TLSv1.2 (OUT), TLS header, Finished (20):
  21. * TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
  22. * TLSv1.2 (OUT), TLS header, Supplemental data (23):
  23. * TLSv1.3 (OUT), TLS handshake, Finished (20):
  24. * SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
  25. * ALPN, server accepted to use h2
  26. * Server certificate:
  27. *  subject: C=CN; ST=\U5E7F\U4E1C\U7701; O=\U5E7F\U4E1C\U5821\U5854\U5B89\U5168\U6280\U672F\U6709\U9650\U516C\U53F8; CN=*.bt.cn
  28. *  start date: Sep 23 00:00:00 2024 GMT
  29. *  expire date: Oct 24 23:59:59 2025 GMT
  30. *  subjectAltName: host "api.bt.cn" matched cert's "*.bt.cn"
  31. *  issuer: C=CN; O=sslTrus; CN=sslTrus (RSA) OV CA
  32. *  SSL certificate verify ok.
  33. * Using HTTP2, server supports multiplexing
  34. * Connection state changed (HTTP/2 confirmed)
  35. * Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
  36. * TLSv1.2 (OUT), TLS header, Supplemental data (23):
  37. * TLSv1.2 (OUT), TLS header, Supplemental data (23):
  38. * TLSv1.2 (OUT), TLS header, Supplemental data (23):
  39. * Using Stream ID: 1 (easy handle 0xaaaad4b0acc0)
  40. * TLSv1.2 (OUT), TLS header, Supplemental data (23):
  41. > GET /Api/getIpAddress HTTP/2
  42. > Host: api.bt.cn
  43. > user-agent: curl/7.81.0
  44. > accept: */*
  45. >
  46. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  47. * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
  48. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  49. * TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
  50. * old SSL session ID is stale, removing
  51. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  52. * Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
  53. * TLSv1.2 (OUT), TLS header, Supplemental data (23):
  54. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  55. * TLSv1.2 (IN), TLS header, Supplemental data (23):
  56. < HTTP/2 200
  57. < server: nginx
  58. < date: Wed, 13 Nov 2024 01:07:58 GMT
  59. < content-type: text/html;charset=utf8
  60. < vary: Accept-Encoding
  61. < strict-transport-security: max-age=31536000
  62. <
  63. * Connection #0 to host api.bt.cn left intact
  64. 113.118.83.186(base) root@orangepiaipro:/home/HwHiAiUser/Downloads#
复制代码

希望有经验的朋友们能给我一些指导和建议,帮助我解决这个难题。非常感谢大家!
使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表