Change Port of Microsoft SQL Server

Hello Community.

I have a doubt, which is the way to change the port of Microsoft SQL Server installed on Nethserver.

Thank you all.

To change the port to 1234:

/opt/mssql/bin/mssql-conf set network.tcpport 1234

You need to restart the service to apply the changed port:

systemctl restart mssql-server

1 Like

Also change the service

config setprop mssql-server TCPPort 1234
signal-event firewall-adjust
1 Like