Update service port from 5000 to 2414 and adjust related configurations

This commit is contained in:
Phoenix
2025-08-07 17:53:54 +08:00
parent d6efa9163b
commit f2a0818d0e
11 changed files with 11 additions and 104 deletions
+3 -3
View File
@@ -58,7 +58,7 @@ sc failure "$SERVICE_NAME" reset=300 actions=restart/5000/restart/5000/restart/1
# Configure firewall rule
echo "Configuring Windows Firewall..."
powershell -Command "New-NetFirewallRule -DisplayName 'Resource Monitor Service' -Direction Inbound -Protocol TCP -LocalPort 5000 -Action Allow -Profile Any" 2>/dev/null
powershell -Command "New-NetFirewallRule -DisplayName 'Resource Monitor Service' -Direction Inbound -Protocol TCP -LocalPort 2414 -Action Allow -Profile Any" 2>/dev/null
# Start the service
echo "Starting service..."
@@ -69,8 +69,8 @@ if [[ $? -eq 0 ]]; then
echo "=== Installation Complete ==="
echo "Service Name: $SERVICE_NAME"
echo "Installation Path: $INSTALL_PATH"
echo "Service URL: http://localhost:5000"
echo "API Health Check: http://localhost:5000/api/health"
echo "Service URL: http://localhost:2414"
echo "API Health Check: http://localhost:2414/api/health"
echo
echo "The service is now running and will start automatically with Windows."
echo "You can manage it through Services.msc or using sc commands:"