1.概述

平台运行需要依赖一下的一些服务, 一共需要启动 4 个服务
①:redis
②:nginx
③:nacos
④:seata

2. 操作说明

2.1 redis

redis 服务我们作为缓存服务, 我们使用的是window的版本,需要先安装windows服务。

2.1.1 安装redis服务

将redis加入服务中,在redis目录下cmd中执行此命令:

redis-server --service-install redis.windows.conf --service-name redis6379 --loglevel verbose

2.1.2 Windows环境启动

2.1.3 linux环境启动

nohup ./redis-server ../redis.conf &

2.2 nginx

nginx 作为web服务器(前端运行),也作为统一的对外的服务器,后台请求也通过nginx。

双击 nginx.exe ,即可启动

2.3 nacos 和 seata tc server

nacos 作为注册和配置中心
seata 作为分布式事务TC SERVER

2.3.1 在windows环境启动

建立批处理文件,新建.txt文档,示例命名为”nacos_start.bat”,可自由更改;
写入启动内容,记得更改路径哟:

start D:/jpaas/seata/bin/seata-server.bat -p 9999 -h localhost
start D:/jpaas/nacos/bin/startup.cmd -m standalone

双击批处理文件即可运行。

2.3.2 在linux环境启动

服务器启动nacos seata命令:

nohup ./bin/startup.sh -m standalone &

nohup ./bin/seata-server.sh -p 9999 -h localhost &

文档更新时间: 2021-07-27 10:56   作者:刘宏桂