makeryangcom 8 months ago
parent
commit
c7da010f01
2 changed files with 19 additions and 4 deletions
  1. 2 2
      update.bat
  2. 17 2
      wiki/course/0001.md

+ 2 - 2
update.bat

@@ -1,5 +1,5 @@
 @echo off
 
-scp -r ./engine/release/server* root@172.21.254.81:/data/wwwroot/game/
+scp -r ./engine/release/server* root@172.21.245.0:/data/wwwroot/game/
 
-ssh root@172.21.254.81 "chmod +x /data/wwwroot/game/* && cd /opt/Engine2D && sudo ./tools/update.sh"
+ssh root@172.21.245.0 "chmod +x /data/wwwroot/game/* && cd /opt/Engine2D && sudo ./tools/update.sh"

+ 17 - 2
wiki/course/0001.md

@@ -104,11 +104,19 @@ sudo ./tools/init.sh
 ```
 
 ```shell
-# 将SELINUX=设置为`disabled`关闭selinux
-vim /etc/selinux/config
+# 取消CRYPTO_POLICY=的注释
+vim /etc/sysconfig/sshd
+# MySQL数据库远程连接配置
+vim /etc/ssh/sshd_config
+# 在最后添加下面的配置
+Ciphers aes128-ctr,aes192-ctr,aes256-ctr,3des-cbc
+KexAlgorithms diffie-hellman-group1-sha1
+# 重启服务
+sudo systemctl restart sshd
 ```
 
 ```shell
+cd /opt/Engine2D
 sudo ./tools/update.sh
 ```
 
@@ -140,4 +148,11 @@ sudo systemctl status server.service game.service
 sudo systemctl stop|restart server.service
 # 停止、重启游戏服务器
 sudo systemctl stop|restart game.service
+```
+
+> 11、其他配置
+
+```shell
+Host 0.0.0.0
+KexAlgorithms +diffie-hellman-group1-sha1
 ```