Redis

  1. @echo off
  2. title redis-server
  3. set ENV_HOME="D:\devtools\redis-x64-3.2.100"
  4. D:
  5. color 0a
  6. cd %ENV_HOME%
  7. redis-server redis.windows.conf
  8. exit
  1. 指定 Redis 安装目录,并切换到该目录
  2. 执行:redis-server redis.windows.conf

    Nginx

    启动

    1. @echo off
    2. title nacos
    3. set ENV_HOME="D:\devtools\nginx-1.18.0"
    4. D:
    5. color 0a
    6. cd %ENV_HOME%
    7. nginx -s reload
    8. nginx -s quit
    9. taskkill /f /t /im nginx.exe
    10. start nginx
    11. exit
    reload:使配置文件修改后生效
    quit:正常停止或关闭 Nginx
    taskkill:根据程序名强制退出
    start nginx:正常启动 nginx

    停止

    1. @echo off
    2. title nacos
    3. set ENV_HOME="D:\devtools\nginx-1.18.0"
    4. D:
    5. color 0a
    6. cd %ENV_HOME%
    7. nginx -s quit
    8. taskkill /f /t /im nginx.exe
    9. exit

    Nacos

    1. @echo off
    2. title nacos
    3. set ENV_HOME="D:\devtools\nacos\bin"
    4. D:
    5. color 0a
    6. cd %ENV_HOME%
    7. startup.cmd -m standalone
    8. exit
    单例启动

    MongoDB

    1. @echo off
    2. title mongo db
    3. set ENV_HOME="D:\devtools\mongodb-5.0.0\bin"
    4. D:
    5. color 0a
    6. cd %ENV_HOME%
    7. mongod --config mongod.cfg
    8. exit