SQL Server runs on Linux as a service that is started as a default after installation. In case, you want to stop, start, or view the status of the SQL Server service; you can follow the below command to check the status of SQL Server.
-
Use the following command to VIEW the status of the SQL Server service:
Syntax: systemctl status mssql-server
-
Use the following command to STOP the SQL Server service:
Syntax: sudo systemctl stop mssql-server
Verify the SQL Server service status after stopping it
-
Use the following command to START the SQL Server service:
Syntax: sudo systemctl start mssql-server
Verify the SQL Server service status after start it
Note: Your login needs proper rights to stop or start the SQL Server service on Linux.
I hope this would help someone to save time and energy.
7 thoughts on “Stop, Start or View SQL Server Service Status on Linux”
Thanks you Dharmendra it is very useful to us, we are looking more from you.
Thanks Sridhar! Sure, I will keep sharing articles…. keep learning!
Nice stuff! may you please advise how to enable and disable the SQL Server service on Linux system?
Hi Rajesh, I wrote the blog, you can refer the link http://www.dharmendrakeshari.com/enable-disable-sql-server-service-linux/
Thanks Rajesh! I will write a blog for it asap. thanks again for asking this question…
It was too fast.. thank you so much!
Nice Dharmendra… I am eagerly looking more on SQL on Linux