7:21 2026/5/7
8:47 2026/5/7
上古世纪
arch age
AAEmu docker编译安装

还有视频哦!可以去看看

https://www.bilibili.com/video/BV17SRhBQE5a
准备文件
服务端文件
https://github.com/AAEmu/AAEmu/tree/develop
dotnet
https://dotnet.microsoft.com/en-us/download/dotnet/10.0
https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-10.0.203-linux-x64-binaries
https://builds.dotnet.microsoft.com/dotnet/Sdk/10.0.203/dotnet-sdk-10.0.203-linux-x64.tar.gz


主系统演示用的ubuntu 22.04.1
连接ssh的软件用的FinalShell

源码解压放到 /root/AAEmu
建立工具文件夹 /root/tools  这里放两个文件 compact.sqlite3  game_pak
net解压到  /root/dotnet


安装docker
apt update
apt install docker.io

下载docker用的镜像文件
可以使用软件在windows系统下载好镜像文件上传

打开 ubuntu.com 搜索 base
会找到一个base下载地址
http://cdimage.ubuntu.com/ubuntu-base/releases/22.04.1/release/
下载
ubuntu-base-22.04-base-amd64.tar.gz
导入
root@ccyy:~# docker import ubuntu-base-22.04-base-amd64.tar.gz ubuntu-base-22.04-base-amd64:last
sha256:c7fb438be5472da207a8d262607b1e7b94679ba9f29f81303049c277f3ae722c
查看
docker images
ubuntu-base-22.04-base-amd64:last   c7fb438be547       77.8MB             0B

构建docker
docker run --name  aaemu-server-01 \
-v /root/AAEmu:/root/AAEmu:rw \
-v /root/dotnet:/root/dotnet:rw \
-v /root/tools:/root/tools:rw \
  -p 1234:1234 \
  -p 1237:1237 \
  -p 1239:1239 \
  -p 1250:1250 \
-itd ubuntu-base-22.04-base-amd64:last \
/usr/bin/bash

进入docker
docker exec -it aaemu-server-01 /bin/bash

每次进入docker内部都要这个环境变量
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet

更新
apt update

安装所需环境
apt install libicu-dev
apt install curl

编译安装AAEmu服务端
cd ~/AAEmu/Scripts/
chmod +x *.sh
./start_login.sh
出现第一行信息
00:28:16 [INFO] Program - AAEmu.Login version 0.3.0.0
然后按ctrl+c然后按回车
编译下一个
./start_game.sh
出现
Please wait while compiling the Game server ...
00:30:08 [INFO] Program - AAEmu.Game version 0.3.0.0 
00:30:08 [INFO] Program - Running as 64-bits on 64-bits Unknown (Unix 5.15.0.177)
关闭


外部两个文件要设置
ln -s /root/tools/compact.sqlite3 /root/AAEmu/AAEmu.Game/bin/Debug/net10.0/Data/compact.sqlite3
修改文件
/root/AAEmu/AAEmu.Game/bin/Debug/net10.0/Configurations/ClientData.json
增加一个"/root/tools/game_pak",


AAEmu.Login配置文件设置
文件一
/root/AAEmu/AAEmu.Login/bin/Debug/net10.0/Config.json

{
    "Logging": {
        "LogLevel": {
            "Microsoft.AspNetCore.Hosting.Diagnostics": "Warning",
            "Microsoft.AspNetCore.Routing.EndpointMiddleware": "Warning"
        }
    },
    "SecretKey": "test", 自行配置 !!!这里如果开服自行修改一致用于安全认证
    "AutoAccount": true,
    "SkipHostResolve": false,
    "InternalNetwork": {
        "Host": "*",
        "Port": 1234
    },
    "Network": {
        "Host": "*",
        "NumConnections": 10,
        "Port": 1237
    },
    "Connections": {
        "MySQLProvider": {
            "Database": "aaemu_login",
            "Host": "192.168.1.183",   这里设置数据库地址
            "Password": "root",    这里设置
            "Port": "3306",   这里设置
            "User": "root"   这里设置
        }
    },
    "GameServers": []
}


文件二
/root/AAEmu/AAEmu.Login/bin/Debug/net10.0/Config.Local.json

根据  ExampleConfig.Local.json 这个文件内容复制进来

{
    "Connections": {
        "MySQLProvider": {
            "Database": "aaemu_login",
            "Host": "192.168.1.183",  这里设置 我数据库不在本地,在另一个电脑192.168.1.183 本地电脑ip 192.168.1.197
            "Password": "root", 这里设置
            "Port": "3306",这里设置
            "User": "root"这里设置
        }
    },
    "GameServers": [
        {
            "Host": "192.168.1.197",  这里设置  !!!这里注意,这里ip指向的是gameserver的ip
            "Id": 1,
            "Name": "AAEmu.test", 这里设置  这里名字随意
            "Port": 1239
        }
    ]
}


至此,AAEmu.Login设置完毕,可以启动测试
/root/AAEmu/AAEmu-develop/Scripts
运行
./start_login.sh


AAEmu.Game配置文件
/root/AAEmu/AAEmu.Game/bin/Debug/net10.0/Config.json


{
    "Id": 1,
    "AdditionalesId": [],
    "SecretKey": "test", 自行配置 !!!这里如果开服自行修改一致用于安全认证
    "Network": {
        "Host": "*",
        "Port": 1239,
        "NumConnections": 10
    },
    "StreamNetwork": {
        "Host": "*",
        "Port": 1250
    },
    "WebApiNetwork": {
        "Host": "*",
        "Port": 1280
    },
    "LoginNetwork": {
        "Host": "192.168.1.197",自行配置 !!!这里用于小退游戏,指向登录网关
        "Port": "1234"
    },
    "Connections": {
        "MySQLProvider": {
            "Host": "192.168.1.183",  自行配置数据库地址
            "Port": "3306",   自行配置
            "User": "root",   自行配置
            "Password": "root",   自行配置
            "Database": "aaemu_game"
        }
    },
    "CharacterNameRegex": "^[a-zA-Z0-9а-яА-Я]{1,18}$",
    "MaxConcurencyThreadPool": 8,
    "HeightMapsEnable": true,
    "DebugInfo": true,
    "DebugInfoLevel": 100,
    "DefaultLanguage" : "en_us"
}


至此,AAEmu.Game设置完毕,可以启动测试
cd /root/AAEmu/AAEmu-develop/Scripts
运行
./start_game.sh
这里要很久,等待,,,等到有
启动完成
00:55:21 [INFO] IndunManager - Active Instances: 1 system instance(s), 0 dungeon(s)


客户端设置
两个文件
客户端压缩包
ArcheAge1.2r208022forAAEMUandCN.7z.001
ArcheAge1.2r208022forAAEMUandCN.7z.002
右键解压缩
登录器
AAEmu.Launcher-20250124-v0.5.6.4
把文件解压放到客户端目录
Z:\F\arche_age\ArcheAge1.2r208022forAAEMUandCN\bin32
运行启动文件
Z:\F\arche_age\ArcheAge1.2r208022forAAEMUandCN\bin32\AAEmu.Launcher.exe
配置ip地址
点登录即可!

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