Code Monkey home page Code Monkey logo

Comments (4)

sexchen avatar sexchen commented on May 27, 2024

在centos8中浏览没有问题,但是在关联访问时,热榜数据没有加载

好吧,我通过f12 看到jquery.js:4 GET http://127.0.0.1:8080/hot net::ERR_INVALID_HTTP_RESPONSE 我使用的宝塔不能够使用8080端口,我修改了uwsgi.ini中的端口 执行了uwsgi --ini uwsgi.ini 但是依然如此。请问应该修改什么文件修改端口呢

from crawlerhot.

pangxiaobin avatar pangxiaobin commented on May 27, 2024

服务器端部署,需要使用uwsgi + nginx 配合使用。如果修改了uwsgi.ini 中的端口号,前端代码中访问的端口也要同步修改。

from crawlerhot.

sexchen avatar sexchen commented on May 27, 2024

emmm

服务器端部署,需要使用uwsgi + nginx配合使用。如果修改了uwsgi.ini中的端口号,前端代码中访问的端口也要同步修改。

result.json我看了是有数据的,而且也按照脚本定时更新了。
uwsgi.ini的端口已经设置的和hot.html中的端口一样了,但是还是加载不出来。

我和教程有一点不一样的地方:
1.nginx是宝塔一键安装的,我将说明文档的nginx配置复制过去,网页打开会出现nginx404,宝塔默认的能加载出今日热榜,但是没有数据。
我实在是搞不懂了,可以远程协助给我支援吗?
截图_20203125063124

from crawlerhot.

pangxiaobin avatar pangxiaobin commented on May 27, 2024

抱歉,是我的问题,少描述一些问题,我会更新下说明文档。服务器部署时hot.html请求的接口应该保证和uwsgi.ini 中配置的一样,并且其IP是服务器的ip。如果有需要可以加我qq2274858959,我远程协助下你。

from crawlerhot.

Related Issues (3)

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.