Install redis in Linux and redis in linux

Source: Internet
Author: User
Tags download redis install redis

Install redis in Linux and redis in linux
Environment: centos7 reference: http://blog.csdn.net/lk10207160511/article/details/50364088:Install redis:Open terminal input su switch to root user input password input cd enter root directory install gcc already installed can skip installation command yum install gcc download redis: wget http://labfile.oss.aliyuncs.com/files0422/redis-2.8.9.tar.gz unzip redis: tar xvfz redis-2.8.9.tar.gz into redis directory: cd redis-2.8.9 install redis execute: make install may have error: jemalloc/jemalloc. h: No file or directory error solved: make MALLOC = libc execute re-Execute Installation Steps reference: http://www.zhixing123.cn/ubuntu/50669.html test redis installation is successful make test may have error: You need tcl 8. 5 or newer in order to run the Redis test solution: solution 1: wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gzsudo tar xzvf tcl8.6.1-src.tar.gz-C/usr/local/cd/usr/local/tcl8.6.1/unix/sudo. /configuresudo makesudo make install solution 2: or use the: yum install tcl command to install. After searching, you find that you do not need to install it. Run it directly in the src directory. /redis-server can be tested reference: http://www.codeceo.com/article/centos-redis-setup.html in Redis after installation is complete, pay attention to some important files, ls command can be used to query See. Server: src/redis-server, client: src/redis-cls, default configuration file: redis. conf lscd srcls and then place the executable file in the $ PATH environment directory, you do not need to enter the complete path cp redis-server/usr/local/bin/cp redis-cli/usr/local/bin/for later program execution/Start Redis-serverRedis-serverView redisPs-ef | grep redisRun the startup command to check the status of the Redis ServerNetstat-nlt | grep 6379Start Redis-clientSu (enter the root password to enter the root directory) cd redis-cli to change the startup mode, refer to the original article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.