Home > Database > Redis > body text

How to add and delete redis service in windows system

王林
Release: 2020-12-28 10:07:06
forward
3242 people have browsed it

How to add and delete redis service in windows system

The specific method is as follows:

(Learning video sharing: redis video tutorial)

1. Add redis service

Note: When downloading the installation-free version of redis, you must have a conf file.

How to add and delete redis service in windows system

Enter the redis folder, open the command window, and execute the following command

redis-server --service-install redis.windows.conf --service- name redis6379 --loglevel verbose

How to add and delete redis service in windows system

Open the service to view

How to add and delete redis service in windows system

Also note that if you use powershell to open and execute the above statement, it will The error "The "redis-server" item cannot be recognized as the name of a cmdlet, function, script file, or executable program..." is reported. This is due to compatibility issues with PowerShell. Complete everything in front of the redis-server executable file. The path is enough

2. Delete the redis service

I tried the following method but it didn’t work at all. The redis service is still there.

redis-server --service-uninstall
Copy after login

I changed it to the following sc command Deleting the service will take effect

sc delete redis6379
Copy after login

Related recommendations:redis database tutorial

The above is the detailed content of How to add and delete redis service in windows system. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!