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. 用scikit-learn学习DBSCAN聚类

    在DBSCAN密度聚类算法中,我们对DBSCAN聚类算法的原理做了总结,本文就对如何用scikit-learn来学习DBSCAN聚类做一个总结,重点讲述参数的意义和需要调参的参数. 1. scikit ...

  2. [C#] 回眸 C# 的前世今生 - 见证 C# 6.0 的新语法特性

    回眸 C# 的前世今生 - 见证 C# 6.0 的新语法特性 序 目前最新的版本是 C# 7.0,VS 的最新版本为 Visual Studio 2017 RC,两者都尚未进入正式阶段.C# 6.0 ...

  3. slf4j中的MDC

    slf4j中MDC是什么鬼 slf4j除了trace.debug.info.warn.error这几个日志接口外,还可以配合MDC将数据写入日志.换句话说MDC也是用来记录日志的,但它的使用方式与使用 ...

  4. 安装并使用PHPunit

    安装并使用PHPunit Linux 下安装PHPunit PHP 档案包 (PHAR)  要获取 PHPUnit,最简单的方法是下载 PHPUnit 的 PHP 档案包 (PHAR),它将 PHPU ...

  5. CentOS 7 修改主机名

    今天在阿里云上买了一个centos7的服务器,连接上以后,发现一个很长很长的主机名,看着让人很是不爽,就想着怎样将其改成一个有个性的名字. 这里我想说的是,在centos7 版本的linux系统上和c ...

  6. 简单Linux命令学习笔记

    1.查看进程 ps -ef | grep 关键字       /*关键字为服务名*/ netstat -unltp | grep 关键字        /*关键字为服务名或者是端口均可*/ 2.杀死进 ...

  7. Linux.NET实战手记—自己动手改泥鳅(下)

    在上回合中,我们不痛不痒的把小泥鳅的数据库从只能供在Windows下运行的Access数据库改为支持跨平台的MYSQL数据库,毫无营养的修改,本回合中,我们将把我们修改后得来的项目往Linux中部署. ...

  8. CSharpGL(25)一个用raycast实现体渲染VolumeRender的例子

    CSharpGL(25)一个用raycast实现体渲染VolumeRender的例子 本文涉及的VolumeRendering相关的C#代码是从(https://github.com/toolchai ...

  9. [译]ZOOKEEPER RECIPES-Locks

    锁 全局式分布式锁要求任何时刻没有两个客户端会获得同一个锁对象,这可以通过使用ZooKeeper实现.像优先级队列一样,首先需要定义一个锁节点. 在ZooKepeer的发布中src/recipes/l ...

  10. JavaScript dom 动态创建标记

    此前的大多数DOM都是用来查找元素,getElementById和getElementsByTagName都可以方便快捷的找到文档中的某个或者某些特定的元素节点,这些元素随后可以用诸如setAttri ...