Apache JMeter ကို မေးခွန်းမမေးဘဲ ထည့်သွင်းရန်၊ ပြန်ဖယ်ရှားရန်နှင့် deployment ကိရိယာများမှ ထောက်လှမ်းရန် command များ ဖြစ်ပါသည်။ command တစ်ခုကို သေချာမှသာ ပြပါသည် — manifest မှ သို့မဟုတ် installer နည်းပညာ၏ မှတ်တမ်းတင်ထားသော မူလတန်ဖိုးမှ ဖြစ်ပါသည်။
ဆက်စပ် လမ်းညွှန်: အသံတိတ်ထည့်သွင်းခြင်း switch များ - MSI၊ NSIS၊ Inno Setup · Registry သို့မဟုတ် PowerShell ဖြင့် ပရိုဂရမ် ဖယ်ရှားနည်း
winget ဖြင့်
winget install --id DEVCOM.JMeter -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DEVCOM.JMeter -e --silentwinget uninstall --id DEVCOM.JMeter -e --silentInstaller အလိုက်
CPU အားလုံး · MSI · en-US
msiexec /i JMeter-5.6.3-win32.msi /qn /norestartmsiexec /i JMeter-5.6.3-win32.msi /qn /norestart /l*v "%TEMP%\apache-jmeter-install.log"msiexec /x {AB08A744-488C-41C6-88F6-338E6C0D4464} /qn /norestart- MSI product code
- {AB08A744-488C-41C6-88F6-338E6C0D4464}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{AB08A744-488C-41C6-88F6-338E6C0D4464}
PowerShell - ဒေါင်းလုဒ်၊ စစ်ဆေး၊ ထည့်သွင်း
တရားဝင်ဖိုင်ကို ဒေါင်းလုဒ်လုပ်ပြီး SHA256 ကို စစ်ဆေးကာ အသံတိတ် ထည့်သွင်းပါသည်။
$url = 'https://github.com/DevelopersCommunity/cmake-jmeter/releases/download/v5.6.3/JMeter-5.6.3-win32.msi'
$sha256 = 'B943BDE2858BE688D34CC792BC0FB4E4472662CA1A6813E8D1069BBF07EBCB86'
$file = Join-Path $env:TEMP 'JMeter-5.6.3-win32.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait