Title
Create new category
Edit page index title
Edit category
Edit link
How to change PostgreSQL DB port used by MDSS
Steps
Stop MDSS Services
Open Services (services.msc) and stop the following:
MDSS service
PostgreSQL service
Mdss_rabbitmq
Edit Configuration
Navigate to:
C:\Program Files\OPSWAT\MetaDefender Storage Security\config
Open customer.env in a text editor.
Update the following parameters:
POSTGRESQL_PORT=<new_port> # e.g., 5435 POSTGRESQL_URL=jdbc:postgresql://localhost:<new_port>/mdss
Save and close the file.
Refresh Environment
Open PowerShell as Administrator.
Run:
cd "C:\Program Files\OPSWAT\MetaDefender Storage Security\scripts" .\mdss.ps1 -c refresh
This refreshes environment variables and restarts MDSS services.
Start Services
If not already started, manually start the services stopped in Step 1.
Verify
Confirm MDSS is listening on the new port:
netstat -ano | findstr :<new_port>
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.