Stop, Start or View SQL Server Service Status on Linux

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

01sqlsrvstatus

 

  • Use the following command to STOP the SQL Server service:

Syntax: sudo systemctl stop mssql-server

03stopsqlsrvv1

Verify the SQL Server service status after stopping it

04afterstopverifythesrv

  • Use the following command to START the SQL Server service:

Syntax: sudo systemctl start mssql-server

05sqlsrvstart

Verify the SQL Server service status after start it

06-verifysqlsrvaftstart

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

  • Sridhar

    Thanks you Dharmendra it is very useful to us, we are looking more from you.

    Reply
    • Dharmendra

      Thanks Sridhar! Sure, I will keep sharing articles…. keep learning!

      Reply
  • Rajesh Singh

    Nice stuff! may you please advise how to enable and disable the SQL Server service on Linux system?

    Reply
  • Dharmendra

    Thanks Rajesh! I will write a blog for it asap. thanks again for asking this question…

    Reply
    • Rajesh singh

      It was too fast.. thank you so much!

      Reply
  • Suresh K

    Nice Dharmendra… I am eagerly looking more on SQL on Linux

    Reply

Leave a comment

Your email address will not be published. Required fields are marked *