To install a ServiceNow MID Server on Windows or Linux, prepare a supported host, download the matching package from your instance, configure authentication and the host service account, then start and validate the server. Check connectivity and logs before assigning applications, capabilities, or IP ranges to the new installation.
The service account has to be ready before the install starts
Create or choose the user the MID Server will log in as before you touch the host. Give that user the role the server needs on the instance, and keep it separate from a personal administrator login. When a staff member changes a password or leaves, a shared personal login can stop the integrations on that server at once. For basic authentication, an admin creates the instance user and assigns mid_server before the first start. Use a separate instance account for each MID Server using basic authentication. This instance identity is separate from the operating system account that runs the service.
Also confirm outbound connectivity to the instance and the package download service. A proxy inspecting HTTPS must present a trusted certificate; an internal certificate authority may require a trust-store import. Allow certificate revocation traffic to the relevant OCSP responder as well. Resolve certificate failures rather than treating successful package installation as proof that networking is ready. Check these instructions against your instance and release; the steps below cover the guided MSI and Linux package routes.
Install steps for Windows and Linux follow the same logic
For guided Windows installation, the instance role is admin or mid_server; open the MSI on the host with Administrator privileges. On Windows, download the .msi installer from MID Server > Download on the instance and copy it to the host. Enable File and Printer Sharing for Microsoft Networks on that host before you run it, because the MSI installer requires it. Use a non-admin host service account with the Log on as Service right, rather than Local System or an administrator account. The installer creates the service and sets permissions on its installation folder. If the service installs but will not start, check the service account and its rights on that host first.
On Linux, install the RPM package (RedHat/CentOS) or the DEB package (Debian/Ubuntu) with rpm or dpkg, which places the server under /opt/servicenow/mid by default. Root privilege is needed to deploy and configure the server, but the service runs as the non-root user you name during setup. From the agent folder, run ./installer.sh with root privilege and provide the instance address, MID credentials, name, proxy details, and non-root service user. The instance roles listed for this Linux procedure are admin, mid_server. DEB installation does not support a custom installation directory. For a new install, the installer bundles a Java runtime and configures it automatically, so you do not need to install one before the first start.
The installer values and the mistakes behind them
Prepare the following connection and identity settings before opening the installer.
- Instance address: use the root address of the intended instance. Check the environment before connecting a production host.
- Instance credentials: enter the dedicated MID user and password for basic authentication, rather than personal credentials.
- MID Server name: use a unique name. On Windows, avoid a name beginning with mid.server and check that separate services do not share one executable path.
- Proxy settings: configure the host, port, and credentials required by the network. Leave proxy credentials blank when the proxy does not require authentication.
In the Windows installer, select Test your connection before continuing. Review the destination and service settings in the summary. Select Start MID Server after installation when configuration is ready; otherwise finish the remaining configuration before starting it.
Confirm the server is up and validated
After the first start, look at the MID Server record on the instance. A healthy server shows as Up on its record. If the record does not appear, the causes to check in order are the connection from the host, the service account and its role, and the server name.
An agent_admin or admin performs validation: open All > MID Server > Servers, select the record, and choose Validate under Related Links. The Validated field moves through Validating to Yes. Validation limits automation credentials to trusted servers, so complete it before assigning automation work. Initial capabilities, applications, and IP ranges can be selected during validation, but selecting them is not required for validation to finish. Validate it again when you install it on a new host. An instance upgrade validates the MID Servers that were already configured, so an upgrade of a configured server does not need a manual validation.
How the instance decides a MID Server has gone down
By default, the instance sends each MID Server a heartbeat probe every five minutes through the ECC queue. If the server does not answer, the instance marks it Down. When the server answers again, it returns to Up. The server must be able to communicate on port 443, so a blocked port can look like a dead server.
Check the host’s network path before restarting a server that shows Down. If a new record does not appear within five minutes, inspect agent/logs. For validation stuck at Validating, confirm the service is running, Status is Up, and the firewall or proxy allows ECC queue communication. Inspect agent0.log for validation probe errors.
Assign just the applications and capabilities the host needs
A MID Server does just the work it has been set up for. Once it is validated, choose which applications or capabilities it can serve, based on the systems it can reach from its network. Keep the list short. Routing unrelated work through one server increases the impact of an outage. When you need more than one server, group them by the networks they sit on, because each member of a cluster has to be able to reach the systems the work touches.
Planning who maintains these servers matters as much as the technical setup. The workflow automation guide shows where integrations like these fit into the wider platform, which helps when you decide what a server must be able to reach.
Use clusters for failover between servers
A failover cluster passes work to the next MID Server in a configured order when one fails. All members should have the same supported applications, IP ranges and capabilities, so whichever server takes over can do the same job unchanged.
Prefer a straightforward cluster membership plan and avoid overlapping memberships without checking application selection behavior. Keep LDAP, export set and JDBC data sources on dedicated servers, because a failover restarts the ECC queue task from its beginning and a JDBC job may return duplicate data.
Retire or move a MID Server without breaking integrations
An admin can uninstall a server using the procedure for its installation method. For a guided Windows installation, remove the named program through the host application settings. On Linux, run uninstall.sh from the agent folder to remove the service and RPM or DEB package. The instance then marks the server Down, because the heartbeat probe gets no answer. To move a server to a new host, install the replacement under a different name, validate it, move the assignments across, and retire the old one last. Keeping the old server running until the new one is confirmed gives you a rollback path if something was missed.
If nobody on your team has time to own these servers, the playbook for building an offshore IT team and the guide on IT talent shortages cover how to add that capacity. Once the server is running, the MID Server overview is the next stop.
Keep the server version in step with the instance
Automatic upgrade is enabled by default and is triggered when the instance upgrades to a different MID Server version. It checks for a newer version each hour, downloads the new package from the ServiceNow download site and restarts on that version to align with the instance. Version override or pinning settings can change that behavior, so check them when a server remains on an unexpected build.
A host that cannot reach the download site cannot upgrade automatically, so a self-hosted environment blocking that access needs the installer package imported onto its hosts manually. Allow OCSP certificate status traffic through the firewall, because firewalls and proxy configurations may block it, and on Windows check antivirus rules and application compatibility. Windows Server 2022 and later use Application Experience tasks rather than the older standalone service; on earlier hosts, disabling that service can prevent automatic upgrades. Upgrades are not supported on 32-bit Windows or Linux hosts. For a legacy Linux service still installed under system from Madrid or earlier, plan service reinstallation permissions before upgrading; that historical case requires administrative rights for the reinstall.
For help planning this work, see ServiceNow implementation.
Questions about installation choices and host settings
Can I choose certificate authentication instead of a password?
ITOM Infra Services Workspace offers private key JWT, basic authentication, and mutual authentication installation paths. Choose the authentication method before generating configuration; the password fields in a basic-authentication setup do not describe a certificate-based setup.
Why are the Linux Network and Router fields empty?
Linux needs net-tools, specifically netstat, to populate those fields on the MID Server record. Missing net-tools can leave them empty even after validation succeeds.
Can I use my own Java runtime?
Yes, a supported existing JRE can be selected using wrapper.java.command in agent/conf/wrapper-override.conf. The configuration procedure requires admin. Choosing this route also makes you responsible for maintaining and upgrading that runtime.
Can I rerun the Linux configuration script?
Running installer.sh again reconfigures the server and deletes the old configuration. Record the settings you need to retain before doing so, and treat reconfiguration as a controlled change rather than a harmless connection test.