You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 172bedd
Browse filesBrowse the repository at this point in the historyBrowse files
The [SQL Server Agent](https://docs.microsoft.com/sql/ssms/agent/sql-server-agent) runs scheduled SQL Server jobs. Starting with SQL Server 2017 CU4, SQL Server Agent is included with the **mssql-server** package and is disabled by default. For information on the features supported for this release of the SQL Server Agent along with version information, see the [Release Notes](sql-server-linux-release-notes.md).
17
+
This article describes how to enable or install the SQL Server Agent on Linux.
18
+
19
+
The [SQL Server Agent](https://docs.microsoft.com/sql/ssms/agent/sql-server-agent) runs scheduled SQL Server jobs. Starting with SQL Server 2017 CU4, SQL Server Agent is included with the **mssql-server** package and is disabled by default. For information on the features supported for this release of the SQL Server Agent along with version information, see the [Release Notes](sql-server-linux-release-notes.md).
20
+
21
+
## Instructions
22
+
23
+
Before using the SQL Server Agent on Linux, use the following steps to enable or install it.
17
24
18
-
Install/Enable the SQL Server Agent:
19
-
-[For Versions 2017 CU4 and above, Enable the SQL Server Agent](#EnableAgentAfterCU4)
20
-
-[For Versions 2017 CU3 and Below, Install the SQL Server Agent](#InstallAgentBelowCU4)
25
+
1. Add your hostname (with and without domain) in the `/etc/hosts` files.
21
26
27
+
1. Follow the instructions in one of the following sections based on your version of SQL Server:
22
28
23
-
## <aname="EnableAgentAfterCU4">For Versions 2017 CU4 and above, Enable the SQL Server Agent</a>
29
+
| Versions | Instructions |
30
+
|---|---|
31
+
| SQL Server 2017 CU4 and higher</br>SQL Server 2019 |[Enable the SQL Server Agent](#EnableAgentAfterCU4)|
32
+
| SQL Server 2017 CU3 and lower |[Install the SQL Server Agent](#InstallAgentBelowCU4)|
24
33
25
-
To enable SQL Server Agent, follow the steps below.
34
+
## <aid="EnableAgentAfterCU4"></a>Enable the SQL Server Agent
35
+
36
+
For SQL Server 2019 and SQL Server 2017 CU4 and higher, you only need to enable the SQL Server Agent. You do not need to install a separate package.
37
+
38
+
To enable SQL Server Agent, follow the steps below.
26
39
27
40
```bash
28
41
sudo /opt/mssql/bin/mssql-conf set sqlagent.enabled true
> If you are upgrading from 2017 CU3 or below with Agent installed, SQL Server Agent will be enabled automatically and previous Agent packages will be uninstalled.
34
47
35
-
## <aname="InstallAgentBelowCU4">For Versions 2017 CU3 and Below, Install the SQL Server Agent</a>
48
+
## <aname="InstallAgentBelowCU4"></a>Install the SQL Server Agent
49
+
50
+
For SQL Server 2017 CU3 and earlier, you must install the SQL Server Agent package.
36
51
37
52
> [!NOTE]
38
53
> The install instructions below apply to SQL Server Versions 2017 CU3 and below. Before installing SQL Server Agent, first [install SQL Server](sql-server-linux-setup.md#platforms). This configures the keys and repositories that you use when you install the **mssql-server-agent** package.
0 commit comments