de-vraag
  • Pytania
  • Tagi
  • Użytkownicy
Powiadomienia
Nagrody
Rejestracja
Po zarejestrowaniu się, będziesz otrzymywać powiadomienia o odpowiedziach i komentarzach do swoich pytań.
Zaloguj się
Brak tłumaczeń pasujących do Twojego wyszukiwania Jeśli masz już konto, zaloguj się, aby sprawdzić nowe powiadomienia.
Za dodane pytania, odpowiedzi i komentarze przewidziane są nagrody.
Więcej
Źródło
Edytuj
 Deepu
Deepu
Question

Błąd Apache "Could not reliably determine the server's fully qualified domain name"

Kiedy restartuję mój serwer Apache używając komendy

sudo /etc/init.d/apache2 restart

Otrzymuję następujący błąd:

Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2:
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Czy serwer używa adresu 127.0.1.1 zamiast 127.0.0.1? Co powoduje ten błąd?

436 2013-02-14T13:09:30+00:00 3
Peter Mortensen
Peter Mortensen
Edytowane pytanie 7. stycznia 2017 в 10:51
Ubuntu
server
apache2
Popular videos
#Fixed #Ubuntu AH00558: apache2: Could not reliably determine the server's fully qualified domain.
#Fixed #Ubuntu AH00558: apache2: Could not reliably determine the server's fully qualified domain.
1 rok temu
How to fix Could not reliably determine the server's fully qualified domain name in Apache2 Windows
How to fix Could not reliably determine the server's fully qualified domain name in Apache2 Windows
1 rok temu
Apache problem : Could not reliably determine the server's fully qualified domain name
Apache problem : Could not reliably determine the server's fully qualified domain name
6 lat temu
Could not reliably determine the server's fully qualified domain name
Could not reliably determine the server's fully qualified domain name
5 lat temu
apache2: Could not reliably determine the server's fully qualified domain name (3 Solutions!!)
apache2: Could not reliably determine the server's fully qualified domain name (3 Solutions!!)
9 miesięcy temu
Apache2: could not reliably determine (Fully Qualifed Domain Name)
Apache2: could not reliably determine (Fully Qualifed Domain Name)
5 lat temu
Ubuntu: Apache error "Could not reliably determine the server's fully qualified domain name"
Ubuntu: Apache error "Could not reliably determine the server's fully qualified domain name"
2 lata temu
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1...
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1...
1 rok temu
Error with Apache2 on Debian Lenny: "Could not reliably determine the server's fully qualified...
Error with Apache2 on Debian Lenny: "Could not reliably determine the server's fully qualified...
8 miesięcy temu
Could not reliably determine the server's fully qualified domain name (2 Solutions!!)
Could not reliably determine the server's fully qualified domain name (2 Solutions!!)
1 rok temu
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1...
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1...
1 rok temu
Error when starting httpd service "Could not reliably determine the server's fully qualified...
Error when starting httpd service "Could not reliably determine the server's fully qualified...
1 rok temu
Issue With httpd: Could not reliably determine the server's fully qualified domain name
Issue With httpd: Could not reliably determine the server's fully qualified domain name
1 rok temu
AH00558: httpd: Could not reliably determine server's fully qualified servername error after...
AH00558: httpd: Could not reliably determine server's fully qualified servername error after...
6 miesięcy temu
Unix & Linux: apache2: Could not reliably determine the server's fully qualified domain name
Unix & Linux: apache2: Could not reliably determine the server's fully qualified domain name
1 rok temu
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for...
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for...
1 rok temu
Ubuntu11.04でApacheの再起動
Ubuntu11.04でApacheの再起動
10 lat temu
Troubleshooting Apache2
Troubleshooting Apache2
10 lat temu
« Poprzedni
Następny »
To pytanie ma 1 odpowiedź w języku angielskim, aby je przeczytać zaloguj się na swoje konto.
Solution / Answer
 Rinzwind
