windows delete a registered service

Background: Recently, mysql want to learn from the master copy, so would be the local mysql instances with multiple tests, the test process is always frustrations, novices easily install many instances, after the test is completed, you want to delete these instance.

Although the Task Manager task can be stopped, but did not want to let them appear in the Task Manager, then find the degree of your mother summed up method:
Delete There are two ways:

NO1: with sc.exe the Windows command
Start - Run --cmd, then enter the sc can see a lot of related commands.
The solution is simple to use:
sc the Delete "service name" (if there are spaces in the middle of the service, you need to add quotation marks before and after)
, such as deleting an instance of mysql: sc delete mysql
this time into the Task Manager to view the mysql service no longer exists

 

NO2: direct registry edit (not recommended) Open the Registry Editor, find the corresponding key:
win + R, input register, open the registry, find the
HKEY_LOCAL_MACHINE / SYSTEM / CurrentControlSet / Services
General Services will be the same service name here show a primary key, you can delete the relevant keys.

Guess you like

Origin www.cnblogs.com/liuliuyan/p/10935974.html