Update service port from 5000 to 2414 and adjust related configurations
This commit is contained in:
+3
-3
@@ -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:"
|
||||
|
||||
Reference in New Issue
Block a user