线上问题解决

15 篇文章 0 订阅
3 篇文章 0 订阅
  1. 首先发送postman报错:
    如果报错:
    Unable to round-trip http request to upstream: dial tcp 192.168.1.66:8000: connectex: No connection could be made because the target machine actively refused it.
    可能你开了蓝灯等代理软件; 但是这不是主要原因
  2. 然后发现python启动方式:
python manage.py runserver 0.0.0.0:8000
  1. 我就觉得这是监听8000端口, 但是项目启动是8081

  2. 通过curl -v "http://localhost:8081/transformation_api?id=1010&name=2.png&img_1=http://192.168.1.173:8081/guanweidata/change/2021-05-11/1-210511094155803.png&img_2=http://192.168.1.173:8081/guanweidata/change/2021-05-11/2-210511094159147.png&detecttype=transformation_detection"失败
    在这里插入图片描述

  3. 通过netstat -antp | grep 8081 显示不正常,就是没有监听8081这个端口
    在这里插入图片描述

  4. 通过curl -v "http://localhost:8000/transformation_api?id=1010&name=2.png&img_1=http://192.168.1.173:8081/guanweidata/change/2021-05-11/1-210511094155803.png&img_2=http://192.168.1.173:8081/guanweidata/change/2021-05-11/2-210511094159147.png&detecttype=transformation_detection"成功!
    在这里插入图片描述

  5. 算法修改启动,并监听程序启动端口
    在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值