说明:redis
的缩写是REmote DIctionary Server
。它是最流行的开源,高级key-value
存储系统。这里说下CentOS 7
上安装redis
服务器方法。
项目地址:http://redis.io/
安装
1、安装EPEL
#CentOS/RHEL 6:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
#CentOS/RHEL 7:
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
2、安装Redis服务器
1、yum
安装redis
服务器
yum install redis
两个重要的redis
服务器配置文件的路径/etc/redis.conf
和/etc/redis-sentinel.conf
。
2、启动redis
服务器
#CentOS 6
service redis start
#CentOS 7
systemctl start redis.service
3、检查redis
服务器的运行状态
#CentOS 6
service redis status
#CentOS 7
systemctl status redis.service
4、测试Redis
的安装
redis-cli ping
如果返回结果PONG
,则安装成功。
3、redis服务器相关命令
#CentOS 6系统
chkconfig redis on #开机自启
service redis stop #停止redis服务器
service redis restart #重新启动redis服务器
#CentOS 7系统
systemctl stop redis.service #停止redis服务器
systemctl restart redis.service #重新启动redis服务器
systemctl enable redis.service #开机启动redis服务器
systemctl disable redis.service #开机禁用redis服务器
4、Redis服务器监听端口Redis Server
默认侦听端口号6379
,可使用SS
命令查看。
ss -nlp|grep redis
学习Redis
请看:http://redis.io/documentation
未经允许不得转载:嘟嘟 » CentOS 6/7安装Redis服务器教程
最新评论
请问下,python3 tg_username_update.py都会提示下面这个是因为什么啊 Traceback (most recent call last): File "tg_username_update.py", line 21, in <module> cake = emojize(":cake:", use_aliases=True) TypeError: emojize() got an unexpected keyword argument 'use_aliases'
不可以了
# Install [Debian] [bullseye] [amd64] Downloading... grep: (standard input): binary file matches Error! grub.cfg. root@RRR2:~#
博主你好,请问cloudfront 上传收费这个是事实吧,已经找了几个贴子确认了。 那有什么好办法能够避开这个收费呢?如果不能避开感觉还是cloudflare 比较稳。
来看看
第5步添加自定义主机名进去后等txt验证提示custom hostname does not name to this zone
那没事了,我静态博客。谢谢
为什么缓存键和源请求那里不设置缓存?