diff --git a/update.bat b/update.bat index 395811b..1fb2fe4 100644 --- a/update.bat +++ b/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" \ No newline at end of file +ssh root@172.21.245.0 "chmod +x /data/wwwroot/game/* && cd /opt/Engine2D && sudo ./tools/update.sh" \ No newline at end of file diff --git a/wiki/course/0001.md b/wiki/course/0001.md index d530d1d..f2a3243 100644 --- a/wiki/course/0001.md +++ b/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 ``` \ No newline at end of file