@echo off rem Server.bat(主文件) :o cls echo a.初始化安装并启动 s.仅启动服务 e.仅停止服务 d.卸载所有服务并删除 q.退出 choice /c asedq /n if %errorlevel%==1 goto :install if %errorlevel%==2 goto :start if %errorlevel%==3 goto :stop if %errorlevel%==4 goto :uninstall if %errorlevel%==5 goto :ed goto o
:install echo 注册mysql服务... cd D:\Server\mysql\bin mysqld-nt.exe --install mysql --defaults-file=D:/Server/mysql/my.ini echo 注册memcached服务器... cd D:\Server\memcached memcached -d install memcached -d start echo 注册ngrok服务... cd D:\Server\nginx ngrok authtoken token goto start