centos7安装redis-5.0

wget http://download.redis.io/releases/redis-5.0.5.tar.gz
tar -xf redis-5.0.5.tar.gz
cd redis-5.0.5
make installl
INSTALL install
INSTALL install
INSTALL install
INSTALL install
INSTALL install
make[1]: Leaving directory `/usr/local/src/redis-5.0.5/src‘
将redis设置成开机启动
[[email protected] redis-5.0.5]# ./utils/install_server.sh
Welcome to the redis service installer
This script will help you easily set up a running redis server

Please select the redis port for this instance: [6379]
Selecting default: 6379
Please select the redis config file name [/etc/redis/6379.conf] /etc/redis/redis.conf
Please select the redis log file name [/var/log/redis_6379.log] /var/log/redis.log
Please select the data directory for this instance [/var/lib/redis/6379] /var/lib/redis/db
Please select the redis executable path [/usr/local/bin/redis-server]
Selected config:
Port : 6379
Config file : /etc/redis/redis.conf
Log file : /var/log/redis.log
Data dir : /var/lib/redis/db
Executable : /usr/local/bin/redis-server
Cli Executable : /usr/local/bin/redis-cli
Is this ok? Then press ENTER to go on or Ctrl-C to abort.
Copied /tmp/6379.conf => /etc/init.d/redis_6379
Installing service...
Successfully added to chkconfig!
Successfully added to runlevels 345!
Starting Redis server...
Installation successful!
启动redis
redis-server /etc/redis/redis.conf
[[email protected] redis-5.0.5]# ss -ntlpu |grep 6379
tcp LISTEN 0 128 127.0.0.1:6379 : users:(("redis-server",pid=7255,fd=6))

原文地址:https://blog.51cto.com/13293070/2441029

时间: 2024-08-01 14:06:22

centos7安装redis-5.0的相关文章

CentOS7安装redis数据库及php-redis扩展

redis 首先把redis安装到服务器中 1.wget http://download.redis.io/redis-stable.tar.gz 下载redis源码 2. tar xvzf redis-stable.tar.gz 解压 3.cd redis-stable 4.make   make的时候可能出现问题,我的就出现了异常 异常一: make[2]: cc: Command not found 异常原因:没有安装gcc 解决方案:yum install gcc-c++ 异常二: zm

CentOS7安装配置redis-3.0.0

清园 沉没的Atlantis CentOS7安装配置redis-3.0.0 一.安装必要包 yum install gcc 二.linux下安装 #下载 wget http://download.redis.io/releases/redis-3.0.0.tar.gz tar zxvf redis-3.0.0.tar.gz cd redis-3.0.0 #如果不加参数,linux下会报错 make MALLOC=libc  安装好之后,启动文件 #启动redis src/redis-server

centOS7 安装redis

centOS7 安装 redis yum自带的redis版本过于老旧所以我们采用构建安装 官网下载下载地址5.0.8 wget http://download.redis.io/releases/redis-5.0.8.tar.gz 解压缩 gunzip redis-5.0.8.tar.gz 解归档 tar -xvf redis-5.0.8.tar 进入文件夹 cd redis-5.0.8 构建 make && make install 查看是否安装成功 redis-server --ve

CentOS7 安装MongoDB 3.0服务器

CentOS7 安装MongoDB 3.0服务器 时间:2015-05-03 16:33来源:blog.csdn.net 作者:freewebsys 举报 点击:1449次 1,下载&安装 MongoDB 3.0 正式版本发布!这标志着 MongoDB 数据库进入了一个全新的发展阶段,提供强大.灵活而且易于管理的数据库管理系统.MongoDB宣称,3.0新版本不只提升7到10倍的写入效率以及增加80%的数据压缩率,还能减少95%的运维成本.  MongoDB 3.0主要新特性包括:  ·可插入式

linux安装 redis(redis-3.0.2.tar.gz) 和 mongodb(mongodb-linux-x86_64-rhel62-4.0.0)

1:首先 要下载 这两个 压缩包 注意:liunx是否已经安装过 gcc没安装的话 先安装:yum install gcc-c++ 2:安装 redis:redis-3.0.2.tar.gz (1):解压到目录:tar -zxf redis-3.0.2.tar.gz (2):执行:make (3):执行:make PREFIX=/usr/redis install (注意:PREFIX=安装路径 install) (4):执行:cp redis.conf /usr/redis (5):执行:注:

centos / Linux 服务环境下安装 Redis 5.0.3

原文:centos / Linux 服务环境下安装 Redis 5.0.3 1.首先进入你要安装的目录 cd /usr/local 2.下载目前最新稳定版本 Redis 5.0.3 wget http://download.redis.io/releases/redis-5.0.3.tar.gz 3.解压到当前目录 tar -xvzf redis-5.0.3.tar.gz 4.删除压缩包 rm redis-5.0.3.tar.gz 5.进入解压出来的目录 cd redis-5.0.3 6.编译源

vmware安装centos7 安装redis windows7访问redis

1.在windows7中安装vmware 2.在vmware中安装centos7 3.禁用centos7自带的firewalld.service 4.安装iptables防火墙 5.安装Redis 3.2.6 is the latest stable version. 6.修改redis.conf配置文件(由于无法复制,只能截图显示) 找到你redis-3.2.6的redis.conf配置文件. 由于配置文件太长我就不复制了. vi redis.conf 注释 #bind 127.0.0.1 注

CentOS7 安装Redis和PHP-redis扩展

daemonize yes Redis是一个key-value存储系统,属于我们常说的NoSQL.它遵守BSD协议.支持网络.可基于内存亦可持久化的日志型.Key-Value数据库,并提供多种语言的API.它常用在缓存.队列.Pub/Sub.计数统计.排行榜.投票与排序等场景. 本文介绍如何在CentOS7上安装redis,以及让PHP支持redis的php-redis扩展库. 安装Redis Redis官方下载地址:http://redis.io/download,下载最新稳定版本. 当前稳定

Centos7安装Redis(单机)

环境:centos7.6 安装wgetyum -y install wget 安装gccyum -y install gcc automake autoconf libtool make 下载rediscd /usr/local/softwarewget http://download.redis.io/releases/redis-4.0.0.tar.gz 解压tar -xzvf redis-4.0.0.tar.gz 切换至程序目录cd redis-4.0.0 执行make编译Redis:ma

Centos7安装Redis(集群模式)

环境:centos7.6 redis4.0模拟在一个Centos7下安装6个redis实例搭建集群 3主3从 安装wgetyum -y install wget 安装gccyum -y install gcc automake autoconf libtool make 下载rediscd /usr/local/softwarewget http://download.redis.io/releases/redis-4.0.0.tar.gz 解压tar -xzvf redis-4.0.0.tar