上传部署文档

This commit is contained in:
liwei1dao 2023-12-15 11:15:34 +08:00
parent 5ddbc8f880
commit f76a374fd0

View File

@ -18,13 +18,31 @@
### 安装部署依赖环境
1. 安装 MongoDB 教程 https://segmentfault.com/a/1190000039268500
* 安装版本
2. 安装 Redis 教程
1. 安装 git:
```yum install -y git
```
- git 账号重复输出修复命令:git config --global credential.helper store
2. 安装 MongoDB 教程 https://segmentfault.com/a/1190000039268500
3. 创建 MongoDB 用户名和密码
```
mongo
use admin
db.createUser({ user: "root", pwd: "Legu.cc()123", roles: [{ role: "userAdminAnyDatabase", db: "admin" }] })
```
4. 安装 Redis 教程
- 单节点 https://segmentfault.com/a/1190000023178516
- 集群:https://blog.csdn.net/jiang1986829/article/details/108667854
3. 安装 Consul https://blog.csdn.net/jeikerxiao/article/details/78114413
4. 安装 NetCore SDK6 版本 https://learn.microsoft.com/en-us/dotnet/core/install/linux-centos
5. 安装 Consul https://blog.csdn.net/weixin_45391817/article/details/123113384
- nohup ./consul agent -dev -client 0.0.0.0 -ui > /dev/null 2>&1 &
6. 安装 NetCore SDK6 版本 https://learn.microsoft.com/en-us/dotnet/core/install/linux-centos
### 修改配置文件
@ -134,9 +152,9 @@
- ./cmd start -g ./conf/gm01.json
- ./cmd start -g ./conf/gm02.json
PS 解决redis 并发下断联重启问题 需要做以下设置 参考 https://www.cnblogs.com/to-be-rich/p/7818618.html
PS 解决 redis 并发下断联重启问题 需要做以下设置 参考 https://www.cnblogs.com/to-be-rich/p/7818618.html
1.redis设置的tcp连接数受限于系统默认限制128个因此必须要先调整内核的连接数
echo 511 > /proc/sys/net/core/somaxconn
overcommit_memory参数设置为0在内存不足的情况下后台程序save可能失败
"vm.overcommit_memory=1" > /etc/sysctl.conf
1.redis 设置的 tcp 连接数受限于系统默认限制 128 个,因此必须要先调整内核的连接数
echo 511 > /proc/sys/net/core/somaxconn
overcommit_memory 参数设置为 0在内存不足的情况下后台程序 save 可能失败
"vm.overcommit_memory=1" > /etc/sysctl.conf