Redis Zookeeper Boot _redis

Source: Internet
Author: User
Tags redis zookeeper

Every time you reload the system, forget Redis and zookeeper boot up the way, to search the words and then to find what they want.

So write it down for the memo. Record the Windows system for the time being.


Win10 (Win7, remember to put the bat script in 1 directly into the Startup folder)

1. New bat script, start redis,zookeeper

2. New VBS script, call Bat script

3. Modify the registry, call the VBS script




Take Redis as an example:

1. New Bat Script

My Redis is installed in D:\redis, so create a new bat script file and put it in the following

D:
CD Redis

(Note here, if you have a multilevel directory, preferably a CD-level, so that no matter where the script file, you can do fault tolerance)


2. New VBS SCRIPT

CreateObject ("Wscript.Shell"). Run "cmd/c D:\redis\startRedis.bat", 0

3. Modify the Registration Form

Find HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

Right-click the new string value, fill in Openredis, and then change the value to just the VBS script path D:\redis\autoStartRedis.vbs

As shown in figure



At this point, the startup item can also be found in the Task Manager.



PS: Why do I have to pass the VBS script to relay it once? What about calling the bat file directly in the registry? Try it, you know.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.