Redis
@echo off
title redis-server
set ENV_HOME="D:\devtools\redis-x64-3.2.100"
D:
color 0a
cd %ENV_HOME%
redis-server redis.windows.conf
exit
- 指定 Redis 安装目录,并切换到该目录
- 执行:
redis-server redis.windows.conf
Nginx
启动
@echo off
title nacos
set ENV_HOME="D:\devtools\nginx-1.18.0"
D:
color 0a
cd %ENV_HOME%
nginx -s reload
nginx -s quit
taskkill /f /t /im nginx.exe
start nginx
exit
reload:使配置文件修改后生效
quit:正常停止或关闭 Nginx
taskkill:根据程序名强制退出
start nginx:正常启动 nginx
停止
@echo off
title nacos
set ENV_HOME="D:\devtools\nginx-1.18.0"
D:
color 0a
cd %ENV_HOME%
nginx -s quit
taskkill /f /t /im nginx.exe
exit
Nacos
@echo off
title nacos
set ENV_HOME="D:\devtools\nacos\bin"
D:
color 0a
cd %ENV_HOME%
startup.cmd -m standalone
exit
单例启动
MongoDB
@echo off
title mongo db
set ENV_HOME="D:\devtools\mongodb-5.0.0\bin"
D:
color 0a
cd %ENV_HOME%
mongod --config mongod.cfg
exit