cp/usr/local/src/
wget http://download.redis.io/releases/redis-3.0.1.tar.gz
Tar zxf redis-3.0.1.tar.gz
CD redis-3.0.1
Make
Make install
CP redis.conf/etc/
Vi/etc/redis.conf
Daemonize Yes
Parameter description:
Daemonize: Whether to run daemon mode later
Pidfile:pid File Location
Port: Port number for listening
Timeout: Request time-out
Loglevel:log Information level
Logfile:log File Location
Databases: number of open databases
Save *: How often the snapshot is saved, the first * indicates how long, and the third * indicates how many times the write operation is performed. Snapshots are automatically saved when a certain number of writes are performed within a certain amount of time. You can set multiple conditions.
Rdbcompression: Whether to use compression
Dbfilename: Data Snapshot file name (only file name, excluding directory)
Dir: Save directory for Data snapshot (this is the directory)
AppendOnly: If the appendonlylog is turned on, each write will record a log, which will improve the data anti-risk ability, but affect the efficiency.
Appendfsync:appendonlylog How to sync to disk (three options, each write is forced to call Fsync, Fsync per second, do not call Fsync wait for the system to synchronize itself)
Redis-server/etc/redis.conf
[Email protected] redis-3.0.1]# Ps-ef|grep Redis
Root 4407 1 0 23:12? 00:00:00 Redis-server *:6379
Root 4411 1365 0 23:12 pts/0 00:00:00 grep redis
This article is from the "Dabao" blog, make sure to keep this source http://332532.blog.51cto.com/322532/1812308
Redis Installation Notes