< 返回新闻公共列表

阿里云服务器上建设redis服务的教程

发布时间:2021-06-10 14:55:10

1、百度搜索redis找到中文官方网站下载压缩包解压放到服务器上


阿里云服务器上建设redis服务的教程.png


阿里云服务器上建设redis服务的教程.png


2、解压以后打开目录找到文件redis.windows打开这里会修改4项有ip、密码、端口、redis保护模式


阿里云服务器上建设redis服务的教程.png


3、修改ip为你的服务器上的公网地址,这里我设置为0.0.0.0表示所有地址都能访问


阿里云服务器上建设redis服务的教程.png


4、添加端口这里我用的就是原来的端口,这里的端口要在服务器上开放出来


阿里云服务器上建设redis服务的教程.png


阿里云服务器上建设redis服务的教程.png



添加密码 并修改保护模式protected-mode设置为no


阿里云服务器上建设redis服务的教程.png



修改redis的保护模式



阿里云服务器上建设redis服务的教程.png


打开服务器cmd窗口进入redis目录执行命令

redis-server.exe redis.windows.conf 开启redis服务但是当窗口关闭时redis服务已不复存在要执行下面命令

ctrl+c 退出当前执行命令执行

redis-server.exe --service-install redis.windows.conf --loglevel verbose 

将redis服务写进服务器服务中,开机自行启动。

最后就可以在自己的电脑中连接服务器redis服务了。



/template/Home/Zkeys724/PC/Static