联系方式
https://t.me/TheJumpBot
1Panel 版本
latest(无法登录控制台)
问题描述
在甲骨文的amd机器上的ubuntu系统中,安装成功后,无法通过ip+端口访问。
防火墙和安全组均没有问题,日志如下。
安装过程及日志(已隐匿ip)
root@ray-oracle-b:~# ./quick_start.sh
安装包已存在,跳过下载
1panel-v1.10.2-lts-linux-amd64/1panel.service
1panel-v1.10.2-lts-linux-amd64/1pctl
1panel-v1.10.2-lts-linux-amd64/LICENSE
1panel-v1.10.2-lts-linux-amd64/README.md
1panel-v1.10.2-lts-linux-amd64/install.sh
1panel-v1.10.2-lts-linux-amd64/1panel
██╗ ██████╗ █████╗ ███╗ ██╗███████╗██╗
███║ ██╔══██╗██╔══██╗████╗ ██║██╔════╝██║
╚██║ ██████╔╝███████║██╔██╗ ██║█████╗ ██║
██║ ██╔═══╝ ██╔══██║██║╚██╗██║██╔══╝ ██║
██║ ██║ ██║ ██║██║ ╚████║███████╗███████╗
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚══════╝
[1Panel Log]: ======================= 开始安装 =======================
设置 1Panel 安装目录(默认为/opt):
[1Panel Log]: 您选择的安装路径为 /opt
[1Panel Log]: 检测到 Docker 已安装,跳过安装步骤
[1Panel Log]: 启动 Docker
[1Panel Log]: 检测到 Docker Compose 已安装,跳过安装步骤
设置 1Panel 端口(默认为40786):8765
[1Panel Log]: 您设置的端口为:8765
[1Panel Log]: 防火墙未开启,忽略端口开放
[1Panel Log]: 防火墙开放 8765 端口
Rules updated
Rules updated (v6)
Firewall not enabled (skipping reload)
设置 1Panel 面板用户(默认为2d591df661):ray
[1Panel Log]: 您设置的面板用户为:ray
设置 1Panel 面板密码(默认为e7c51fc8cb):
[1Panel Log]: 配置 1Panel Service
Created symlink /etc/systemd/system/multi-user.target.wants/1panel.service → /etc/systemd/system/1panel.service.
[1Panel Log]: 启动 1Panel 服务
[1Panel Log]: 1Panel 服务启动成功!
[1Panel Log]:
[1Panel Log]: =================感谢您的耐心等待,安装已经完成==================
[1Panel Log]:
[1Panel Log]: 请用浏览器访问面板:
[1Panel Log]: 外网地址: http://xxx.xxx.xxx.xxx:8765/7f9eae595c
[1Panel Log]: 内网地址: http://10.0.0.98:8765/7f9eae595c
[1Panel Log]: 面板用户: ray
[1Panel Log]: 面板密码: xxxxxx
[1Panel Log]:
[1Panel Log]: 项目官网: https://1panel.cn
[1Panel Log]: 项目文档: https://1panel.cn/docs
[1Panel Log]: 代码仓库: https://github.com/1Panel-dev/1Panel
[1Panel Log]:
[1Panel Log]: 如果使用的是云服务器,请至安全组开放 8765 端口
[1Panel Log]:
[1Panel Log]: ================================================================
安装成功后,使用浏览器访问http://xxx.xxx.xxx.xxx:8765/7f9eae595c,不通。

