#The default port number of redis is 6379.
REmote DIctionary Server (Redis) is a key-value storage system written by Salvatore Sanfilippo.
Redis is an open source log-type Key-Value database written in ANSI C language, abides by the BSD protocol, supports the network, can be memory-based and persistent, and provides APIs in multiple languages.
It is often called a data structure server because values can be strings, hashes, lists, sets and sorted sets ) and other types.
Redis View port usage
1, first query the pid of the port, use the command [netstat -ano | findstr port number]
- F:\Program Files\ Redis & GT; Netstat -ano | Findstr 6379
## TCP 0.0.0:6379 0.0.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, to view the detailed process name based on pid, use the command [tasklist | findstr pid]
[cpp]
##F:\Program Files\Redis>tasklist | findstr 6932
Redis-Server.exe 6932 Console 1 21,784 K -
- ## F: \ Program Files \ Redis & GT #PS: It can be seen that the running program corresponding to the pid is redis-server.exe
-
- 3. To forcefully and recursively delete this program and its sub-processes, use the command [taskkill -f -t -im program name】
[cpp]
- PS: You can see the process that has killed the port, and then check the operation of the port , obviously does not exist
-
- #[cpp]
-
view plain
copy
For more Redis-related technical articles, please visit the Redis Tutorial column to learn!
The above is the detailed content of What is the redis port number?. For more information, please follow other related articles on the PHP Chinese website!
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn