davinci icon indicating copy to clipboard operation
davinci copied to clipboard

云端部署无法正常访问

Open stitchLau opened this issue 3 years ago • 6 comments

  1. 在云服务器中配置server.portserver.address,不启用server.access.portserver.address,地址配置为127.0.0.1外部无法访问;
  2. 配置server.address为云服务器公网地址,报错Cannot assign requested address: bind
  3. 配置servere.address127.0.0.1server.access.address为公网地址,启动失败Cannot assign requested address

stitchLau avatar Dec 08 '21 08:12 stitchLau

您好!您的邮件已经收到, 感谢您的来信。这是自动回复的邮件,我将在看到邮件内容后的第一时间内进行接下来的处理,谢谢!祝:工作顺利!---------------------------------------------陈水军手机:137-7747-3861

bjchenshuijun avatar Dec 08 '21 08:12 bjchenshuijun

您好!您的邮件已经收到, 感谢您的来信。这是自动回复的邮件,我将在看到邮件内容后的第一时间内进行接下来的处理,谢谢!祝:工作顺利!---------------------------------------------陈水军手机:137-7747-3861

这是谁?是骗子吗?这位不是项目组成员

fumiwork avatar Dec 08 '21 09:12 fumiwork

有没有可能你的端口,在防火墙里面规则没有打开?所以127.0.0.1的时候走内部是没问题,但是换成公网ip端口没开呢???

yuluochengxin avatar Dec 10 '21 08:12 yuluochengxin

有没有可能你的端口,在防火墙里面规则没有打开?所以127.0.0.1的时候走内部是没问题,但是换成公网ip端口没开呢???

服务器出站规则有设置,服务器控制台也打开了相应端口,目前通过Nginx进行代理已可进行正常访问,但类似于注册等需要生成链接的功能无法正常使用。

stitchLau avatar Dec 11 '21 02:12 stitchLau

I am suffering this same problem, any helps are great welcome!

57592856 avatar Jun 06 '22 16:06 57592856

A goods news i solved this problem yesterday,the reason is Tencent cloud server has a inside IP and a outside IP,you could try modify the application.yml as below:
`server:
protocol: http
address: 10.0.12.4 #Tencent inside IP,get this IP from Tencent cloud wordspace。
port: 80

access:
address: 101.35.54.18 #Tencent outside IP,get this IP from Tencent cloud wordspace。
port: 80`

57592856 avatar Jun 07 '22 02:06 57592856