In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will introduce the default port number of redis. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Redis is a key-value storage system. Similar to Memcached, it supports relatively more value types, including string (string), list (linked list), set (collection), zset (sorted set-ordered collection), and hash (hash type). These data types support push/pop, add/remove, and take intersection union and difference sets, and richer operations, and these operations are atomic. On this basis, redis supports a variety of different sorting methods. Like memcached, data is cached in memory for efficiency. The difference is that redis will periodically write updated data to disk or modify operations to additional record files, and on this basis to achieve master-slave (master-slave) synchronization.
The default port number for redis is 6379.
Why did Redis choose 6379 as the default port number?
6379 is the number corresponding to MERZ on the phone button, while MERZ is taken from the name of Italian singer Alessia Merz.
Alessia Merz is an Italian dancer and actress. Antirez, the author of Redis, watched TV programs in his early years and thought that some of Merz's words in the program were stupid and ridiculous. Antirez liked to create "stalks" to communicate with friends, so he coined the word "MERZ", which means the same as "stupid".
Later, Antirez redefined "MERZ", describing it as "of high technical value, including skill, patience and labor, but still maintaining the essence of simplicity."
When it came time to choose a number for Redis as the default port number, Antirez didn't think much about it and used the number 6379 corresponding to "MERZ" on the phone's keyboard.
Redis to view port usage
1. First query the pid of the port and use the command [netstat-ano | findstr port number] [cpp] F:\ Program Files\ Redis > netstat-ano | findstr 6379 TCP 0.0.0.0.6379 0.0.0.0 LISTENING 6932 TCP [:]: 6379 [:]: 0 LISTENING 6932 F:\ Program Files\ Redis > PS: 6932 in this record is the pid with port number 6379.
2. Check the detailed process name according to pid, and use the command [tasklist | findstr pid] [cpp] F:\ Program Files\ Redis > tasklist | findstr 6932 redis-server.exe 6932 Console 1 21784 K F:\ Program Files\ Redis > PS: you can see that the running program corresponding to this pid is redis-server.exe.
The above is the default port number of redis shared by the editor. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.