directory here, not a file name.Dir./# # # #修改dump目录为新建目录# Specify the log file name. Also the empty string can be used# Redis to log on the standard output. Note If you use the standard# Output for logging but daemonize, logs'll be sent To/dev/nullLogFile ""# # # #修改log存储目录为新建目录3) PersistenceThe default RDB, you can choose whether to turn on aof, if enabled, modify the configuration file AppendOnly4) Start Redis
ObjectiveRequirement: When a key in Redis fails, the value of the failure is written to the database.Github:https://github.com/vergilyn/redissamples1, modify the redis.confThe Redis service installed by default is: Notify-keyspace-events "", modified to notify-keyspace-events Ex;Location: Redis Install the redis.window
one or more ordered sets and stores it in an ordered set of purposes. The fractional value of a member in the result set is the sum of the values of that member under all given sets. $ret = $redis->zinterstore (' Zset3 ', ' Zset2 ', ' zset1 ');//Calculates the set of a given one or more ordered sets and stores it in an ordered set of purposes. The fractional value of a member in the result set is the sum of the values of that member under all given s
I. Installation of Redis1. Downloadwget https://github.com/antirez/redis/archive/2.8.23.tar.gz2. DecompressionTAR-ZXVF 2.8.23.TAR.GZCD redis-2.8.23/3, because the Redis official has been configured for us, generated the makefile file, so we just make compile and install the lineMake Prefix=/usr/local/redismake Prefix=/usr/local/
as the installation of Python, Entering redis-2.0.2, here are a few files:
Redis-server.exe Redis Server Daemon Startup programredis.conf Redis configuration fileRedis-cli.exe Redis Command Line operation tool. Of course, you can also use Telnet to operate on its plain t
[start | stop | restart] asfirst argument \ e [0 m"; esac
Grant execution permission: chmod + x/etc/init. d/redis
Add boot start:
Chkconfig -- add redis
Chkconfig redis on
View: chkconfig -- list | grep redis
In this test, the firewall and selinux are disabled beforehand. We recommend that you enable the firewall in t
Redis installation Configuration
This section describes how to install and configure redis and start redis as a service.1. download the latest version of the redis-3.0.7 to the unzip-zxvf redis-3.0.7.tar.gz above the
Http://www.linuxidc.com/Linux/2013-06/85816.htm
Ubuntu 12.10 Install Redis (Text detailed) + Jedis connection Redis
To ensure that permissions do not go wrong, the following operations are performed using the root account.
1. Get Redis source
Wgethttp://redis.googlecode.com/files/redis-2.2.13.tar.gz
2. Decompressio
the extracted Redis directory (the author here is/opt/redis-2.8.24), use the command make Prefix=/usr/local/redis install to complete the compilation and installation work.4. After installation, the contents of the Bin directory under the installation directory are as follows:5, start the Redis
current memory status.2. indicates that the kernel is allowed to allocate more memory than the total physical memory and swap space.Redis generates a sub-process when dumping data. In theory, the memory occupied by the child process is the same as that of the parent. For example, the parent occupies 8 GB of memory, at this time, 8 GB of memory should also be allocated to the child. If the memory is not enough, it will often cause the redis server to
protocol.Redis-check-dump.exe local database checkRedis-check-aof.exe Update log checkRedis-benchmark.exe performance testing to simulate sending M SETs/GETs queries simultaneously by N clients (similar to Apache's AB tool)
Benchmark tool test information:
Sends 0.1 million requests to the redis server, each with 60 concurrent clients
Oh, my computer is a little overwhelmed, but it still shows that 4.03 requests have been tested in 0.1 million sec
end with done.
Please enter the source node IDs.
The Type ' All ' is the nodes as source nodes for the hash slots.
Type ' Done ' once your entered all the source nodes IDs.
Source node #1: All
#打印被移动的slot后, enter Yes to begin moving the slot and the corresponding data.
#Do want to proceed with the proposed Reshard plan (yes/no)? Yes
#结束
3): Add a new slave nodeA): The first three steps are the same as adding master b) Step Fourth:
redis-server are generally separated, deployed on different pc-servers. At the same time, the number of sentinel and the number of redis-server are not linked. The following three sentinel services are deployed on one pc for ease of use ). Note:The sentinel configuration file is only related to the default master, and has nothing to do with slave. The above example uses three
Redis Automatic Installation Deployment
This article is divided into 4 parts:
Redis automatic Installation script directory structure description;
Redis automatically install script content;
Redis Operating system service script description;
The data link address refere
--prefix=/usr/local/keepalived--sysconf=/etc
$ chkconfig--add keepalived
See if success
$ Service keepalived StatusInstall Redis
Download Redis, the current Redis stable version is 2.8.17, download address Redis-2.8.17
$ wget http://download.redis.io/releases/
/src #
5. Start and verify the service
After starting redis, a warning message is reported.
Vm. overcommit_memory = 1
Append
/Etc/sysctl. conf
At the end of the file and execute
Sysctl vm. overcommit_memory = 1
Command
Restart redis without warning. Everything is OK:
Verify the startup status. Everything is normal:
6. Simple telnet Test
Use telnet to conn
definition of MongoDB is oriented-document database server, unlike BerkeleyDB, the database can run independently and provide related data services as other relational database servers. From the official documentation of the product, we can learn that MongoDB is mainly applicable to high concurrent forums or blog sites, which are characterized by high concurrent traffic, less reading and writing, large amount of data, simple logical relationships, and document data as the primary data source. L
default configuration is as follows:Save 1 #900秒 1 changesSave #300秒 10 UpdatesSave 10000Note that if you do not persist "do not write data to disk", comment out save.) Rdbcompression Yes|noWhen the data dumps to the data file, the system compresses the string object data, and the system defaults to Yes. If you want to save the CPU, you can set it to no, when the data file is larger than the LZF compression) Dbfilename Dump.rdbSpecify the database file name, default is Dump.rdbdir/var/lib/
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.