1pctl status
root@ray-oracle-b:~# 1pctl status
● 1panel.service - 1Panel, a modern open source linux panel
Loaded: loaded (/etc/systemd/system/1panel.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2024-04-01 16:10:42 UTC; 2min 32s ago
Main PID: 1285038 (1panel)
Tasks: 5 (limit: 1064)
Memory: 76.4M
CGroup: /system.slice/1panel.service
└─1285038 /usr/bin/1panel
Apr 01 16:10:49 ray-oracle-b 1panel[1285038]: [GIN-debug] POST /api/v1/websites/ca --> github.com/1Panel-dev/1Panel/backend/app/api/v1.(*BaseApi).Creat>
Apr 01 16:10:49 ray-oracle-b 1panel[1285038]: [GIN-debug] POST /api/v1/websites/ca/del --> github.com/1Panel-dev/1Panel/backend/app/api/v1.(*BaseApi).Delet>
Apr 01 16:10:49 ray-oracle-b 1panel[1285038]: [GIN-debug] POST /api/v1/websites/ca/obtain --> github.com/1Panel-dev/1Panel/backend/app/api/v1.(*BaseApi).Obta>
Apr 01 16:10:49 ray-oracle-b 1panel[1285038]: [GIN-debug] POST /api/v1/websites/ca/renew --> github.com/1Panel-dev/1Panel/backend/app/api/v1.(*BaseApi).Renew>
Apr 01 16:10:49 ray-oracle-b 1panel[1285038]: [GIN-debug] GET /api/v1/websites/ca/:id --> github.com/1Panel-dev/1Panel/backend/app/api/v1.(*BaseApi).GetWe>
Apr 01 16:10:49 ray-oracle-b 1panel[1285038]: [2024-04-01 16:10:49] [INFO] listen at http://0.0.0.0:8765 [tcp4]
Apr 01 16:10:51 ray-oracle-b 1panel[1285038]: [2024-04-01 16:10:51] [INFO] [AppStore] download file from https://apps-assets.fit2cloud.com/stable/1panel.json.z>
Apr 01 16:10:52 ray-oracle-b 1panel[1285038]: [2024-04-01 16:10:52] [INFO] Starting synchronization of application details...
Apr 01 16:10:55 ray-oracle-b 1panel[1285038]: [2024-04-01 16:10:55] [INFO] Synchronization of application details Success
Apr 01 16:10:56 ray-oracle-b 1panel[1285038]: [2024-04-01 16:10:56] [INFO] Synchronization with the App Store was successful!
端口监听情况
端口被正常监听
root@ray-oracle-b:~# netstat -tunlp | grep 8765
tcp 0 0 0.0.0.0:8765 0.0.0.0:* LISTEN 1285038/1panel
curl
使用ip加端口,得不到结果;但是使用localhost加端口,却能得到结果。
root@ray-oracle-b:~# curl http://xxx.xxx.xxx.xxx:8765
curl: (7) Failed to connect to xxx.xxx.xxx.xxx port 8765: No route to host
root@ray-oracle-b:~# curl localhost:8765
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/assets/png/favicon-abe32304.png" />
<meta name="robots" content="noindex,nofollow" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>loading...</title>
<script type="module" crossorigin src="/assets/js/index-d1c15487.js"></script>
<link rel="stylesheet" href="/assets/css/index-774e53d7.css">
</head>
<body>
<div id="app">
<style>
html,
body,
#app {
width: 100%;
height: 100%;
padding: 0;
margin: 0;
}
.first-loading-wrap {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.first-loading-wrap > h1 {
font-size: 128px;
}
.first-loading-wrap .loading-wrap {
display: flex;
align-items: center;
justify-content: center;
padding: 98px;
}
.dot {
position: relative;
box-sizing: border-box;
display: inline-block;
width: 32px;
height: 32px;
font-size: 32px;
transform: rotate(45deg);
animation: ant-rotate 1.2s infinite linear;
}
.dot i {
position: absolute;
display: block;
width: 14px;
height: 14px;
background-color: #1890ff;
border-radius: 100%;
opacity: 0.3;
transform: scale(0.75);
transform-origin: 50% 50%;
animation: ant-spin-move 1s infinite linear alternate;
}
.dot i:nth-child(1) {
top: 0;
left: 0;
}
.dot i:nth-child(2) {
top: 0;
right: 0;
animation-delay: 0.4s;
}
.dot i:nth-child(3) {
right: 0;
bottom: 0;
animation-delay: 0.8s;
}
.dot i:nth-child(4) {
bottom: 0;
left: 0;
animation-delay: 1.2s;
}
@keyframes ant-rotate {
to {
transform: rotate(405deg);
}
}
@keyframes ant-spin-move {
to {
opacity: 1;
}
}
</style>
<div class="first-loading-wrap">
<div class="loading-wrap">
<span class="dot dot-spin">
<i></i>
<i></i>
<i></i>
<i></i>
</span>
</div>
</div>
</div>
</body>
</html>
作为对比,以及为了排除防火墙和安全组问题,我停掉1panel后,使用docker启了一个nginx,同样监听8765端口,一切都是正常的。
运行nginx
docker run -d -p 8765:80 nginx:latest

端口监听情况
root@ray-oracle-b:~# netstat -tunlp | grep 8765
tcp 0 0 0.0.0.0:8765 0.0.0.0:* LISTEN 1276317/docker-prox
tcp6 0 0 :::8765 :::* LISTEN 1276323/docker-prox
curl
不管是ip+端口还是localhost+端口,均能得到正确结果。
root@ray-oracle-b:~# curl http://xxx.xx.xxx.xxx:8765
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
root@ray-oracle-b:~# curl localhost:8765
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
重现步骤
follow文档执行安装指令:curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh
期待的正确结果
安装成功后可以从外部访问。
相关日志输出
No response
附加信息
No response
联系方式
https://t.me/TheJumpBot
1Panel 版本
latest(无法登录控制台)
问题描述
在甲骨文的amd机器上的ubuntu系统中,安装成功后,无法通过ip+端口访问。
防火墙和安全组均没有问题,日志如下。
安装过程及日志(已隐匿ip)
安装成功后,使用浏览器访问
http://xxx.xxx.xxx.xxx:8765/7f9eae595c,不通。1pctl status
端口监听情况
端口被正常监听
curl
使用ip加端口,得不到结果;但是使用localhost加端口,却能得到结果。
作为对比,以及为了排除防火墙和安全组问题,我停掉1panel后,使用docker启了一个nginx,同样监听8765端口,一切都是正常的。
运行nginx
端口监听情况
curl
不管是ip+端口还是localhost+端口,均能得到正确结果。
重现步骤
follow文档执行安装指令:
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh期待的正确结果
安装成功后可以从外部访问。
相关日志输出
No response
附加信息
No response