54 lines
965 B
Markdown
54 lines
965 B
Markdown
## 第二课
|
||
|
||
> 第二课时操作引导文档。
|
||
|
||
### 虚拟IP地址固定
|
||
|
||
> 根据课程在Hyper-V管理器中进行相关的设置
|
||
|
||
### GitHub的访问加速
|
||
|
||
> 将wiki目录中hosts文件中的服务器IP修改后覆盖到`C:\Windows\System32\drivers\etc`
|
||
|
||
> 将wiki目录中config文件中的服务器IP修改后覆盖到`C:\Users\用户名\.ssh`
|
||
|
||
> 根据课程创建自己的代码仓库并上传源码到自己的仓库
|
||
|
||
```shell
|
||
# 上传源码到仓库的命令脚本
|
||
git add .;git commit -m "main";git push origin main
|
||
# 或执行脚本文件
|
||
./push.bat
|
||
```
|
||
|
||
### 将服务器中项目替换为自己的项目
|
||
|
||
```shell
|
||
ssh root@172.20.74.71
|
||
```
|
||
|
||
```shell
|
||
cd /opt
|
||
```
|
||
|
||
```shell
|
||
sudo rm -rf Engine2D
|
||
```
|
||
|
||
```shell
|
||
sudo chmod +x tools/*.sh
|
||
```
|
||
|
||
### GoLand编辑器配置
|
||
|
||
> 根据课程配置GoLang代理,加速依赖库的下载
|
||
|
||
```shell
|
||
GOPROXY=https://goproxy.io,direct
|
||
```
|
||
|
||
> 根据课程下载后端Go程序的依赖库
|
||
|
||
```shell
|
||
go mod download
|
||
``` |