Nowaday, Redis became more and more popular , many projects use it in the cache module and the store module.

There are already many people wrote posts about Redis.And I am vary pleasure to join them to share my learing of Redis.

But I am new in this technology,if you find some mistakes on my post,please point out them and excuse my fault.

  The Environment of my computer is CentOS 7 (Vmware).What we do first is to install the Redis.The installation of Redis

is vary easy.Let's start: 

  a) use the cd command to enter the tmp folder

  b) use the wget command to download the redis    

   wget http://download.redis.io/releases/redis-3.2.3.tar.gz

  c) use the tar to decompress the file    

    tar xzf redis-3.2..tar.gz -C /usr/redis-3.2.   
 
  d) enter the redis-3.2.3 folder

  e) use the make command to build it

  

  f) copy used file to /usr/redis      
   /usr/redis-3.2./redis.conf
  /usr/redis-3.2./src/redis-server
  /usr/redis-3.2./src/redis-benchmark
  /usr/redis-3.2./src/redis-benchmark
  /usr/redis-3.2./src/redis-check-rdb
  /usr/redis-3.2./src/redis-cli  

  

  Now,we can use the command  ./redis-server  to start the Redis.

  

  What a easy thing that everybody can do.  

  We can find that while we use this command to start the redis , we can't do anything utill we open another window.

There is a Solution to deal with it.We should stop the redis by  ctrl+c  first.Then use the  vim redis.conf  to modify the configuration.

what we should do is to find out the daemonize and set its value to yes and save it.

  

  After this step,we start the service again.At this time you can enter commands in current window not another one.

But you will ask this question:Is it running now?Sure!We can use the follow command to prove this question.

   ps aux|grep redis 

  

  As the above picture shows,the service of redis is running.

  At last,I will tell you how to stop the service.You can use the client to stop it,and you can use the below command.

  ./redis-cli shutdown

  and use the command ps to prove it.

  

  The next post of this series is the basic opreation of the Redis , including the redis's native commands

and how to use StackExchange.Redis in C#.

Basic Tutorials of Redis(1) - Install And Configure Redis的更多相关文章

  1. Basic Tutorials of Redis(7) -Publish and Subscribe

    This post is mainly about the publishment and subscription in Redis.I think you may subscribe some o ...

  2. How To Install and Use Redis

    https://www.digitalocean.com/community/tutorials/how-to-install-and-use-Redis About Redis redis, dev ...

  3. How to Install and Configure Nginx from Source on centos--转

    1.CentOS - Installing Nginx from source http://articles.slicehost.com/2009/2/2/centos-installing-ngi ...

  4. Install and Configure Apache Kafka on Ubuntu 16.04

    https://devops.profitbricks.com/tutorials/install-and-configure-apache-kafka-on-ubuntu-1604-1/ by hi ...

  5. [scrapy-redis] install and configure scrapy-redis on CentOS 7 (1)

    0. 安装依赖 yum install -y zlib zlib-devel openssl openssl-devel bzip2 bzip2-devel sqlite-devel gcc wget ...

  6. Install and Configure SharePoint 2013 Workflow

    这篇文章主要briefly introduce the Install and configure SharePoint 2013 Workflow. Microsoft 推出了新的Workflow ...

  7. You must use the Role Management Tool to install or configure Microsoft .NET Framework 3.5 SP1

    今天在Windows Server 2008 下安装SQL SERVER 2008时,碰到如下错误: You must use the Role Management Tool to install ...

  8. Use the PDFs below or the HTML contents to the left to install and configure P6 EPPM and its additional components.

    Welcome to Your Documentation   Use the PDFs below or the HTML contents to the left to install and c ...

  9. Install and Configure OSSEC on Debian 7&8

    Install and Configure OSSEC on Debian 7&8 Contributed by Sunday Ogwu-Chinuwa Updated Friday, Feb ...

随机推荐

  1. InnoDB体系结构学习笔记

    后台线程 Master Thread 核心的后台线程,主要负责将缓冲池的数据异步刷新到磁盘,保证数据的一致性,包括(脏页的刷新).合并插入缓冲.(UNDO页的回收)等 IO Thread 4个writ ...

  2. Angular企业级开发(2)-搭建Angular开发环境

    1.集成开发环境 个人或团队开发AngularJS项目时,有很多JavaScript编辑器可以选择.使用优秀的集成开发环境(Integrated Development Environment)能节省 ...

  3. CSS 3学习——边框

    在CSS 3中可以设置边框圆角.边框阴影和边框图像,分别通过border-radius.border-image和box-shadow属性设置. 边框圆角 border-radius属性是以下4个属性 ...

  4. Java中常用集合操作

    一.Map 名值对存储的. 常用派生类HashMap类 添加: put(key,value)往集合里添加数据 删除: clear()删除所有 remove(key)清除单个,根据k来找 获取: siz ...

  5. BridgePattern(桥接模式)

    /** * 桥接模式 * @author TMAC-J * 应用于多维度方案 * 用组合的形式代替继承 * 符合单一职责原则 * 一个类只有一个引起他变化的原因 * 增加程序灵活性 */ public ...

  6. 【SAP业务模式】之ICS(六):发票输出类型

    这篇开始主要讲述发票输出类型: 首先我们新建一个发票类型,用于公司间的发票MIV,而标准的发票类型还是F2保持不变: 一.新建发票类型: 目录:SPRO-销售与分销-出具发票-开票凭证-定义出具发票类 ...

  7. Quartz2D总结

    天了噜,脑子完全懵了,最起码说出来个上下文啊,连这个都给忘了,特此总结一下,并以此缅怀这次面试 Quartz2D的API来自于Core Graphics(这就是为什么CGContextRef是以CG开 ...

  8. Linux基础介绍【第九篇】

    服务器添加3块磁盘的体系结构 [root@oldboylinux test]# free -m              total used free shared buffers cached M ...

  9. linux的top命令参数详解

    简介 top命令是Linux下常用的性能分析工具,能够实时显示系统中各个进程的资源占用状况,类似于Windows的任务管理器. top显示系统当前的进程和其他状况,是一个动态显示过程,即可以通过用户按 ...

  10. hexo+github搭建个人博客

    最近用hexo+github搭建了自己的个人博客-https://liuyfl.github.io,其中碰到了一些问题,记录下来,以便查阅. hexo+github在win7环境下搭建个人博客:hex ...