First, what redis that?
1. Based on key-value memory No sql database (non-relational database)
2. The read and write performance is very good
Two, redisd data types are there? What are the characteristics?
1) string for a value of a key
2) list a plurality of values of the key (not unique ordered)
3) set to a plurality of key values (ordered, the only (to weight))
4) zset a plurality of key values (ordered, the only (to weight))
5) hash of a plurality of key values (ordered, to weight)
user:1 usname ergouzi age 22
Three, linux inquiry redis whether to start? mysql whether to start?
-ef PS | grep Redis
PS -ef | grep mysqld
PS -aux | grep Redis
PS -aux | grep mysqld
1) View linux memory usage is? cpu usage?
View Memory: top% MEM
to view the CPU: the CPU Top%
2) how to view the log file the first 20 rows, 20 lines, the scrolling display
20 lines before: head -c 20 log file
20 after lines: tail -n 20 log files
Scroll: less - Parameters
Four: how close redis violence initiative
1) Close 2) kill -9 process
Five: how query redis.conf file centos 7 system?
The results find / -name redis.conf query for linux file system root directory
to find whether there is dump.rdb /usr/local/redis-4.0.6/src
Find whether a file exists
ll -a | grep redis.conf
Sixth, how to find the vim editor slaveof exists. Locate the next?
/ salveof n N looking down looking up
? N n elements down looking up looking for? With a table lookup begins with what
Seven, vim editor modes are those?
Edit mode: i
Command Mode: set number
Bottom line mode: