Author: Water as smoke
Namespace LzmTW.uSystem.uWindows.Win32APIFriend Class ErrCollection07Private Collection as New Dictionary (of Integer, String)Private Shared Loader as ErrCollection07Private Shared Ginternalsyncobject as ObjectPrivate Sub New
In the outdated registration for nearly four years of time, and no less in here to stroll, feel the many stationmaster's bitterness and labor. A while ago saw Ddz wrote a "look at the outdated everywhere is tired of the size of the webmaster how?" I
Website Making money
In the outdated registration for nearly four years of time, and no less in here to stroll, feel the many stationmaster's bitterness and labor. A while ago saw Ddz wrote a "look at the outdated everywhere is tired of the size of
7000/7001
Test02
192.168.2.10
CentOS 6.3 (64-bit)
Instance 7002/7003
Test03
192.168.2.7
CentOS 6.3 (64-bit)
Instance 7004/7005
Deployment steps:
1. Compile and install redis.
Put the installation package in/data/and decompress it and compile it.
[root@test01 data]# tar -zxf redis-3.2.0.tar.gz
[root@test01 redis]# cd redis-3.2.0
[root@test01 redis-3.2.0]# make make install
[root@test01 redis]# ln
String TypeSet/get is the most common and simplest operation. Key value pair;
[Plain]View plain copy 192.168.159.130:7000> set num 1 OK 192.168.159.130:7000> get num "1" 192.168.159.130:7000gt; Get Age (Nil)
SETNX differs from set if the key value is present, does not overwrite return 0, and if the key value does not exist, set the value. and return 1 (NX not exist)
[Plain]View plain copy 192.168.159.130:
following content
redis_home=/home/xiezefan/sofeware/redis-3.0.5/src
path= $REDIS _home: $PATH
Export PATH
# Save for changes to take effect after
source ~/.BASHRC
To create Redis Cluster, we also need to install Ruby and RubyGems.
Yum install ruby
yum install gcc g++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel Apr-util-devel sqlite-devel
yum install ruby-rdoc ruby-devel
yum install rubygems
gem install Redis
Create a cluster
This time we need to creat
Linux.
Grub> root (hdx, Y)
# Generally, both the IDE and SATA hard disks are hd0, and Y is the partition where your Ubuntu system is located. The D disk is usually 5. You can try it several times by yourself,# Grub will prompt if it is incorrect. The following is similar
Grub> kernel (hdx, Y)/boot/vmlinuz-2.6.16
# Not necessarily a vmlinuz-2.6.16, you asked the brother installed with you,/boot/the name of
Install based on Redhat LinuxFront: Yum installed (because you need to install software like Ruby, it's easy to install using Yum Install, see http://eip.teamshub.com/t/3111540 for installing Yum)1, put "redis-3.0.5.tar.gz" into the Home/redis directory;2. DecompressionTAR-ZXVF redis-3.0.5.tar.gz3, into the directory to compileCD redis-3.0.5Make4. Create the directory required by the clusterMkdir-p/home/redis/redis-3.0.5/cluster-testCd/home/redis/redis-3.0.5/cluster-testmkdir 7000mkdir 7001mkdir
. 'linux partition' with the 'linux fdisk program'---------------- Df-report file system disk space usage ----------------- // view disk usage information1. df-h // list in the human-readable format------------------ Mount commandMount-t vfat/dev/sdb1/mnt/usb //-t specify the File SystemMount-o iocharset = cp936/dev/sdb1/mnt/usb // display Chinese characters in the WindowMount-a // mount all file systems set by fstab that do not use the noauto option as specified------------------ Format a disk/
fixed bit into a change bit.
CONV = UCase converts letters from lowercase to uppercase.
CONV = LCase converts letters from uppercase to lowercase.
CONV = Notrunc does not truncate the output file.
CONV = Swab Exchange Each pair of input bytes.
CONV = NoError does not stop processing when an error occurs.
Conv = sync the size of each input record to the size of the IBS (filled with nul).
count=
The number of bytes ibs=
if=
Number of bytes obs=
of=
seek=
Number of skip=
–help Help.
specified by IBS. Conv = Conversion [, conversion...] use the specified parameter to convert the file. Conversion parameters: Convert ebcdic to ASCII. Ebcdic converts ASCII to ebcdic. IBM converts each line to a CBS record by converting ASCII to alternate ebcdic. Block. The missing part is filled with spaces. Unblock: the length of each row is CBS, and spaces are used to fill the remaining parts. Lcase converts uppercase to lowercase. Ucase converts lowercase to uppercase. Swab exchanges each p
the beginning of the output file and then copied. (Usually only valid when the output file is a disk or tape ).
Count = Blocks
Copy only blocks. The block size is equal to the number of bytes specified by IBS.
Conv = Conversion [, conversion...]
Use the specified parameter to convert the file.
Conversion parameters:
ASCII conversion ebcdic is ASCII.
Ebcdic converts ASCII to ebcdic.
IBM converts ASCII to alternate ebcdic.
Block converts each row to a record with a length of CBS. The missing part
DD Command Feature
Copies the specified input file to the specified output file and can be formatted for conversion during the copy process. You can use this command to realize the function of the diskcopy command under DOS. First use the DD command to write the data on the floppy disk as a storage file, and then put the storage file into the second floppy disk, complete the function of diskcopy. It should be noted that the storage files on the hard disk should be removed with the RM command. T
, a time limit known as node timeout timeout, an important configuration option for the Redis cluster: building and using Redis clusters
The first thing to build a cluster we need some Redis instances running in cluster mode. This means that the cluster is not made up of ordinary redis instances, and cluster mode needs to be configured to enable the Redis instance of cluster mode to use the cluster-specific commands and attributes.
The following is a configuration file for a cluster with the few
The previous article explains the process of building the Redis cluster based on Redis cluster, and continues to explain the increase and decrease of node in the Redis cluster below. adding nodes in a cluster
Let's test again, add a new node, in 2 cases, 1 as the primary node, 2 as a node from the node. Let's try this separately: Create a new 7006 node to join as a primary node:New 7006 directory, copy configuration file, modify port, start 7006 Port Redis;
[Root@spg 7006]# Ps-ef | grep redis
ro
each row to a cbs-length record, and the insufficient portion is padded with spaces.Unblock the length of each line is CBS, and the insufficient portion is padded with spaces.LCase converts uppercase characters to lowercase characters.UCase converts lowercase characters to uppercase characters.Swab swap each byte of the input.NoError does not stop when an error occurs.Notrunc does not truncate the output file.Sync fills each input block into IBS bytes, and the less part is padded with empty (NU
file.
Conversion parameters:ASCII conversion ebcdic is ASCII.Ebcdic converts ASCII to ebcdic.IBM converts ASCII to alternate ebcdic.Block converts each row to a record with a length of CBS. The missing part is filled with spaces.Unblock: the length of each row is CBS, and spaces are used to fill the remaining parts.Lcase converts uppercase to lowercase.Ucase converts lowercase to uppercase.Swab exchanges each pair of input bytes.Do not stop when noerror occurs.Notrunc does not truncate the
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.