Home >Database >Mysql Tutorial >Yan Shiba redis video material download (courseware, source code)
Redis is the main caching service used in PHP projects. We will introduce the advanced usage of redis in "Yan Shiba Redis Video Tutorial", and will also use cases to learn about Redis in depth. Redis is a very powerful tool. NoSQL database provides a lot of built-in data structure support (such as pure strings, lists, data sets, and publish and subscribe functions). It is a very good tool. Using Redis well can qualitatively improve your system performance (Sina Micro Weibo is the best company in China that uses Redis. You can imagine the power of Redis by imagining the amount of data on Weibo.) It is also a good new technology reserve.
Course playback address: http://www.php.cn/course/498.html
The teacher’s teaching style:
The teacher’s lectures are vivid, witty, witty, and touching. A vivid metaphor is like the finishing touch, opening the door to wisdom for students; an appropriate humor brings a knowing smile to students, like drinking a glass of mellow wine, giving people aftertaste and nostalgia; a philosopher's aphorisms, cultural references Proverbs are interspersed from time to time in the narration, giving people thinking and warning.
The more difficult point in this video is the migration between aof recovery and rdb server:
1. Aof recovery
When we are not careful To execute flushall [clear all data in all libraries], what we must do immediately is to execute the day command:
shutdown nosave [turn off the server without saving]
Then open the aof file and find Is there a flushall or flushdb command? Open aof with vim, remove the related flush command
and then restart the server. Redis will first find the aof file to import, and then execute the rdb file import
Note: During the running of redis, Related handles will be occupied, and cp copying will cause problems. Therefore, to copy rdb, you need to shut down the redis server so that there will be no problems in the cp process.
2. RDB migration during service
(1) Turn off the aof log function of redis of the server you want to migrate to (I want to migrate to the local redis6380.conf)
vim redis6380.conf, change appendonly yes to appendonly no
(2) Let’s first take a look at the current redis data and use the save command to solidify the data into the rdb file. My rdb file is /var/rdb/dump6379.rdb
Here we also recommend downloading source code resources: http://www.php.cn/xiazai/learn/1840
The resources share video courseware and ppt with you:
redis.ppt
Redis notes.doc
redis-configuration file detailed explanation.txt
Weibo development flow chart.tif
The above is the detailed content of Yan Shiba redis video material download (courseware, source code). For more information, please follow other related articles on the PHP Chinese website!