租用问题

质量为本、客户为根、勇于拼搏、务实创新

< 返回租用问题列表

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

发布时间:2023-02-02 10:56:26

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服务了。