一、 windows

1. 安装配置nginx

1.1. 下载安装

1.2. 常用命令

# 开启nginx    start nginx    nginx.exe# 停止nginx    nginx.exe -s stop    nginx.exe -s quit# 重启nginx    nginx.exe -s reload

1.3 配置

`nginx`部分代码```# 反向代理前端vue和后端的node    # 这是前端映射的端口    location / {        proxy_pass http://localhost:8080;    }    # 后端node提供的api接口    location /api/ {        proxy_pass http://localhost:8000;        proxy_set_header Host $host;    }```

2. 安装配置redis

1. 下载安装

2. 常用命令

运行

打开一个 cmd 窗口 使用 cd 命令切换下载文件的根目录
如: C:redis
运行:
redis-server.exe redis.windows.conf
这时候另启一个 cmd 窗口,原来的不要关闭,不然就无法访问服务端了。
切换到 redis 目录下运行:
redis-cli.exe -h 127.0.0.1 -p 6379

[待修改]