|
@@ -67,7 +67,14 @@ yum clean all
|
|
yum makecache
|
|
yum makecache
|
|
```
|
|
```
|
|
|
|
|
|
-> 7、游戏资源下载
|
|
|
|
|
|
+> 7、自动化部署
|
|
|
|
+
|
|
|
|
+```shell
|
|
|
|
+cd /opt/Engine2D
|
|
|
|
+sudo ./tools/init.sh
|
|
|
|
+```
|
|
|
|
+
|
|
|
|
+> 8、游戏资源下载
|
|
|
|
|
|
````shell
|
|
````shell
|
|
# 生成GitHub SSH KEY
|
|
# 生成GitHub SSH KEY
|
|
@@ -91,16 +98,20 @@ cd /opt/Engine2D
|
|
git clone --depth=1 git@github.com:makeryangcom/Engine2D.git
|
|
git clone --depth=1 git@github.com:makeryangcom/Engine2D.git
|
|
```
|
|
```
|
|
|
|
|
|
-> 8、自动化部署
|
|
|
|
|
|
+> 9、本地解析服务器域名
|
|
|
|
|
|
```shell
|
|
```shell
|
|
-cd /opt/Engine2D
|
|
|
|
-sudo ./tools/init.sh
|
|
|
|
|
|
+C:\Windows\System32\drivers\etc
|
|
```
|
|
```
|
|
|
|
|
|
-> 9、日常维护使用的命令
|
|
|
|
|
|
+> 10、日常维护使用的命令
|
|
|
|
|
|
``` bash
|
|
``` bash
|
|
|
|
+# 监听后端服务日志
|
|
|
|
+sudo journalctl -fu server.service
|
|
|
|
+# 监听游戏服务器日志
|
|
|
|
+sudo journalctl -fu game.service
|
|
|
|
+
|
|
# 常用维护命令-重启Nginx服务
|
|
# 常用维护命令-重启Nginx服务
|
|
sudo systemctl restart nginx.service
|
|
sudo systemctl restart nginx.service
|
|
# 常用维护命令-停止Nginx服务
|
|
# 常用维护命令-停止Nginx服务
|
|
@@ -111,8 +122,8 @@ sudo systemctl start nginx.service
|
|
# 查看后端服务、游戏服务器状态
|
|
# 查看后端服务、游戏服务器状态
|
|
sudo systemctl status server.service game.service
|
|
sudo systemctl status server.service game.service
|
|
|
|
|
|
-# 监听后端服务日志
|
|
|
|
-sudo journalctl -fu server.service
|
|
|
|
-# 监听游戏服务器日志
|
|
|
|
-sudo journalctl -fu game.service
|
|
|
|
|
|
+# 停止、重启后端服务
|
|
|
|
+sudo systemctl stop|restart server.service
|
|
|
|
+# 停止、重启游戏服务器
|
|
|
|
+sudo systemctl stop|restart game.service
|
|
```
|
|
```
|