Home > Database > Redis > body text

What is the redis port number?

步履不停
Release: 2019-06-22 15:26:16
Original
6273 people have browsed it

What is the redis port number?

#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]
[cpp]
  1. F:\Program Files\ Redis & GT; Netstat -ano | Findstr 6379
  2. ## TCP 0.0.0:6379 0.0.0.0.0:0 Listening 6932
  3. ## TCP [::]: 6379 [::]: 0 Listening 6932
  4. ##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
  1. ## F: \ Program Files \ Redis & GT #PS: It can be seen that the running program corresponding to the pid is redis-server.exe
  2. 3. To forcefully and recursively delete this program and its sub-processes, use the command [taskkill -f -t -im program name】

[cpp]

F:\Program Files\Redis>taskkill -f -t -im redis-server.exe Success: The process with PID 6932 (belonging to the child process of PID 1060) has been terminated.
F:\Program Files\Redis>
  1. PS: You can see the process that has killed the port, and then check the operation of the port , obviously does not exist
  2. #[cpp]
  3. view plain

copy
##F:\Program Files\Redis>netstat -ano | findstr 6379 F:\Program Files\Redis>

    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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template