Use the following procedures to start and stop MarkLogic Server:
To start MarkLogic Server, use the appropriate system command for your platform:
There are two ways to perform a clean shutdown of MarkLogic Server:
You can stop MarkLogic Server with the appropriate system command for your platform:
To stop the server from the Admin Interface, complete the following procedure:
MarkLogic Server must be running in order for you to use the Admin Interface. Once you have stopped the server, you will no longer be able to access the Admin Interface until you start MarkLogic Server again; to restart the server, run the system command for your platform as described in Starting the Server.
To restart the server from the Admin Interface, complete the following procedure:
You may also manually stop and start the server as described above.
The restart operation normally completes within a few seconds. It is possible, however, for it to take longer under some conditions (for example, if the Security database needs to run recovery or if the connectivity between hosts in a cluster is slow). If it takes longer than a few seconds for MarkLogic Server to restart, than the Admin Interface might return a 503: Service Unavailable
message. If you encounter this situation, wait several seconds and then reload the Admin Interface.
This section provides the following XQuery scripts:
The following script restarts MarkLogic Server:
xquery version "1.0-ml"; xdmp:restart((), "Restarting MarkLogic Server")
The following script stops MarkLogic Server:
xquery version "1.0-ml"; xdmp:shutdown((), "Shutting Down MarkLogic Server")