Ubuntu16.04 installation of Redis and implementation of HelloWorld

Source: Internet
Author: User
Tags install redis

Original source: Http://blog.csdn.net/xiangwanpeng

1 sudo wget http://download. Redis. io/releases/redis-3.2. 6. Tar. GZ

2 sudo tar-zxvf redis-3.2. 6. Tar. GZ

3 If GCC is not installed, you need to install it first

sudo apt-get install gcc

4 sudo make

5 sudo make install

6 Copy the configuration file redis.conf to/etc/redis/, and edit the file with the VI command, modify "Daemonize no" to "daemonize yes", which is set to run as a background process and save exit after the modification is complete.

7 go to the/usr/local/bin directory and execute the command: (Default port 6379)

 redis-server /etc/redis/redis.conf

Redis-cli- p 6379

 

Install Redis under Ubuntu16.04 and implement HelloWorld

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.