top of page
  • Twitter Social Icon
  • Facebook Social Icon
  • LinkedIn Social Icon
Obrázek autoraFilip Holub

How to Start, Stop and Restart SQL server on Linux?

The following commands are exactly the same in each Linux distribution, such as RHEL, Ubuntu or Suse. They are very simple for keep in mind, because it consists three words. So, let's introduce the commands that ensure the start, stop and restart of SQL Server to Linux.


"First of all, you have to connect as root user on your Linux machine!"

Let's begin with start command of SQL Server.


Start of SQL Server:

Stop of SQL Server:

Restart of SQL Server:

In general, after installation of SQL Server on Linux, you need to check if SQL Server Service is running, run following command:

In the best case, SQL Server is active (running after) installation as you can see below:


Status of SQL Server Service
Status of SQL Server Service

Also, you can find out a couple of useful information, such as:

  • When of SQL Server was started

  • Process under which sqlservr is running

  1. The top process 2630, this process is WATCHDOG.

  2. The second process 2639 is SQL Server process!

  • Service of mssql-server is Enabled

There is another way how to find out if processes of sqlservr service is running, run following command:

As you can see, the numbers of processes are same as well as in previous output.


If you need DISABLE or ENABLE SQL Server service, please follow this post about "Enable or Disabled SQL Server service on Linux"


See you later, alligator!


8 845 zobrazení0 komentářů

Nejnovější příspěvky

Zobrazit vše
SIGN UP AND STAY UPDATED!
  • Grey Twitter Icon
  • Grey Facebook Icon
  • Grey LinkedIn Icon

© 2020 All rights reserved. MSSQLONLINUX.com | Filip Holub

bottom of page