Giter Site home page Giter Site logo

xuexi_docker_update's Introduction

说明 本仓库源于Techxuexi仓库 地址:https://github.com/TechXueXi/TechXueXi 略作本地修改,主要是自用,感谢techxuexi的各位开发者!

fork自 https://github.com/ywk1000/xuexi 继续维护,主要是搜集了issue内大家所提出的修复方法

本项目为docker版后续修正,适用于有公网ip的云服务器或者会内网穿透的小伙伴使用,如果选用其他方式请自行参照 https://github.com/TechXueXi/TechXueXi 学习研究

首先进入linux系统

cd /opt

下载本仓库文件 用于替换

git clone https://github.com/Yuulong/xuexi.git

进入xuexi目录

cd xuexi

docker-compose 默认映射到/opt/xuexi 如果你的cpu架构不是x86 或者定时之类的修改,都可以详细去看看docker-compose.yaml文件, 里面都是照搬techxuexi的代码, 可以参照techxuexi的模板修改

docker-compose up -d

进入xuexi容器内

docker exec -it xuexi bash

进入 user 目录

cd user

修复诸多问题

sh fix.sh

退出容器

exit

容器外查看运行记录

docker logs -f xuexi

停止查看历史

按下 ctrl + c 按键即可停止

直接在浏览器打开 服务器ip:30080 即可查看网页 如果打不开,那么就是你的防火墙端口没开,请检查你的防火墙

如果需要修改端口,可以在docker-compose.yaml 文件 第18行 30080:80 这里就是将容器内80端口映射到服务器宿主机30080端口,容器内端口都在techxuexi内部代码,这里简单修改宿主机端口即可

更新一个 github 搭建的跳板,速度只能算可用,也算个更新吧

因为原作者不更新了。网站跳板不确定其稳定性,docker-compose.yaml原为

xuexi_docker_update's People

Contributors

y2038558528 avatar yuulong avatar ywk1000 avatar

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.