In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Brief introduction of redis
Remote dictionary server (redis) is a key-value storage system written by salvatore sanfilippo.
Redis is an open source log database written in ansi c language, complies with bsd protocol, supports network, can be memory-based and persistent, key-value database, and provides api in multiple languages.
It is often called a data structure server because the value can be of types such as string, map, list, sets, and sorted sets.
1. Installation when there is an external network (the configuration of the external network has been discussed in the essays classified by linux)
Step 1: install the compilation tool. Redis is written in ansi c. We need to install the tool that compiles it.
Command: yum install wget make gcc gcc-c++ zlib-devel openssl openssl-devel pcre-devel kernel keyutils patch perl
Step 2: install the tcl package. We need tcl scripting language support when installing redis.
# choose a place to store the software package and enter it into the directory file where the package is stored
Command: cd / usr/local/src
# download tcl package
Command: wget http://downloads.sourceforge.net/tcl/tcl8.6.6-src.tar.gz
# decompress the tcl package in the current directory
Command: tar zxvf tcl8.6.6-src.tar.gz
# enter the decompressed installation directory file
Command: cd tcl8.6.6
# configure tcl components
Command: cd unix
Command:. / configure-- prefix=/usr-- without-tzdata-- mandir=/usr/share/man $([$(uname-m) = x86Secret64] & & echo-- enable-64bit)
# compiling
Command: make
# process the input text file with the script specified in the option
Command: sed-e "s @ ^\ (tcl_src_dir='\). * @\ 1 tclconfig.sh tclconfig.sh @"-e "/ tcl_b/s@='\ (- l\)\?. * unix@='\ 1 @-I tclconfig.sh
# installation
Command: make install
Command: make install-private-headers
# establish a soft connection (like a shortcut in windows)
Command: ln-v-sf tclsh8.6 / usr/bin/tclsh
# modify the permissions of execution file
Command: chmod-v 755 / usr/lib/libtcl8.6.so
Step 3: install the redis database
# choose a place to store the software package and enter it into the directory file where the package is stored
Command: cd / usr/local/src
# download redis database package
Command: wget http://download.redis.io/redis-stable.tar.gz
# decompress redis database package
Command: tar-zxvf redis-stable.tar.gz
# create an installation directory file for redis
Command: mkdir / usr/local/redis
# move files to the installation directory
Command: mv redis-stable / usr/local/redis
# enter the installation directory
Command: cd / usr/local/redis
# compiling
Command: make
# installation
Command: make install
# then check whether there is a program file for redis in the / usr/local/bin directory, and if not, copy the program file for redis from redis-stable
Command: cd / usr/local/bin
Command: ls
# Note: if not, copy
Command: cd / usr/local/redis/redis-stable
Command: mkdir-p / usr/local/bin
?
one
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.