In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
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 in background daemon mode
Pidfile:pid file location
Port: the port number on which to listen
Timeout: request timeout
Loglevel:log information level
Logfile:log file location
Databases: number of databases opened
Save * *: how often the snapshot is saved. The first * indicates how long it takes, and the third * indicates how many writes are performed. The snapshot is automatically saved when a certain number of writes are performed within a certain period of time. Multiple conditions can be set.
Rdbcompression: whether to use compression
Dbfilename: data snapshot file name (file name only, not directory)
Dir: the directory where the data snapshot is saved (this is the directory)
Appendonly: whether or not to enable appendonlylog, each write operation will record a log, which will improve the anti-risk ability of the data, but affect the efficiency.
How to synchronize appendfsync:appendonlylog to disk (three options: forcing fsync to be called every time you write, enabling fsync once per second, and not calling fsync to wait for the system to synchronize itself)
Redis-server / etc/redis.conf
[root@localhost 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
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.