本文主要介绍如何在linux环境安装redis。
本文主要参考:
http://www.runoob.com/redis/redis-install.html
好,下面上货。
1、yum install redis
安装完成后,配置文件的位置在/etc/redis.conf
2、启动redis
systemctl start redis.service
3、停止redis
systemctl stop redis.service
4、查看一下端口运行情况
扫描二维码关注公众号,回复:
149545 查看本文章
netstat -apn | grep 6379
ps -ef | grep redis
5、利用控制台的命令连接redis
redis-cli
redis-cli -h 127.0.0.1 -p 6379