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