Centos7 安装redis服务
来源:互联网 发布:木油漆哪个品牌好 知乎 编辑:程序博客网 时间:2024/06/03 07:43
Redis的安装
1.先安装gcc编译器,否则make的时候会报错
yum -y install gcc
2.下载redis安装包,解压编译安装
$ wget http://download.redis.io/releases/redis-4.0.1.tar.gz$ tar xzf redis-4.0.1.tar.gz$ cd redis-4.0.1$ make
3.二进制文件是编译完成后在src目录下,通过下面的命令启动Redis服务
$ src/redis-server
在redis目录下使用此命令
4.为配置文件和命令创建单独的目录
mkdir -p /usr/local/redis/etcmkdir -p /usr/local/redis/etcmv ./redis.conf /usr/local/redis/etc/mv mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-dump redis-cli redis-sentinel redis-server /usr/local/redis/bin/
5.启动、登录、关闭
命令移动后启动
[root@qian bin]$ ./redis-server /usr/local/redis/etc/redis.conf #启动命令[root@qian bin]$ redis-cli #登录[root@qian bin]$ pkill redis-server #关闭redis
阅读全文
0 0
- Centos7安装Redis服务
- Centos7 安装redis服务
- CentOS7源码安装Redis及配置系统服务
- redis的安装(centOS7)
- Redis安装【centos7】
- CentOS7安装Redis
- centos7安装redis
- CentOS7下安装Redis
- CentOS7安装配置redis
- CentOS7安装redis cluster
- Redis之CentOS7安装
- Centos7.0安装redis
- Centos7安装Redis
- Centos7安装redis
- Centos7安装redis
- CentOS7下安装Redis
- CentOS7安装Redis
- 【centos7】安装redis
- Java中==、equals()和hashCode()的比较分析
- 怎样在Android开发中引用ButterKnife
- python_lintcode_111爬楼梯_110最小路径和
- Asp.net使用form上传文件
- Python socket知识点总结
- Centos7 安装redis服务
- poj1284(欧拉函数、原根)
- 将日期进行加减运算
- 分布式事务方案:最大努力通知方案
- cookie管理(3) 应用
- AC自动机
- maven深入理解(一)
- 能不能自己写个类叫java.lang.System?
- link和@import的区别