Giter VIP home page Giter VIP logo

skynet_fly_demo's Introduction

项目目标

  1. 使用skynet_fly开发企业级可上线游戏项目。
  2. 完成可扩展支持服务集群部署。
  3. skynet_fly+vue搭建安全可靠的admin后台,支持服务监控,警告日志查询,用户操作日志查询,游戏记录日志查询,数据看板。
  4. 游戏可全区全服匹配。
  5. 完成**象棋游戏。
  6. 后续添加球球大作战,自走棋等等游戏。

本地部署

拉取代码 git clone https://github.com/huahua132/skynet_fly_demo 拉取skynet_fly仓库 git submodule update --init 拉取skynet仓库

cd skynet_sly
git submodule update --init

拉取jemalloc仓库

cd skynet
git submodule update --init
cd ../../
chmod -R 777 skynet_fly

编译skynet_fly仓库

安装 mysql redis cd dbinstall

  • ubuntu
sh setup_ubuntu.sh

mysql -uroot -p1
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
FLUSH PRIVILEGES;
quit
  • centos sh setup.sh

启动 mysql redis

  • ubuntu sh run_ubuntu.sh

  • centos sh run.sh

启动所有服务 cd .. sh script/all_restart.sh

查看后台启动日志 cd admin/admin_server tail -f logs/server.log

访问后台 http://127.0.0.1

介绍文档

docker 部署

centos docker mysql 没一会儿就挂了,推荐用ubuntu

运行mysql

docker run --net="host" -d --name=mysql_container -e MYSQL_ROOT_PASSWORD=123456 mysql
docker exec -it mysql_container mysql -uroot -p
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123456';
FLUSH PRIVILEGES;

运行skynet_fly_demo docker run --net="host" -d huahua132/skynet_fly_demo:main

访问后台 http://127.0.0.1

客户端

**象棋

skynet_fly_demo's People

Contributors

huahua132 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.