Redis stand-alone setup

Source: Internet
Author: User

1. Create sub-users (to start redis)

[Email protected] ~]# Useradd Redis

    1. 2. Switch to sub-user environment

[email protected] ~]# sudo su–redis

    1. 3. upload redis software or wget http://download.redis.io/releases/redis-3.2.6.tar.gz

[Email protected] ~]$ rz-y

RZ waiting to receive.

Starting Zmodem transfer. Pressctrl+c to cancel.

Transferring redis-3.2.6.tar.gz ...

100% 1508 KB 1508 kb/sec 00:00:01 0 Errors

[[email protected] ~]$ ls

Redis-3.2.6.tar.gz

    1. 4. Unzip the Redis file and install

[[email protected] ~]$ mkdir Run

[Email protected] ~]$ tar zxf redis-3.2.6.tar.gz–c run/

[Email protected] ~]$ CD run/redis-3.2.6/

[[email protected] redis-3.2.6]$ make

    1. 5. start redis(this starts with the default profile)

[Email protected] ~]$ ~/run/redis-3.2.6/src/redis-server~/run/redis-3.2.6/redis.conf &

[Email protected] ~]$ Netstat-lantup|grep Redis

(Not all processes could is identified, non-owned process info

Won't is shown, you wouldhave to is root to see it all.)

TCP 0 0127.0.0.1:6379[L1] 0.0.0.0:* LISTEN 8536/redis-server 1

[L1] the address of the default binding and the Port


This article from "Li Qunyan Blog" blog, reproduced please contact the author!

Redis stand-alone setup

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.