mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-06-28 15:55:47 +02:00
Fix install of elasticsearch on Windows
The install is failing as the .zip download was not working. Updated link to elaticsearch.co, changed it from http to https, and updated the script to ignore cert errors. All changes were required to make it work (for me at least).
This commit is contained in:
parent
6a17501824
commit
785a042ab4
|
@ -1,4 +1,4 @@
|
|||
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('http://repo1.maven.org/maven2/org/elasticsearch/elasticsearch/1.1.1/elasticsearch-1.1.1.zip', 'C:\Windows\Temp\elasticsearch-1.1.1.zip')" <NUL
|
||||
powershell -Command "[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} ; (New-Object System.Net.WebClient).DownloadFile('http://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.1.1.zip', 'C:\Windows\Temp\elasticsearch-1.1.1.zip')" <NUL
|
||||
cmd /c ""C:\Program Files\7-Zip\7z.exe" x "C:\Windows\Temp\elasticsearch-1.1.1.zip" -o"C:\Program Files\""
|
||||
cmd /c ""C:\Program Files\elasticsearch-1.1.1\bin\service.bat" install"
|
||||
sc config "elasticsearch-service-x64" start= auto
|
||||
|
|
Loading…
Reference in New Issue
Block a user