Git Product home page Git Product logo

Comments (7)

Cl0udG0d avatar Cl0udG0d commented on July 28, 2024

不好意思啊,之前一直在写期末课程设计的报告和文档,所以现在才回复。
如果是想要检查错误的原因,启动docker时可以不加-d参数,这样能够不在后台运行,从而看到报错的原因,即启动docker 时使用命令:
docker-compose up
或者是导出docker的log日志进行查看错误
不过我个人感觉你出现这个错误的原因是数据库中某些表没有正确创建,究其根本或许是因为下载python库的时候访问国外网站导致部分包的丢失,为了能够更快地解决这个问题,建议你先删除掉本地docker镜像,修改SZhe_Scan文件夹下的Dockerfile文件
原来的Dockerfile文件里有一句:
RUN pip install -r requirements.txt
假设你有Linux基础哈,没有也没关系,修改文件很简单的,查一下就行了,修改上面那一句为:
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
也就是将python下载的源转至国内。
我不认为这是错误哈,因为下载源在国内或者国外,都各有好处吧,只是一个取舍罢了。
将其改过来之后再使用:
docker-compose up -d
应该就能够正常运行了
cheer,祝你愉快

from szhe_scan.

dead5nd avatar dead5nd commented on July 28, 2024

hello,看了一下好像是redis镜像创建有问题,6379端口访问被拒绝了...
image

from szhe_scan.

EmptyZeroRain avatar EmptyZeroRain commented on July 28, 2024

数据库连接不上
`
QQ图片20200610113827

from szhe_scan.

Cl0udG0d avatar Cl0udG0d commented on July 28, 2024

刚才我在另一台云服务器上部署成功了,然后将源码Dockerfile文件中pip下载源改回到了国内。如果你们这个问题还没有解决的话,就请将之前的docker镜像删除掉,然后下载最新的github源码,按照之前的部署方式重新部署,应该就可以了,祝好

from szhe_scan.

dead5nd avatar dead5nd commented on July 28, 2024

可以啦,如果遇到错误就多docker-compose up 几次

from szhe_scan.

Cl0udG0d avatar Cl0udG0d commented on July 28, 2024

好的,那我把这个issue关闭了哈 👯

from szhe_scan.

dead5nd avatar dead5nd commented on July 28, 2024

好的

from szhe_scan.

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.