Rinzwind
14. lutego 2013 в 1:18
2013-02-14T13:18:12+00:00
Więcej
Źródło
Edytuj
#21490941

6# 13.04 i starsze

To jest tylko przyjazne ostrzeżenie, a nie problem (w sensie, że coś nie działa).

Jeśli przejdziesz do:

/etc/apache2/apache2.conf

i wstawisz:

ServerName localhost   

a następnie zrestartuj apache wpisując w terminalu:

sudo systemctl reload apache2

powiadomienie zniknie.

Jeśli masz nazwę wewnątrz /etc/hostname możesz również użyć tej nazwy zamiast localhost.


I używa 127.0.1.1 jeśli jest wewnątrz twojego /etc/hosts:

127.0.0.1 localhost
127.0.1.1 myhostname

Preferowana metoda

Rozwiązywanie problemów z Apache

Jeśli otrzymasz ten błąd:

apache2: Could not determine the server's fully qualified domain name, 
using 127.0.0.1 for ServerName

to użyj edytora tekstu takiego jak "sudo nano" w wierszu poleceń lub "gksudo gedit" na pulpicie, aby utworzyć nowy plik,

sudo nano /etc/apache2/conf.d/fqdn

lub

gksu "gedit /etc/apache2/conf.d/fqdn"

to dodaj

ServerName localhost

do pliku i zapisać. Wszystko to można zrobić w jednym poleceniu, korzystając z poniższego:

 echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn

Ale na Ubuntu 14.04:

 echo "ServerName localhost" | sudo tee /etc/apache2/conf-available/fqdn.conf
 sudo a2enconf fqdn

Nie zapomnij o ".conf" (bez tego nie będzie działać).

Julian Poole
Julian Poole
Edytowana odpowiedź 10. września 2019 в 6:05
516
0
 green
green
14. lutego 2013 в 1:17
2013-02-14T13:17:31+00:00
Więcej
Źródło
Edytuj
#21490940
  • Otwórz terminal

  • Otwórz plik /etc/apache2/httpd.conf:

     sudo editor /etc/apache2/httpd.conf # [1]
  • Domyślnie będzie on pusty. Po prostu dodaj następującą linię:

     ServerName localhost
  • Zapisz plik i wyjdź.

  • Zrestartuj serwer

     sudo service apache2 restart

[1] Uruchom domyślny edytor, zobacz sudo update-alternatives --config editor.

 muru
muru
Edytowana odpowiedź 21. września 2014 в 1:50
26
0
 nobar
nobar
7. maja 2013 в 3:17
2013-05-07T15:17:07+00:00
Więcej
Źródło
Edytuj
#21490942

Na Ubuntu 11.10, zobaczyłem ten komunikat, wraz z zawieszającym się bootowaniem, ponieważ mój dysk był pełny. Jeden z plików logów okazał się zbójecki. Prawdopodobnie w rzeczywistości nie było problemu z Apache, ale ta wiadomość była ostatnią wskazówką przed zawieszeniem się systemu.

Aby rozwiązać problem, musiałem uruchomić komputer w trybie odzyskiwania i usunąć zbłąkany plik dziennika.

0
0
Dodaj pytanie
Kategorie
Wszystkie
Technologia
Kultura / Rekreacja
Życie / Sztuka
Nauka
Profesjonalny
Biznes
Użytkownicy
Wszystkie
Nowy
Popularny
1
365
Zarejestrowany 1 dzień temu
2
True Image
Zarejestrowany 1 dzień temu
3
archana agarwal
Zarejestrowany 3 dni temu
4
Maxim Zhilyaev
Zarejestrowany 6 dni temu
5
adambotsfford adambotsfford
Zarejestrowany 1 tydzień temu
DA
DE
EL
ES
FI
FR
ID
IT
JA
KO
LV
NL
PL
PT
RU
TR
ZH
© de-vraag 2022
Źródło
askubuntu.com
na podstawie licencji cc by-sa 3.0 z przypisaniem