Red Hat 8.1 Installationsanleitung Seite 19

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 67
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 18
WARNING
The path to the log file is absolute and cannot be changed.
5. Click OK to save the changes.
6. Open the T asks tab, and click the Restart Server button to restart the server and apply the
changes.
2.4.4. Changing the Log Location in the Command Line
The access and error log files' names and locations can be changed to rotate the files. This rotation has
to be done manually to create new files if the existing log files become too large. T he location can be
changed if the default location in /var/log/dirsrv/adm in-serv/ does not meet the application
needs.
The Admin Server configuration is stored in two locations. T he main entry is an LDAP entry in the
Configuration Directory Server's o=NetscapeRoot database. The other is the console.conf file.
Changing the log settings requires changing both settings.
1. Edit the Admin Server configuration entry in the Configuration Directory Server.
a. Get the name of the Admin Server entry. Since the Admin Server entry has a special object
class, nsAdm inConfig, it is possible to search for the entry using that object class to
retrieve the DN.
/usr/lib/mozldap/ldapsearch -D "cn=directory m anager" -w secret -p 389
-h server.example.com -b "o=NetscapeRoot"
"(objectclass=nsAdminConfi g)" dn
version:1
dn: cn=configuration, cn=adm in-serv-example, cn=Red Hat Adm inistration
Server, cn=Server Group, cn=server.example.com, ou=example.com,
o=NetscapeRoot
b. T he Admin Server entry can be edited using ldapmodify. T he access and error log
settings are stored in the nsAccessLogs and nsErrorLogs attributes, respectively. For
example:
Red Hat Directory Server 8.1 Using the Admin Server
16
Seitenansicht 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 66 67

Kommentare zu diesen Handbüchern

Keine Kommentare