Installation guide
subsequent logins, the URL is saved. If you do not pass the Administration Server port number with the
redhat-idm -console command, then you are prompted for it at the Console login screen.
7.4. Getting the Administration Server Port Number
Logging into the Console requires the Administration Server URL along with a username and password.
The Administration Server has a standard HT T P address; the default is http://hostnam e:9830/. (If
the Administration Server is using T LS/SSL, then the URL begins with https://.)
To find the port number for your Administration Server run this command:
grep \^Listen /etc/dirsrv/admin-serv/console.conf
Listen 0.0.0.0:port
port goes after the colon in the Administration Server URL. If the Listen were 1132, the Administration
Server URL would be http://hostnam e:1132.
7.5. Starting and Stopping Servers
7.5.1. Starting and Stopping Directory Server
There are two ways to start, stop, or restart the Directory Server:
There are scripts in the instance directories. For example:
/usr/lib/dirsrv/slapd-instance/start-slapd
/usr/lib/dirsrv/slapd-instance/restart-slapd
/usr/lib/dirsrv/slapd-instance/stop-slapd
The Directory Server service can also be stopped and started using system tools on Red Hat
Enterprise Linux and Solaris. For example, Linux uses the service tool:
service dirsrv {start|stop|restart} instance
Solaris uses /etc/init.d:
/etc/init.d/dirsrv {start|stop|restart} instance
The Directory Server instance name can be specific in both the start|stop|restart-slapd and
system scripts. If an instance name is not given, the start or stop operation applies to all instances on
the machine.
7.5.2. Starting and Stopping Administration Server
There are two ways to start, stop, or restart the Administration Server:
There are scripts in the /usr/sbin directory.
/usr/sbin/start|stop|restart-ds-admin
The Administration Server service can also be stopped and started using system tools on Red Hat
Enterprise Linux and Solaris. For example, on Red Hat Enterprise Linux, the command is service:
Red Hat Directory Server 8.0 Installation Guide
92