GNU/Linux >> Linux Esercitazione >  >> Cent OS

Come abilitare il debug CUPS su CentOS/RHEL

I passaggi seguenti guideranno come configurare CUPS per produrre informazioni di debug e come acquisirle.

Configurazione

1. Apri il file di configurazione di cups /etc/cups/cupsd.conf con un editor di testo.

# vi /etc/cups/cupsd.conf

Sembrerebbe qualcosa del genere:

MaxLogSize 0
#
# "$Id: cupsd.conf.in 8805 2009-08-31 16:34:06Z mike $"
#
# Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn

o

#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info

2. È necessario modificare la riga LogLevel in modo che assomigli alla seguente:

LogLevel debug2

3. Salva il file ora.

Come acquisire il registro

1. Apri due diverse finestre di terminale come utente root.

2. In uno dei Terminali Esegui il seguente comando:

# tail -f /var/log/cups/error_log > /tmp/cups_debug_error.txt

Lascia che questo comando venga eseguito mentre vengono eseguiti i seguenti passaggi.

3. Nell'altro terminale, procedi come segue:

# service cups restart

4. Ora segui i passaggi per ricreare il problema che stai affrontando con la stampante.

– Uno il primo Terminale, Premi, Ctrl-C per fermare il comando di coda.

– Una volta acquisiti i registri, ripristinare il livello di registro al valore predefinito e riavviare il servizio tazze.

Più opzioni con LogLevel

  • debug2 – Registra tutto.
  • debug – Registra quasi tutto.
  • informazioni – Registra tutte le richieste e le modifiche di stato.
  • avviso – Registra errori e avvisi.
  • errore – Registra solo errori.
  • nessuno – Non registra nulla.


Cent OS
  1. CentOS / RHEL 7:come avviare/arrestare o abilitare/disabilitare Firewalld

  2. CentOS / RHEL 7:come abilitare telnet per un gruppo di utenti

  3. Come abilitare IPv6 su CentOS/RHEL 6

  4. CentOS / RHEL:come registrare tutti i comandi LVM

  5. Come abilitare FTP in CentOS/RHEL 5 e 6

Come abilitare il repository EPEL su RHEL 8 / CentOS 8 Linux

Come abilitare il repository EPEL in CentOS e RHEL

Come abilitare Kdump su RHEL 7 e CentOS 7

Come abilitare il repository EPEL su CentOS 8 e RHEL 8 Server

Come abilitare il repository EPEL su CentOS 7 / RHEL 7

Come installare Log.io su CentOS 7