How to install Redis 3.2 on CentOS 6 and 7
2017-09-28 15:31
531 查看
WhatisRedis?
Redisisaflexibleopen-source,keyvaluedatastore,usedasadatabase,cacheandmessagebroker.Redisallowstheusertostorevastamountsofdatawithoutthelimitsofarelationaldatabase.Inordertoachieveitsoutstandingperformance,Redisworkswithanin-memorydataset.Dependingonyourusecase,youcanpersistiteitherbydumpingthedatasettodiskeveryonceinawhile,orbyappendingeachcommandtoalog.Persistencecanbeoptionallydisabled,ifyoujustneedafeature-rich,networked,in-memorycache.Installnecessarypackages
OnCentOS6:yuminstallwgetmakegcctclOnCentOS7
yuminstallwgetmakegcc
InstallRedis3.2
ForinstallingRedis3.2youhavetodownloadthesourcefileandcompileitbecauseRedis3.2isnotavailableinanyrepositoryyet.OnCentOS6andCentOS7wget'target='_blank'>http://download.redis.io/releases/redis-3.2.8.tar.gz[/code]Nowyouhavetoextractthefilethatyoujustdownloadedbytyping: tar-xvzfredis-3.2.8.tar.gzChangedirectorywiththecommandbelow:cdredis-3.2.8It’stimetocompileyourRedisstepbystep:cddeps makehiredisluajemalloclinenoise makegeohash-intNowrunbelowcommandtogetbacktotheparentdirectoryandrunthenextcommand:cd../makemakeinstallAndforgettingsurerunningatest:maketestIt’sgoingtotakeafewminutes,youcancheckthateverythingisok.Installinitscript
Inthissection,wearegoingtoinstall“initscript”tomanagetheprocessofRedis.cdutils./install_server.shYouwillbepromptforsomeconfigurationyoucanhit“Enter”toacceptallthedefaultvaluesoryoucansetyours.Finally,yourRedisserverisinstalledandyoucanstarttheservicebythecommandbelow:ForCentOS6serviceredis_6379startForCentOS7systemctlstartredis_6379IfyouwanttotestyourRedisserveryoucaneasilyusetheinstructionbelow:redis-cli>settest"HugeServer">gettestTheanswershouldbe“HugeServer”IfyouneedacontrolpanelforyourRedisServeryoumayusePhpredminor Redmon
相关文章推荐
- How to Install PostgreSQL 10 on CentOS/RHEL 7/6 and Fedora 26/25
- How to Install and Configure Nginx from Source on centos--转
- How to install innotop and percona tookit on centos
- 转: How to Install MongoDB 3.2 on CentOS/RHEL & Fedora (简单易懂)
- How to install Apache, PHP 7.1 and MySQL on CentOS 7.3 (LAMP)
- How To Install Elasticsearch, Logstash, and Kibana (ELK Stack) on CentOS 7
- How to install and configure NGINX on CentOS 7
- How to Install Cerb Collaboration and Email Automation on CentOS 7
- How to Install PostgreSQL 9.5 on CentOS/RHEL 7/6/5 and Fedora 23/22
- How to Install and Run a node.js App on Centos 6.4 64bit
- How to install redis server on CentOS 7 / RHEL 7
- How to install Python 2.7 and Python 3.3 on CentOS 6
- [转载]How to Install Firefox 33 on CentOS, Redhat and Other Linux Distributions
- How to install python, wxPython and ride on CENTOS
- how-to-install-redis-on-centos6.6-x86_64
- How to install Python 2.7 and Python 3.3 on CentOS 6
- How to Install PHP 7 with Apache and MariaDB on CentOS 7/Debian 8
- How to Install LAMP (Apache 2.4, MySQL 5.6, and PHP 5.4) on CentOS/RHEL 7
- [转载]How To Install Nginx And PHP-FPM On CentOS 6 Via Yum
- howto install Oracle VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL).