How to change PostgreSQL DB port used by MDSS

Steps

  1. Stop MDSS Services

Open Services (services.msc) and stop the following:

  • MDSS service

  • PostgreSQL service

  • Mdss_rabbitmq

  1. Edit Configuration
  2. Navigate to:

C:\Program Files\OPSWAT\MetaDefender Storage Security\config

  1. Open customer.env in a text editor.
  2. Update the following parameters:

POSTGRESQL_PORT=<new_port> # e.g., 5435 POSTGRESQL_URL=jdbc:postgresql://localhost:<new_port>/mdss

  1. Save and close the file.

  2. Refresh Environment

  3. Open PowerShell as Administrator.

  4. Run:

cd "C:\Program Files\OPSWAT\MetaDefender Storage Security\scripts" .\mdss.ps1 -c refresh

This refreshes environment variables and restarts MDSS services.

  1. Start Services

If not already started, manually start the services stopped in Step 1.

  1. Verify

Confirm MDSS is listening on the new port:

netstat -ano | findstr :<new_port>

  1. Troubleshooting
  • Check MDSS logs:

C:\Program Files\OPSWAT\MetaDefender Storage Security\logs

  • Ensure no other application is using the new port.

If Further Assistance is required, please proceed to log a support case or chatting with our support engineer.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard