@ -1,19 +0,0 @@
@echo off
chcp 65001
%1 %2
ver|find "5.">nul&&goto :Admin
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :Admin","","runas",1)(window.close)&goto :eof
:Admin
set flag=Z:\
if not exist %flag% (
echo %flag%不存在
@SET batpath=%~dp0
pause
call %batpath%1copy2c.bat
) else (
cd /d Z:\
call serverStart.bat
)
@ -1,17 +0,0 @@
setlocal EnableDelayedExpansion
SET basepath=%~dp0
:: 设置源目录和目标目录
set "sourceDir=%basepath%\copy2c"
set "destinationDir=C:\"
xcopy %sourceDir% %destinationDir%\ /q /e /r /S /Y
cd /d C:\
call c:\setPath.bat
endlocal
@ -1,20 +0,0 @@
echo 项目初始化....
call Z:\jdk.bat
call Z:\mysql.bat
call Z:\elasticsearch.bat
call Z:\redis.bat
ping 127.0.0.1 -n 11 > null
echo 启动服务
@net stop redis
@net start redis
call Z:\jar_restart.bat
call Z:\nginx.bat
echo 项目初始化成功
@ -1,31 +0,0 @@
set uname=asb
set new=Z:
set current=%~d0
for /f "tokens=2 delims==" %%a in ('wmic LogicalDisk where "VolumeName='%uname%'" get DeviceID /value') do (
set old=%%a
echo 移动硬盘盘符是 %old%
if %current%==%old% (
echo 当前bat运行盘符和移动硬盘盘符相同!请更换bat脚本运行路径后重试
exit
goto start
:start
pushd %new% 2>nul && echo %new%盘已经存在!
for /f %%i in ('mountvol %old% /l') do set "vol=%%i"
echo %vol%
mountvol %old% /d
mountvol %new% %vol%
popd
call 2init.bat
@ -86,6 +86,6 @@ http.port: 9200
# Require explicit names when deleting indices:
#
#action.destructive_requires_name: true
path.logs: Z:\elasticsearch\log
path.data: Z:\elasticsearch\data
path.logs: d:\asb\elasticsearch\log
path.data: d:\asb\elasticsearch\data