Basic Tutorials of Redis(1) - Install And Configure Redis

  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.3.tar.gz -C /usr/redis-3.2.3  

  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.3/redis.conf
  /usr/redis-3.2.3/src/redis-server
  /usr/redis-3.2.3/src/redis-benchmark
  /usr/redis-3.2.3/src/redis-benchmark
  /usr/redis-3.2.3/src/redis-check-rdb
  /usr/redis-3.2.3/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#.

时间: 2024-10-10 23:36:13

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

Install and Configure Apache Kafka on Ubuntu 16.04

https://devops.profitbricks.com/tutorials/install-and-configure-apache-kafka-on-ubuntu-1604-1/ by hitjethvaon Oct 03, 2016 Intermediate Table of Contents Introduction Features Requirements Getting Started Installing Java Install ZooKeeper Install and

Install and Configure OpenStack Database Service (Trove)

Based on OpenStack Icehouse release we will install Database service on controller node 1. 这个还不完善,以后更新 Install and Configure OpenStack Database Service (Trove),布布扣,bubuko.com

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 or configure Microsoft .NET Framework 3.5 SP1. 既然碰到了顺便还是记录一下,虽然感觉没啥技术含量也没有难度,有时候有必要养成一个好习惯.记录你碰到的问题.解决问题的方案,你思考的点点滴滴! 打开 Server Manager,在"Features&quo

NotePad++ - 安装和配置C/C++开发插件 | NotePad++ - Install and Configure plugins for develop C/C++

一.NotePad++插件 / NotePad++ Plugins 1.Function List ( Unicode ) 当前最新版本:Version 2.1发布日期:2010-02-18安装程序下载地址:http://sourceforge.net/projects/npp-plugins/files/Function%20List/FunctionList%20Plugin%20v2.1/FunctionList_2_1_UNI_dll.zip/download 2.NppExec ( U

ubuntu 16.04源码编译和配置caffe详细教程 | Install and Configure Caffe on ubuntu 16.04

本文首发于个人博客https://kezunlin.me/post/b90033a9/,欢迎阅读! Install and Configure Caffe on ubuntu 16.04 Series Part 1: Install and Configure Caffe on windows 10 Part 2: Install and Configure Caffe on ubuntu 16.04 Guide requirements: NVIDIA driver 396.54 CUDA 8

redis总结(一) -- php中redis的使用

经常用到redis,但基本上都是基于集成开发环境,redis的连接也是基于框架自身,总感觉缺点什么,恰好在ubuntu系统中apt-get并不直接提供php的redis扩展,借此机会总结了下redis对php的支持 如果想想要在程序中使用redis,那么要有两个先决条件,第一要安装redis程序,第二要使redis支持php 这里主要谈一下redis对php的支持,我们常见的有两种 1.phpredis(实现方式:php扩展,c语言) 特点:需要我们在开发环境中安装php扩展,使用比较方便,缺点

Redis系列-php怎么通过redis扩展使用redis

From: http://blog.csdn.net/love__coder/article/details/8691679 通过前面几篇blog,我们应该对redis有个大致的认识,这里再讲解下,php怎么连接redis服务器进行数据读写? 1.安装php扩展 a)安装php扩展phpredis: [plain] view plaincopyprint? [[email protected] tool]# git clone https://github.com/nicolasff/phpre

redis安装与php安装redis模块

一.安装redis 1.下载 wget https://github.com/antirez/redis/archive/2.8.23.tar.gz 2.解压缩 tar -zxvf 2.8.23.tar.gz cd redis-2.8.23/ 3.因为redis官方已经给我们配置好了,生成了makefile文件,所以我们只要make编译和安装就行了 make PREFIX=/usr/local/redis make PREFIX=/usr/local/redis install 4.将redis

Redis高可用方案(redis主从+keepalived+sentinel)

架构:redis主从+keepalived+sentinel 三台机器,两台redis主从,一台配合选举sentinel leader机器. Master:  192.168.100.135    controller         部署redis+keepalived+sentinel Slave:  192.168.100.136     web-nb-136     部署redis+keepalived+sentinel 配合sentinel:  192.168.100.128