redis 3.2.6 on ubuntu 14.04

1. official site: https://github.com/antirez/redis/releases

2. compile and setup

tar zxf redis-3.2.6.tar.gz

cd redis-3.2.6/deps

export ARCH=

make geohash-int
make hiredis
make jemalloc
ls
make linenoise
make lua

cd ..

make

make install

sudo ./utils/install_server.sh    (参数全部默认)

3.维护指令

service redis_6379 status
service redis_6379 stop
service redis_6379 start
redis-cli
redis的配置文件/etc/redis/6379.conf
grep -E -v "^#" /etc/redis/6379.conf |sed ‘/^$/d‘

4.配置

/etc/redis/6379.conf

由于redis采用的安全策略,默认会只准许本地访问,修改上面配置文件,

把bind 127.0.0.1注释掉,再把protected-mode 改为no,设置密码requirepass,

可以用windows客户端维护查看:下载RedisDesktopManager(https://redisdesktop.com/)

设置密码后,redis-cli连接,然后输入auth password1

5.常用指令

6.参考:

http://blog.csdn.net/cuibruce/article/details/53501532

http://www.cnblogs.com/kmonkeywyl/p/5728062.html

时间: 2024-08-27 08:23:14

redis 3.2.6 on ubuntu 14.04的相关文章

Ubuntu 14.04下Redis安装及简单测试

摘要: Redis是目前业界非常受到欢迎的一个内存数据库,一般用作系统的中间缓存系统,用以提升整体商业系统的吞吐量和响应速度.本文将简要介绍安装的主要过程以及给出一个简要的测试代码. 1.  系统环境和版本说明 Linux操作系统选用Ubuntu 14.04, Redis的版本选取目前的最新稳定版本redis-3.07. 客户端选用了Redis的Java版本jedis 2.4.2. 2.  Redis的安装步骤 a. 下载Redis的安装包 wget http://download.redis.

ubuntu 14.04下简易安装php5.5 + apache2 + redis + mysql

我是在Windows 10下安装的vagrant环境. 1.首先官网:https://www.vagrantup.com/ 下载最新版的vagrant,安装:安装虚拟机VirtualBox:https://www.virtualbox.org/ : BOX环境我以前用的是centos,后来感觉ubuntu用着更顺手,作为本机开发环境,直接选用了LTS版,也就是ubuntu 14.04 :https://atlas.hashicorp.com/ubuntu/boxes/trusty64 [我的bo

NVIDIA DIGITS 学习笔记(NVIDIA DIGITS-2.0 + Ubuntu 14.04 + CUDA 7.0 + cuDNN 7.0 + Caffe 0.13.0)

转自:http://blog.csdn.net/enjoyyl/article/details/47397505?from=timeline&isappinstalled=0#10006-weixin-1-52626-6b3bffd01fdde4900130bc5a2751b6d1 NVIDIA DIGITS-2.0 + Ubuntu 14.04 + CUDA 7.0 + cuDNN 7.0 + Caffe 0.13.0环境配置 引言 DIGITS简介 DIGITS特性 资源信息 说明 DIGI

Ubuntu 14.04 Virtual Judge 的搭建

Ubuntu 14.04 Virtual Judge 的搭建 博客的排版可能不是很好,可以下载本文的PDF: Ubuntu 14.04Virtual Judge 的搭建 本人是一名ACM弱菜,由于集训队需要, 我们决定架设自己的OnlineJudge和Virtual Judge,于是开始了噩梦般的搭建. OJ的搭建,非常顺利,参考的是 Ubuntu Server 12.04搭建hustoj 这篇博客 写得非常好,其他不多说,如果有需要搭建自己学校的OJ的朋友,可以参考, 主要就是架设LAMP,其

Linux内核编译 Ubuntu 14.04.3 server 升级至3.19.8

读书笔记:<Linux内核设计与实现>,原书第3版,陈莉君 康华 译 第2章:从内核出发     2.3节:编译内核 实验: ============================================================ 系统环境:VM虚拟机 Ubuntu 14.04.3 LTS server版 任务:编译安装新的内核 注意:不要跨大版本,我在3.19版本内 耗时:2小时 所有版本的内核: https://www.kernel.org/pub/linux/kernel

Linux -&gt;&gt; UBuntu 14.04 LTE下安装Hadoop 1.2.1(集群分布式模式)

安装步骤: 1) JDK -- Hadoop是用Java写的,不安装Java虚拟机怎么运行Hadoop的程序: 2)创建专门用于运行和执行hadoop任务(比如map和reduce任务)的linux用户,就像windows下的服务账户,并且授权给他可以访问运行JDK目录权限,让他可以执行java虚拟机.这个账户最后用来运行bin\.start_all.sh启动hadoop的所有服务,那运行账户肯定是他了,他肯定要有足够的权限.再者,需要配置这个账户的个人环境变量,把Java虚拟机的主目录地址环境

Install postfix on Ubuntu 14.04.txt

Ubuntu 14.04上安装和配置Postfix邮件服务详细教程 Postfix: 用来接受和发送邮件的邮件服务器,正确说法应该叫邮件传送代理(Mail Transfer Agent,MTA),是邮件服务最重要的部分:    Dovecot: POP 和 IMAP 服务器,用来管理本地邮件目录以便用户能通过 Mail.app, Thunderbird, Mutt 等邮件客户端(又叫邮件用户代理 Mail User Agent, MUA)登陆和下载邮件:    Postgrey: 邮件灰名单工具

ubuntu 14.04 install fcitx

ubuntu 14.04 input method sudo apt-get install fcitx-googlepinyin sudo apt-get install fcitx-sunpinyin language support 里边设置keyboard input method system: fcitx input method 选择fcitx restar the x-window 顶部状态栏会出现键盘图标点击选择config current input method 弹出串口点

ubuntu 14.04编译安装xen4.4总结

1. 安装环境 操作系统:ubuntu14.04 xen版本:xen4.4 2. 依赖包的安装 在安装xen之前先进行依赖包的安装,在不停得尝试之后,总结出以下需要安装的依赖包. suso apt-get install gcc make binutils zlib1g-dev python-dev sudo apt-get install libncurses5-dev libcurl4-openssl-dev libx11-dev sudo apt-get install uuid-dev