Red Hat 8.1 Guia de Instalação Página 20

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 67
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 19
/usr/lib/mozldap/ldapm odify -D "cn=directory manager" -w secret -p 389
-h server.example.com
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
changetype:modify
replace:nsAccessLog
nsAccessLog:/var/log/dirsrv/admin-serv//access_new
Hit Enter twice to submit the operation, and then Control+C to close ldapm odify.
2. Open the Admin Server configuration directory.
cd /etc/dirsrv/admin-serv
3. Edit the console.conf file. For the access log, edit the path and filename in the CustomLog
parameter. For the error log, edit the path and filename in the ErrorLog parameter.
CustomLog /var/log/dirsrv/adm in-serv//access_new com mon
ErrorLog /var/log/dirsrv/admin-serv//error_new
Leave the term comm on after the access log path; this means that the access log is in the
Common Log Format.
4. Restart the Admin Server.
service dirsrv-admin restart
2.4.5. Setting the Logs to Show Hostnames Instead of IP Addresses
By default, the logs show the IP address of the clients which connect to the Admin Server. T his is faster
for the Admin Server, since it does not have to do a DNS lookup for every connection. It is possible to set
the Admin Server to perform a DNS lookup so that hostnames are used in the logs. Along with being
friendlier to read and search, using hostnames instead of IP addresses also removes some
unnecessary error messages about being unable to resolve hostnames.
To configure the Admin Server to perform DNS lookups:
1. Edit the console.conf file for the Admin Server.
cd /etc/dirsrv/admin-serv
vim console.conf
2. Set the Hostnam eLookups parameter to on. By default, this is turned off, so that IP addresses
are recorded in logs instead of hostnames.
HostnameLookups on
2.5. Changing the Port Number
The port number specifies where an instance of Admin Server listens for messages.
The default port number for Admin Server is set when the instance is first installed and the configuration
script, such as setup-ds-adm in.pl, is run. T he default port number is 9830, although if that number
Chapter 2. Admin Server Configuration
17
Vista de página 19
1 2 ... 15 16 17 18 19 20 21 22 23 24 25 ... 66 67

Comentários a estes Manuais

Sem comentários