快速开始
环境要求
- Linux x86_64(或 HarmonyOS aarch64,见 部署到 HarmonyOS)
- 仓颉工具链 Cangjie 1.2.0(含
cjpm) - 可选:MySQL 5.7+/8.0(用于账号、飞行计划、轨迹统计)
1. 获取代码
bash
git clone https://gitcode.com/CAPTAIN1275/FSD_Cangjie.git
cd FSD_Cangjie1
2
2
2. 编译
bash
source /opt/cangjie/envsetup.sh
export CANGJIE_STDX_PATH=/opt/cangjie/linux_x86_64_cjnative/static/stdx
cjpm build1
2
3
2
3
产物为 target/release/bin/main,复制并改名即可运行:
bash
cp target/release/bin/main ./FSD_Cangjie
chmod +x ./FSD_Cangjie1
2
2
3. 准备配置
在运行目录放置 fsd.conf(可从 unix/fsd.conf 复制)与证书文件 cert.txt。
ini
[system]
clientport=6809
serverport=3011
systemport=3010
ident=FSD
name=FSD Cangjie Server
hostname=your.domain
password=disable
certificates=cert.txt
maxclients=500
whazzup=whazzup.txt1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
cert.txt 每行一个证书(呼号/CID 密码 等级):
1275 1275 121
4. 启动
bash
./fsd_d.sh1
或直接前台运行:
bash
./FSD_Cangjie1
启动后应监听 6809、3010、3011(以及启用时的 8080、6808)。
5. 连接测试
- 客户端:用 SquawkBox / FSInn 等连接
服务器IP:6809。 - 系统管理口:
bash
telnet 127.0.0.1 30101
输入 help 查看命令。
提示
3010 系统管理口不要直接暴露公网,仅本机或内网访问。