English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux httpd-Befehl

Vollständiges Kommando von Linux

Linux httpd-Befehl ist das Programm für den Apache HTTP-Server.

httpd ist das Programm für den Apache HTTP-Server. Durch direkte Ausführung des Programms kann der Serverdienst gestartet werden.

Syntax

httpd [-hlLStvVX][-c<httpd-Anweisung>][-C<httpd-Anweisung>][-d<Server-Rootverzeichnis>][-D<Bestandsdateiparameter>][-f<Bestandsdatei>]

Parameterbeschreibung:

  • -c<httpd-Anweisung> Führe die Anweisung vor dem Lesen der Konfigurationsdatei aus.
  • -C<httpd-Anweisung> Führe die Anweisung nach dem Lesen der Konfigurationsdatei aus.
  • -d<Server-Rootverzeichnis> Bestimme das Root-Verzeichnis des Servers.
  • -D<Bestandsdateiparameter> Bestimme die Parameter, die an die Konfigurationsdatei übergeben werden sollen.
  • -f<Bestandsdatei> Bestimme die Konfigurationsdatei.
  • -h Zeige Hilfe.
  • -l Zeige die Module, die bei der Kompilierung des Servers enthalten sind.
  • -L Zeige die Beschreibungen der httpd-Anweisungen.
  • -S Zeige die Einstellungen in der Konfigurationsdatei.
  • -t Teste, ob die Syntax der Konfigurationsdatei korrekt ist.
  • -v Zeige Versionsinformationen.
  • -V Zeige Versionsinformationen und erbaue die Umgebung.
  • -X Starte den Server als einziges Programm.

Online-Beispiel

Überprüfe Syntaxfehler in der Konfigurationsdatei

# httpd -t
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 für ServerName
Syntax OK

Starte httpd

httpd
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 für ServerName

Zeige kompilierte Module

# httpd -l 
Kompilierte Module:
 core.c
 prefork.c
 http_core.c
 mod_so.c

Zeige Konfigurationsdatei

# httpd -L>1.log|tail -n 20 1.log
Maximale Anzahl von gleichzeitig lebenden Kindern
Erlaubt in *.conf nur außerhalb, oder 
ServerLimit (prefork.c)
Maximum value of MaxClients for this run of Apache
Erlaubt in *.conf nur außerhalb, oder 
KeepAliveTimeout (http_core.c)
Keep-Alive timeout duration (sec)
Erlaubt in *.conf nur außerhalb, oder 
MaxKeepAliveRequests (http_core.c)
Maximum number of Keep-Alive requests per connection, or 0 for infinite
Erlaubt in *.conf nur außerhalb, oder 
KeepAlive (http_core.c)
Whether persistent connections should be On or Off
Erlaubt in *.conf nur außerhalb, oder 
LoadModule (mod_so.c)
a module name and the name of a shared object file to load it from
Erlaubt in *.conf nur außerhalb, oder 
LoadFile (mod_so.c)
shared object file or library to load into the server at runtime
Erlaubt in *.conf nur außerhalb, oder 

Vollständiges Kommando von Linux