编程知识 cdmana.com

Installing redis on alicloud server ECS

Alibaba cloud The server ECS install Redis

Environmental Science : Aliyun server ECS choice Centos 7.8

redis download

Download address :http://redis.io/download, Download the latest stable version .

wget http://download.redis.io/releases/redis-6.0.8.tar.gz
tar xzf redis-6.0.8.tar.gz
cd redis-6.0.8
yum -y install gcc #  If not installed, it will compile and report errors 
make 

modify redis The configuration file

vi redis.conf

modify #bind 127.0.0.1 by bind 0.0.0.0 -> Allow access to all hosts

kWsp4K

take daemonize no Change to daemonize yes -> Set up redis Can run in the background all the time , Run as a daemons , Close now SSH Tools are also running .

U3aaWa

password , take ”#requirepass foobared“ Remove the note and change to requirepass 123456( Or whatever code you need )

xvYCfq

Save and exit

start-up redis

cd src
./redis-server ../redis.conf

Alicloud server is configured with open ports

GZPXKH
ZLddii

XhXxFj

版权声明
本文为[ifeng]所创,转载请带上原文链接,感谢

Scroll to Top