-安裝)
DataPulse一款開箱即用的SCADA(二)-安裝目錄DataPulse一款開箱即用的SCADA(二)-安裝第2步安裝軟件(X86)第3步試運(yùn)行本章節(jié)介紹DataPulse的安裝并如何運(yùn)轉(zhuǎn)起來第1步下載軟件鏈接: https://pan.baidu.com/s/1bupP2JqrWeJgyqdepIaueA 提取碼: sr6e找到DataPulse試用版.zip下載到本地電腦。第2步安裝軟件(X86)說明DataPulse已經(jīng)把所有需要的環(huán)境打包到一起數(shù)據(jù)采用Sqlite數(shù)據(jù)庫不需要安裝其他的基礎(chǔ)庫或者數(shù)據(jù)庫。當(dāng)然如果需要用到MySQL等數(shù)據(jù)庫可告警安裝本次不再多述。1. 將DataPulse解壓到本地目錄例如c:\DataPulse\2. 以管理員方式運(yùn)行目錄中的install_x86.bat如下圖 提示“服務(wù)安裝成功”即可完成安裝??赡芴崾镜陌惭b錯(cuò)誤會(huì)提示以下內(nèi)容大概率是端口號(hào)被占用導(dǎo)致。解決方案右鍵以文本方式打開install_x86.bat把set PORT8080當(dāng)中的8000改成未被占用的端口號(hào)即可。當(dāng)然也可以自行解決端口號(hào)占用問題。echo off REM REM install_x86.bat - Register and start DataPulse Windows service REM REM - Registers service DataPulse (web root web) REM - Starts the service immediately (auto-start on boot) REM - Must be run as Administrator (right-click Run as administrator) REM REM HOW TO USE: REM 1) If the default port is OK, just double-click this file. REM 2) To use another port, edit the PORT value in the REM USER CONFIG section below, save, then double-click. REM (Command-line argument still works: install_x86.bat [port]) REM setlocal enabledelayedexpansion cd /d %~dp0 REM ############################################################ REM # USER CONFIG -- EDIT THE PORT HERE IF NEEDED # REM # Just change the number, save the file, and double-click. # REM ############################################################ set PORT8080 REM Optional command-line argument overrides the value above if not %~1 set PORT%~1 REM ---- Check Administrator privileges ---- net session nul 21 if not %errorlevel%0 ( echo [ERROR] Administrator privileges required. echo Right-click this file and choose Run as administrator. pause exit /b 1 ) REM ---- Check executable ---- if not exist datapulse.exe ( echo [ERROR] datapulse.exe not found in: echo %cd% pause exit /b 1 ) echo echo DataPulse Service Installation echo Web root : web echo Port : %PORT% echo REM ---- Check whether the port is already in use ---- echo Checking port %PORT% ... set OTHER_BUSY0 for /f tokens5 %%P in (netstat -ano -p TCP ^| findstr /R /C::%PORT% .*LISTENING) do ( set OCC_NAME for /f tokens1 delims, %%N in (tasklist /FI PID eq %%P /FO CSV /NH 2^nul) do set OCC_NAME%%~N if /I !OCC_NAME!datapulse.exe ( echo Port held by DataPulse itself ^(PID %%P^), reinstall scenario - OK. ) else ( set OTHER_BUSY1 echo [IN USE] PID %%P !OCC_NAME! ) ) if !OTHER_BUSY!1 ( echo. echo WARNING: port %PORT% is held by another application listed above. echo Registration may succeed, but the service will not be reachable. choice /C YN /M Continue installation anyway if errorlevel 2 ( echo. echo Installation cancelled. Free the port or run: install_x86.bat ^other-port^ pause exit /b 1 ) ) REM ---- Register / update service ---- echo [1/2] Registering service... datapulse.exe --install -w web -p %PORT% if not %errorlevel%0 ( echo [ERROR] Service registration failed. pause exit /b 1 ) REM ---- Start service if not already running ---- sc query DataPulse | findstr /I RUNNING nul if %errorlevel%0 ( echo [2/2] Service is already running. ) else ( echo [2/2] Starting service... sc start DataPulse if not %errorlevel%0 ( echo [ERROR] Failed to start service. Port %PORT% may be in use. sc query DataPulse pause exit /b 1 ) ) echo. echo echo Done. DataPulse service is running. echo Open: http://localhost:%PORT% echo echo. pause endlocal第3步試運(yùn)行安裝成功后在IE輸入127.0.0.1:8080或者在其他電腦輸入本機(jī)的IP地址端口號(hào)也可以例如192.168.1.100:8080以下是我電腦的登錄效果圖備注我注冊的端口號(hào)是8090端口。如能打開web代表安裝成功。