redis installation notes

I. redis installation

Centos installs and starts the redis recording process in the background

Install the redis command, which is relatively simple

yum install redis

Start redis in the background:

# 设置redis.conf文件,开启后台启动

vim /etc/redis.conf


## 找到 daemonize no 这一行
## 修改成yes,并保存
daemonize yes


## 启动redis
redis-server /etc/redis.conf

Check if redis starts normally

# 查看进程号
ps -ef | grep redis

Client connection test

redis-cli

> set test 123
> get test
> expire test

II. Other

Personal blog: a gray blog

A personal blog based on hexo + github pages, recording all blog posts in study and work, welcome to visit

statement

It is not as good as a letter of faith, the content has been posted, it is purely the opinion of the family, because of my average ability and limited knowledge, if you find bugs or have better suggestions, you are always welcome to criticize and correct

Scan attention

QrCode

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325566896&siteId=291194637