Comments (5)
建议按照文档进行部署:https://github.com/simplefanC/voj/blob/main/docs/src/deploy/docker.md
我刚在一台新服务器上进行验证,没有出现这个问题。
具体报错建议查看容器日志排查解决。
from voj.
voj-deploy/standAlone# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b239d53e101a registry.cn-shanghai.aliyuncs.com/simplefanc/voj_judger "bash ./check_nacos.…" About a minute ago Up 39 seconds 5050/tcp, 0.0.0.0:8088->8088/tcp, :::8088->8088/tcp voj-judger
7e6d2187f1d6 registry.cn-shanghai.aliyuncs.com/simplefanc/voj_backend "bash ./check_nacos.…" About a minute ago Up 38 seconds 0.0.0.0:6688->6688/tcp, :::6688->6688/tcp voj-backend
3d611b12ea68 nacos/nacos-server:1.4.2 "bin/docker-startup.…" About a minute ago Up 38 seconds (health: starting) 0.0.0.0:8848->8848/tcp, :::8848->8848/tcp voj-nacos
968abe70031e registry.cn-shanghai.aliyuncs.com/simplefanc/voj_frontend "/docker-entrypoint.…" About a minute ago Up 47 seconds 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp voj-frontend
7a535daeeffe mysql:5.7 "docker-entrypoint.s…" About a minute ago Restarting (1) 5 seconds ago voj-mysql
8862d8752fda redis:5.0.9-alpine "docker-entrypoint.s…" About a minute ago Up 47 seconds 0.0.0.0:6379->6379/tcp, :::6379->6379/tcp voj-redis
a67a443ca497 hello-world "/hello" 5 days ago Exited (0) 5 days ago
voj-mysql启动不了,我尝试了4-5次,每次都是3个小时才能docker-compose up -d完成,错误都是一样的。
from voj.
1.只有第一次pull镜像时会慢点(网络好的情况下大概几分钟吧)。3个小时夸张了,建议配置Docker容器加速。
2.docker logs voj-mysql查看容器日志
from voj.
voj-deploy/sql# docker logs voj-mysql
2022-10-15 20:34:24+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.40-1.el7 started.
2022-10-15 20:34:24+08:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
command was: mysqld --verbose --help --log-bin-index=/tmp/tmp.GP5I1aQQQp
mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
2022-10-15 20:34:28+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.40-1.el7 started.
2022-10-15 20:34:28+08:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
command was: mysqld --verbose --help --log-bin-index=/tmp/tmp.yibQIUigtH
mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
2022-10-15 20:34:31+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.40-1.el7 started.
2022-10-15 20:34:31+08:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
command was: mysqld --verbose --help --log-bin-index=/tmp/tmp.6mSiWsVVsY
完全按照操作文档走的,mysql一直处于启动中。
from voj.
可以做如下尝试:
1.建议最好使用Linux系统,首选用ubuntu 18.04及以上版本系统。
2.先切换root用户,再执行up。
3.尝试修改docker-compose.yml
脚本中mysql镜像版本为image: mysql:8
。
4.其他问题请自行搜索解决。
(建议:本项目不太适合开发基础较薄弱的用户,过程中难免会遇到坑需要自己判断解决)
from voj.
Related Issues (5)
- 无法判题 HOT 5
- SQL缺失 HOT 2
- voj-mysql容器warning
- 想学习一下,怎么找不到数据库 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from voj.