CentOS Installation redis-3.2.3

Source: Internet
Author: User
Tags redis download

This is a description of the installation under the virtual machine CentOSredis-3.2.3

First enter the official website http://redis.io/download

We can download it and upload it to CentOS via the file. You can also download the installation package directly in the Centis

Because my CentOS is just newly installed so in the run

wget http://download.redis.io/releases/redis-3.2.3.tar.gz

An error occurred wget:command not found
This is because we didn't have the wget package installed.
Workaround yum-y Install wget

When the Redis download is successful

Start the Decompression tar xzf redis-3.2.3.tar.gz
Access to the directory cd redis-3.2.3
进行编译 make

system does not install the GCC environment, need to install GCC, for convenience, here I choose to install with Yum.
Solution: Yum install gccStart src/redis-server This is the general process .the following results of my executionThis is my CentOS network IP I use a tool Xshell to connect to the CentOS environmentUnzip the compilationOpen Server we can see that this server has been opened and a window has been opened behind it into the SRCtest Result OKThis command can see if the port is occupiedNETSTAT-TUNPL |grep 6379 查看redis的进程
ps -ef|gref redis

关闭服务器
./redis-cli shutdown pkill redis-server


 




CentOS Installation redis-3.2.3

Related 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.