Redis Installation Notes

Source: Internet
Author: User

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

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.