上传部署文档
This commit is contained in:
parent
5ddbc8f880
commit
f76a374fd0
@ -18,13 +18,31 @@
|
|||||||
|
|
||||||
### 安装部署依赖环境
|
### 安装部署依赖环境
|
||||||
|
|
||||||
1. 安装 MongoDB 教程 https://segmentfault.com/a/1190000039268500
|
1. 安装 git:
|
||||||
* 安装版本
|
|
||||||
2. 安装 Redis 教程
|
```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://segmentfault.com/a/1190000023178516
|
||||||
- 集群:https://blog.csdn.net/jiang1986829/article/details/108667854
|
- 集群:https://blog.csdn.net/jiang1986829/article/details/108667854
|
||||||
3. 安装 Consul https://blog.csdn.net/jeikerxiao/article/details/78114413
|
5. 安装 Consul https://blog.csdn.net/weixin_45391817/article/details/123113384
|
||||||
4. 安装 NetCore SDK6 版本 https://learn.microsoft.com/en-us/dotnet/core/install/linux-centos
|
|
||||||
|
- 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/gm01.json
|
||||||
- ./cmd start -g ./conf/gm02.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个,因此必须要先调整内核的连接数
|
1.redis 设置的 tcp 连接数受限于系统默认限制 128 个,因此必须要先调整内核的连接数
|
||||||
echo 511 > /proc/sys/net/core/somaxconn
|
echo 511 > /proc/sys/net/core/somaxconn
|
||||||
overcommit_memory参数设置为0!在内存不足的情况下,后台程序save可能失败
|
overcommit_memory 参数设置为 0!在内存不足的情况下,后台程序 save 可能失败
|
||||||
"vm.overcommit_memory=1" > /etc/sysctl.conf
|
"vm.overcommit_memory=1" > /etc/sysctl.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user