Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of viewing Port usage by Redis

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you the method of Redis to check the use of ports, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

The default port number for redis is 6379.

REmote DIctionary Server (Redis) is a key-value storage system written by Salvatore Sanfilippo.

Redis is an open source log database written in ANSI C language, complies with BSD protocol, supports network, can be memory-based and persistent, Key-Value database, and provides API in multiple languages.

It is often called a data structure server because the value can be of types such as String, Hash, list, sets, and sorted sets.

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 6379TCP 0.0.0.06379 0.0.0.0findstr 6379TCP 0 LISTENING 6932TCP [:]: 6379 [:]: 0 LISTENING 6932F:\ Program Files\ Redis > PS: 6932 in this record is the pid with port number 6379. 2. View the detailed process name according to pid, and use the command [tasklist | findstr pid] [cpp]

F:\ Program Files\ Redis > tasklist | findstr 6932redis-server.exe 6932 Console 1 21784 KF:\ Program Files\ Redis > PS: you can see that the running program corresponding to this pid is redis-server.exe

3. Force and recursively delete the program and its child processes, using the command [taskkill-f-t-im program name]

[cpp]

F:\ Program Files\ Redis > taskkill-f-t-im redis-server.exe succeeded: the process of PID 6932 (belonging to the PID 1060 child process) was terminated. F:\ Program Files\ Redis > PS: you can see the process that has killed the port, and then check the operation of the port. Obviously, it does not exist [cpp] view plain copyF:\ Program Files\ Redis > netstat-ano | findstr 6379

F:\ Program Files\ Redis >

These are all the contents of Redis's method of checking port usage. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report