makeryangcom 8 сар өмнө
parent
commit
a4712b8c84
2 өөрчлөгдсөн 26 нэмэгдсэн , 11 устгасан
  1. 2 0
      tools/update.sh
  2. 24 11
      wiki/course/0001.md

+ 2 - 0
tools/update.sh

@@ -23,5 +23,7 @@ sudo systemctl restart nginx.service
 
 # 重启后端服务和游戏服务
 sudo systemctl daemon-reload
+sudo systemctl enable server.service
 sudo systemctl restart server.service
+sudo systemctl enable game.service
 sudo systemctl restart game.service

+ 24 - 11
wiki/course/0001.md

@@ -68,14 +68,12 @@ yum clean all
 yum makecache
 ```
 
-> 7、自动化部署
+> 7、游戏资源下载
 
-```shell
-cd /opt/Engine2D
-sudo ./tools/init.sh
-```
-
-> 8、游戏资源下载
+````shell
+# 安装git
+yum install -y git
+````
 
 ````shell
 # 生成GitHub SSH KEY
@@ -88,17 +86,32 @@ cat /root/.ssh/id_rsa.pub
 ````
 
 ```shell
-git config -global user.name "你的GitHub用户名"
-git config -global user.email "你的GitHub登录账号"
+git config --global user.name "你的GitHub用户名"
+git config --global user.email "你的GitHub登录账号"
 ```
 
-
 ```shell
-cd /opt/Engine2D
+cd /opt
 # 下载游戏源码
 git clone --depth=1 git@github.com:makeryangcom/Engine2D.git
 ```
 
+> 8、自动化部署
+
+```shell
+cd /opt/Engine2D
+sudo ./tools/init.sh
+```
+
+```shell
+# 将SELINUX=设置为`disabled`关闭selinux
+vim /etc/selinux/config
+```
+
+```shell
+sudo ./tools/update.sh
+```
+
 > 9、本地解析服务器域名
 
 ```shell