We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
例行检查
问题描述
docker run --name one-api -d --restart always -p 3000:3000 -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" -e TZ=Asia/Shanghai -v /home/ubuntu/data/one-api:/data justsong/one-api
在云服务器上用这个命令 指定SQL_DSN 无法通过服务器ip+3000端口打开网页
发现指定SQL_DSN后 仅仅开放了ipv6的3000端口 tcp6 0 0 :::3000 :::* LISTEN
复现步骤
预期结果
相关截图 如果没有的话,请删除此节。
The text was updated successfully, but these errors were encountered:
docker logs -f one-api 进去看看日志,多半是连接数据库失败,没有启动起来
Sorry, something went wrong.
知道原因了 云服务器有两层防火墙。跟代码没关系
No branches or pull requests
例行检查
问题描述
docker run --name one-api -d --restart always -p 3000:3000 -e SQL_DSN="root:123456@tcp(localhost:3306)/oneapi" -e TZ=Asia/Shanghai -v /home/ubuntu/data/one-api:/data justsong/one-api
在云服务器上用这个命令 指定SQL_DSN
无法通过服务器ip+3000端口打开网页
发现指定SQL_DSN后 仅仅开放了ipv6的3000端口
tcp6 0 0 :::3000 :::* LISTEN
复现步骤
预期结果
相关截图
如果没有的话,请删除此节。
The text was updated successfully, but these errors were encountered: