shutdown.cmd 954 B

12345678910111213141516171819202122232425
  1. @echo off
  2. rem Copyright 1999-2018 Alibaba Group Holding Ltd.
  3. rem Licensed under the Apache License, Version 2.0 (the "License");
  4. rem you may not use this file except in compliance with the License.
  5. rem You may obtain a copy of the License at
  6. rem
  7. rem http://www.apache.org/licenses/LICENSE-2.0
  8. rem
  9. rem Unless required by applicable law or agreed to in writing, software
  10. rem distributed under the License is distributed on an "AS IS" BASIS,
  11. rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. rem See the License for the specific language governing permissions and
  13. rem limitations under the License.
  14. if not exist "%JAVA_HOME%\bin\jps.exe" echo Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later is better! & EXIT /B 1
  15. setlocal
  16. set "PATH=%JAVA_HOME%\bin;%PATH%"
  17. echo killing nacos server
  18. for /f "tokens=1" %%i in ('jps -m ^| find "nacos.nacos"') do ( taskkill /F /PID %%i )
  19. echo Done!