我正在使用solr-5.1.0。當我運行命令 bin \ solr.cmd它說
SET在這個時候是意外的。SET在此時出乎意料錯誤消息
C:\Users\Abhi\Desktop\solr\solr-5.1.0>IF "Windows_NT" == "Windows_NT"
setlocal nabledelayedexpansion enableextensions
C:\Users\Abhi\Desktop\solr\solr-5.1.0>REM Determine top-level Solr directory
C:\Users\Abhi\Desktop\solr\solr-5.1.0>set SDIR=C:\Users\Abhi\Desktop\solr\solr-
.1.0\bin\
C:\Users\Abhi\Desktop\solr\solr-5.1.0>IF "\" == "\" set SDIR=C:\Users\Abhi\Desk
op\solr\solr-5.1.0\bin
C:\Users\Abhi\Desktop\solr\solr-5.1.0>set SOLR_TIP=C:\Users\Abhi\Desktop\solr\s
lr-5.1.0\bin\..
C:\Users\Abhi\Desktop\solr\solr-5.1.0>pushd C:\Users\Abhi\Desktop\solr\solr-5.1
0\bin\..
C:\Users\Abhi\Desktop\solr\solr-5.1.0>set SOLR_TIP=C:\Users\Abhi\Desktop\solr\s
lr-5.1.0
C:\Users\Abhi\Desktop\solr\solr-5.1.0>popd
C:\Users\Abhi\Desktop\solr\solr-5.1.0>REM Used to report errors before exiting
he script
C:\Users\Abhi\Desktop\solr\solr-5.1.0>set SCRIPT_ERROR=
C:\Users\Abhi\Desktop\solr\solr-5.1.0>set NO_USER_PROMPT=0
C:\Users\Abhi\Desktop\solr\solr-5.1.0>REM Allow user to import vars from an inc
ude file
C:\Users\Abhi\Desktop\solr\solr-5.1.0>REM vars set in the include file can be o
erridden with
C:\Users\Abhi\Desktop\solr\solr-5.1.0>REM command line args
C:\Users\Abhi\Desktop\solr\solr-5.1.0>IF "" == "" set "SOLR_INCLUDE=C:\Users\Ab
i\Desktop\solr\solr-5.1.0\bin\solr.in.cmd"
C:\Users\Abhi\Desktop\solr\solr-5.1.0>IF EXIST "C:\Users\Abhi\Desktop\solr\solr
5.1.0\bin\solr.in.cmd" CALL "C:\Users\Abhi\Desktop\solr\solr-5.1.0\bin\solr.in.md"
SET was unexpected at this time.
它看起來像錯誤來自'C:\ Users \ Abhi \ Desktop \ solr \ solr \ 5.1.0 \ bin \ solr.in.cmd'你能發表嗎? – GregHNZ
@GregHNZ其實我沒有更改任何文件,它與我從網站上下載的原始文件相同,這是文件的鏈接:https://drive.google.com/file/d/0B85mKQ6Z8btzVi1ZRU5VQnQ5dnc/view?usp=sharing – Println