Install a MID Server on Linux
-
- UpdatedAug 1, 2024
- 9 minutes to read
- Xanadu
- MID Server
Install MID Servers with the MID Server installer and verify it is active. The package includes an installer that automatically configures JRE to run in the environment. The MID Server can use an existing JRE rather than the provided JRE. Uninstall the MID Server to redeploy it.
Before you begin
![]() |
About this task
To install Linux on MID Server, the RedHat/CentOS systems require RPM while Debian (Ubuntu) systems require DEB. The default installation location is /opt/servicenow/mid. Installing DEB in user defined directories is not supported.
To improve security, this procedure installs and run the MID Server service as a non-root user. Root privilege is required to deploy and configure a MID Server on a Linux server. A non-root user can manage a service only if they have the required permissions. For more details, see PolicyKit issues with Linux MID Servers using non-admin accounts [KB0815542].
- CentOS 7
- Windows server 2008
- Windows server 2008 R2
- Windows 8
- Windows 10
yum install glibc.i686
Testing showed that the MID Server works as expected with Oracle Java 11 version 11.0.5. If you need to upgrade the JRE to a different version, then coordinate with the appropriate account representative for support.
Procedure
Result
Linux MID Server silent installation
Silently installing the MID Server uses predefined parameters and requires no user input after it is initiated. You can use silent installation on several machines at once to quickly set up a network and to ensure all MID Servers have the same installation settings.
The following fields can be passed through the command line:
- INSTANCE_URL
- Enter the URL of your instance, for example:
https://mycompanyinstance.service-now.com
- MUTUAL_AUTH
Set this value to Y to use mutual authentication instead of basic authentication. Otherwise, set it to N.
Note: If MUTUAL_AUTH = Y then provide the path to the certificate with CERTIFICATE_PATH.- CERTIFICATE_PATH
- If mutual authentication is enabled, provide the path to the certificate.
- MID_USERNAME
- Enter the user name of the MID Server user that you already created. The MID Server user must have the mid_server role.
- MID_PASSWORD
- Enter the password for the user.
- USE_PROXY
Set this value to Y if your MID Server communicates through a proxy to connect to the instance.
Note: If USE_PROXY = N then skip the other proxy details.- PROXY_HOST
- Enter the proxy server host name or IP address. Do not include the protocol in the host
name. For example:
proxyserver.domain.com
is correct, buthttps://proxyserver.domain.com
is incorrect. - PROXY_PORT
- Enter the port the proxy server uses to communicate. If this value is blank, the installer uses the proxy server's default port number.
- PROXY_USERNAME
- Enter the username that has administrator rights to the proxy server.
- PROXY_PASSWORD
- Enter the password for the username.
- MID_NAME
- Enter the MID Server name.
- APP_NAME
- Provide the service name. It must be unique for the current MID Server.
- APP_LONG_NAME
- Provide the service long name.
- NON_ROOT_USER
- Provide the username to run the service as a non-root user.
The following is an example command for a MID Server which uses a proxy and mutual authentication:
installer.sh
command again.
Reconfiguring the MID Server deletes the old configuration. 
Run Linux MID Servers as non-root users
Run MID Servers as non-root user on a Linux machine to improve security. Multiple MID Server can be installed as services so they can start by themselves after system reboots.
Before you begin
This process is only applicable if you installed the MID Server manually using the ZIP file. If you installed the MID Server with the procedure in Install a MID Server on Linux, then the MID Server is already running as a non-root user.
Supported versions for this procedure are Linux Red Hat 6 or newer, Ubuntu 1404 or newer, and CentOS 6 or newer.
Procedure
What to do next
For more information about managing the allow list and file permission enforcement, see File permission enforcement for Windows MID Servers. Running a Linux MID Server with a non-root account may result in issues with PolicyKit in some systems. See PolicyKit issues with Linux MID Servers using non-root accounts for more information.
Configure a Linux MID Server to use an existing JRE
You can choose to use an existing JRE for your MID Server rather than the OpenJDK provided with the MID Server installer.
Before you begin
Role required: admin
About this task
Procedure
Uninstall a Linux MID Server
The MID Server runs as a stand-alone service. You can remove a stand-alone MID Server service to accommodate such tasks as redeploying the MID Server to another host machine or changing the unique name of a MID Server when deploying multiple MID Servers.
Before you begin
Role required: admin
Procedure

Result
The MID Server service is uninstalled.
What to do next
Validate the MID Server to prepare it for use.