blob: 6b24c35e61d14e1aeec4ac64443597dccad8d7f6 [file] [log] [blame]
Title: 5.2 - Starting and Stopping the server
NavPrev: 5.1-layout.html
NavPrevText: 5.1 - Layout
NavUp: 5-administration.html
NavUpText: 5 - Administration
NavNext: 5.3-logs.html
NavNextText: 5.3 - Logs
Notice: Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
# 5.2 - Starting and Stopping the server
[TOC]
## 5.2.1 Archive Distribution (zip/tar.gz)
### Starting ApacheDS
#### On Linux/Unix Systems
In a terminal, first move to the ApacheDS directory of the unarchived distribution and then run the _**apacheds.sh**_ script in the _**bin**_ directory:
$ cd <path-to-apacheds-directory>
$ sh bin/apache.sh
#### On Windows
Double-click the _**apacheds.bat**_ command in the _**bin**_ directory or in a terminal, first move to the _**bin**_ directory of the unarchived distribution and then run the _**apacheds.bat**_ command:
$ cd <path-to-apacheds-directory>\bin
$ apacheds.bat
### Stopping ApacheDS
ApacheDS can be stopped by hitting _**CTL+C**_ in the terminal the server was launched with. If the _**apacheds.bat**_ command was double-clicked, closing the terminal window will also stop ApacheDS.
## 5.2.2 Windows Installer (.exe)
ApacheDS is registered as a service on Windows. Start and Stop operations can be achieved in the _**Services**_ utility which is accessible via _**Start**_ > _**Control Panel**_ > _**Administration Tools**_ > _**Services**_.
ApacheDS also provides an easier access to the _**Services**_ utility via _**Start**_ > _**All Programs**_ > _**ApacheDS**_ > _**Manage ApacheDS**_.
### Starting ApacheDS
The ApacheDS service can be started right-clicking on the _**ApacheDS - Default**_ service and selecting _**Start**_ in the context menu.
### Stopping ApacheDS
The ApacheDS service can be started right-clicking on the _**ApacheDS - Default**_ service and selecting _**Stop**_ in the context menu.
## 5.2.3 Linux Binary (.bin), Debian (.deb) & Fedora (.rpm) Installers
### Starting ApacheDS
In a terminal, run the following command:
$ sudo /etc/init.d/apacheds-${version}-default start
### Stopping ApacheDS
In a terminal, run the following command:
$ sudo /etc/init.d/apacheds-${version}-default stop
**NOTE:** The ApacheDS Linux Binary installer lets the user decide the location of the launch script. The commands above refer to the default location and need to be adapted to whatever path was chosen during the installation.
## 5.2.4 Mac OS X Installer (.pkg)
### Starting ApacheDS
In a terminal, run the following command:
$ sudo launchctl start org.apache.directory.server
### Stopping ApacheDS
In a terminal, run the following command:
$ sudo launchctl stop org.apache.directory.server