Redis Installation II

Source: Internet
Author: User
Tags redis server

Redis Installation II redis-2.8.19

Create directory mkdir redis_7000

Unzip to directory redis_7000, tar-xzvf redis-2.8.19-c redis_7000

Go to directory redis_7000/redis-2.8.19 and move all files and subdirectories in the current directory to the parent directory of the current directory, CP *.. /

Delete The redis-2.8.19 directory, RM-RF redis-2.8.19.

Go back to the directory redis_7000, execute make, at this point, the SRC directory in the current directory of the total number of redis-server files. Do not worry, first modify the configuration file.

Copy a copy of the redis.conf, save as 7000.conf, open 7000.conf, modify two parameters, respectively:

Port

# Accept connections on the specified port, default was 6379.# If Port 0 is specified Redis won't listen on a TCP socket . Port 7000

Daemonize

# By default, Redis does not run as a daemon. Use ' yes ' if you need it.# Note that Redis would write a PID file in/var/run/redis.pid when daemonized.daemonize Yes

Find a specified string using the Find command in VIM

Enter in command mode

/word This is to find the word "word" in the file, from the top of the file to find

Word this is to find the word "word" in the file, from below the file to look up

When the ENTER key is pressed, VIM searches for the specified pattern and positions the cursor at the first character of the pattern.

To search for other matches of pattern, press N or N:

N, continue searching for place in the same direction.    

N, search in the opposite direction.

Start Redis server Now, [[email protected] redis_7000]#./src/redis-server 7000.conf

Open the client,

[Email protected] redis_7000]#/src/redis-cli-p 7000127.0.0.1:7000>

OK, the boot succeeded on port 7000. This is a relatively simple way to install.


Redis Installation II

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.