# GameSvr **Repository Path**: yiliangwu880/GameSvr ## Basic Information - **Project Name**: GameSvr - **Description**: 1 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-13 - **Last Updated**: 2025-09-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### 介绍 目的用作新游戏项目的服务器模板。 已加入必须的各种基础组件 也作为演示 https://gitee.com/yiliangwu880/RS.git 里面所有组件如何使用。 # 编译说明 ## 编译openssl 编译openssl 静态库:需要安装perl。 openssl-1.1.1k目录执行: dos2unix config chmod 777 config Configure ./config -fPIC no-shared make --生成 libcrypto.a ## 安装lua tar -zxvf lua-5.4.4.tar.gz lua-5.4.4目录执行 make linux 如果报错: fatal error: readline/readline.h: 没有那个文件或目录 安装:sudo apt-get install libreadline-dev 或者 yum install readline-devel 成功生成 liblua.a库 lua执行文件 ## protobuf unzip protobuf-3.20.0.zip sudo apt-get install autoconf automake libtool curl make g++ unzip cd protobuf-3.20.0 执行下面命令就可以win文件转unix格式过来了: find . -name \*.sh|xargs dos2unix find . -name \*.m4|xargs dos2unix find . -name \*.ac|xargs dos2unix find . -name \*.am|xargs dos2unix ./autogen.sh ./configure --prefix=./out #./out需要改为绝对路径 make make install 成功后 protobuf-3.20.0/out 有执行文件,库文件,h文件 ## 安装boost yum install -y bzip2-devel python-devel 或者 apt-get install libboost-all-dev https://www.boost.org/ 下载源码比如:boost_1_83_0_rc1.tar.gz tar -zxvf boost_1_83_0_rc1.tar.gz cd boost_1_83_0 ./bootstrap.sh ./b2 install --with=all ## 编译完整项目 主目录执行 clearBuild.sh 再次编译到bin目录 执行 build.sh # access dbproxy代码 来源https://gitee.com/yiliangwu880/RS.git 修改了配置读取用lua 以后维护,优先维护 RS 的, 这里还不通用。 改了 RS后,有需要再修改这 # 目录 src src/test --临时测试用 src/testRpcVsProto --测试CppRpc 和 protobuf 效率对比 src/access --代码手动复制 https://gitee.com/yiliangwu880/access_svr.git 项目的代码,做差异修改出来的 ## 运行 bin目录 执行 restart.sh # 战斗技能系统,参考 https://gitee.com/yiliangwu880/UO.git