Git Product home page Git Product logo

Comments (3)

zhongxinghong avatar zhongxinghong commented on August 23, 2024

这个问题我也不是很确定 ... 我也重复不出来 ... 如果让我猜测可能的原因的话

  1. 防火墙没有打开 7074 端口(但是本地应该没问题)
  2. 7074 端口已经被占用(但是 flask 应该会不能正常启动)
  3. 浏览器坑你(试一下换个浏览器,比如 Chrome,或者试一下 curl 之类的命令)
  4. 试一下 http://127.0.0.1:7074/ (werkzeug 版本差异引起 strict_slashes 的默认值不同?但是这个需要)
  5. 试一下 http://127.0.0.1:7074/stat 这种非 / 的路由

from pkuautoelective.

moulai avatar moulai commented on August 23, 2024

已经解决问题,在linux服务器端的host不能设置成127.0.0.1,设置成0.0.0.0就可以正常访问了。谢谢!

from pkuautoelective.

zhongxinghong avatar zhongxinghong commented on August 23, 2024

讲真的 linux 服务器我是可以用 127.0.0.1 的 :) ... 可能你可以去想一下为什么 127.0.0.1 不能用 ...

from pkuautoelective.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.