Files
netease-modsdk-wiki/docs/mcguide/27-网络游戏/课程1:成为Apollo服主及相关准备/第5节:连接开发机.md
2025-03-17 13:24:39 +08:00

60 lines
1.8 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
front: https://mc.res.netease.com/pc/zt/20201109161633/mc-dev/assets/img/MobaXterm4.1d9a6b30.png
hard: 入门
time: 10分钟
---
# 连接开发机
第4节我们介绍了如何进行开发机申请当申请通过后官方工作人员会与您取得联系并发放开发测试机。本节将介绍如何连接开发测试机以及开发机的目录。
### 远程连接
以MobaXterm为例远程连接到开发机的步骤如下
- 账号为fuzhu
- 机器填开发机的IP
- 端口为32200
![](./images/MobaXterm4.png)****
- 勾选use private key,内容是本地保存的私钥的路径。若对私钥路径有疑问建议回看第4节内容。
### 开发机目录
- 链接成功后,可看到开发机的目录结构
![](./images/MobaXterm5.png)
- 以下目录均为使用MCStudio**完成搭建第一个网络服**后方会生成
- 网络游戏部署相关文件统一存放在/home/fuzhu/netgame/
- 不要在netgame目录存放未经备份的重要信息**以免被误删**
**网络服名称以sample为例**若使用其他网络服名称则替换sample为对应名称即可
其中,应用目录位置如下:
- 应用部署根目录:/home/fuzhu/netgame/app/sample
- 本机部署服务配置:/home/fuzhu/netgame/app/sample/config
- 本机部署master/home/fuzhu/netgame/app/sample/master
- 本机部署game/home/fuzhu/netgame/app/sample/game
- 本机部署lobby/home/fuzhu/netgame/app/sample/lobby
- 本机部署proxy/home/fuzhu/netgame/app/sample/proxy
- 本机部署service/home/fuzhu/netgame/app/sample/service
- 上传mods目录/home/fuzhu/netgame/mods/sample
其中log目录位置如下
- logs的真实存放路径/home/fuzhu/netgame/logs/sample
- 每个app服目录内也有一个logs软链接