SafeMode can be enabled from the management console.
To enable SafeMode
The NSM On-Premises instance immediately reboots and comes back up in SafeMode.
In SafeMode, the web interface is served from an HTTP server. The HTTPS server is not started in SafeMode.