17 Star 74 Fork 35

Plato / ServiceBox

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README-install.md 1.97 KB
一键复制 编辑 原始数据 按行查看 历史
leozhou 提交于 2021-07-05 19:26 . ISSUE: #I3V2V1

安装依赖

Windows

需要首先安装JDK8.

下载

https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html

配置JDK环境路径

https://www.cnblogs.com/liuhongfeng/p/4177568.html

下载安装Python并配置环境(推荐3.x版本)

https://www.cnblogs.com/xcc-/p/xcc02.html

点击我访问上面链接

安装cmake版本>3.5

下载

https://cmake.org/download/

安装Visual Studio Community 2019

下载

https://visualstudio.microsoft.com/zh-hans/vs/
  1. 搭建单机运行环境

使用管理员权限运行如下命令:

cd build
install_win.bat
  1. 单机环境启动/关闭

启动

tools目录下运行: start_win_local_env.bat

关闭

tools目录下运行: stop_win_local_env.bat
  1. 发布

发布默认容器

  1. 启动默认容器

启动

tools目录下运行: start_win_box.bat

Linux

  1. 搭建单机运行环境

使用管理员权限运行如下命令:

cd build
chmod +x install_linux.sh
./install_linux.sh
  1. 单机环境启动/关闭

启动

tools目录下运行: ./start_linux_local_env.sh

关闭

tools目录下运行: ./stop_linux_local_env.sh
  1. 发布

发布默认容器

  1. 启动默认容器

启动

tools目录下运行: ./start_linux_box.sh

Docker

docker pull denniswang1980/service_box:v1.0.12.alpha
docker run --name=service_box --restart=always -p6889:6889 -p10888:10888 -d denniswang1980/service_box:v1.0.12.alpha /usr/sbin/init

使用镜像启动容器, 需要开放6889, 10888端口,进入容器后:

docker exec -it service_box bash

1.克隆仓库:

git clone https://gitee.com/dennis-kk/service-box
  1. 初始化仓库, service-box/build/目录内运行:
chmod +x ./docker_build.sh
./docker_build.sh
  1. 发布

发布默认容器

  1. 启动默认容器

启动

tools目录下运行: ./start_linux_box.sh
C++
1
https://gitee.com/dennis-kk/service-box.git
git@gitee.com:dennis-kk/service-box.git
dennis-kk
service-box
ServiceBox
master

搜索帮助