Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 14. Starting and stopping a Directory Server instance
You can start, stop, and restart a Directory Server instance by using the command line or the web console.
14.1. Starting and stopping a Directory Server instance by using the command line Link kopierenLink in die Zwischenablage kopiert!
Use the dsctl utility to start, stop, or restart a Directory Server instance.
The dsctl utility is the only correct way to stop the Directory Server instances. Do not use the kill command to terminate the ns-slapd process to avoid any data loss and corruption.
Procedure
To start the instance, run:
dsctl instance_name start
# dsctl instance_name startCopy to Clipboard Copied! Toggle word wrap Toggle overflow To stop the instance, run:
dsctl instance_name stop
# dsctl instance_name stopCopy to Clipboard Copied! Toggle word wrap Toggle overflow To restart the instance, run:
dsctl instance_name restart
# dsctl instance_name restartCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Optionally, you can enable Directory Server instances to automatically start when the system boots:
For a single instance, run:
systemctl enable dirsrv@instance_name
# systemctl enable dirsrv@instance_nameCopy to Clipboard Copied! Toggle word wrap Toggle overflow For all instances on a server, run:
systemctl enable dirsrv.target
# systemctl enable dirsrv.targetCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
You can check the instance status by using the dsctl or systemctl utility:
To view the instance status by using the
dsctlutility, run:dsctl instance_name status
# dsctl instance_name statusCopy to Clipboard Copied! Toggle word wrap Toggle overflow To view the instance status by using the
systemctlutility, run:systemctl status dirsrv@instance_name
# systemctl status dirsrv@instance_nameCopy to Clipboard Copied! Toggle word wrap Toggle overflow
14.2. Starting and stopping a Directory Server instance by using the web console Link kopierenLink in die Zwischenablage kopiert!
You can use the web console to start, stop, or restart a Directory Server instance.
Prerequisites
- You are logged in to the web console. For more details, see
- Logging in to the Directory Server by using the web console
Procedure
- Select the Directory Server instance.
Click the Actions button and select the action to execute:
- Start Instance
- Stop Instance
Restart Instance
Verification
Ensure that the Directory Server instance is running. When the instance is not running, the web console displays the following message:
This server instance is not running, either start it from the Actions dropdown menu, or choose a different instance.
This server instance is not running, either start it from the Actions dropdown menu, or choose a different instance.Copy to Clipboard Copied! Toggle word wrap Toggle overflow