Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet323/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   319   320   321   322   323   324   325   326   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 246 
]
This error means that the computer is no longer able to resolve your local hostname. 
This is due to the fact that the 
/etc/hostname
 file is not the only file where 
your hostname is located; it's also referenced in 
/etc/hosts
. Unfortunately, the 
hostnamectl
 command doesn't update 
/etc/hosts
 for you, so you'll need to edit that 
file yourself to make the error go away. Here's what a 
/etc/hosts
 file looks like on 
an example server:
Figure 10.2: Sample contents from a /etc/hosts file
The first two entries, in this example, refer to the local machine itself. Localhost 
addresses, also known as 
loopback addresses
, allow the machine to essentially reach 
itself. If you were to use the 
ping
 command against the 
127.0.0.1
 address, the reply 
would come from the machine that executed the command, not from another host on 
the network. On the first line, we have the following:
127.0.0.1 localhost
If you were to use any networking command to attempt to communicate with the 
local server, such as pinging 
127.0.0.1
 or 
localhost
, the 
/etc/hosts
 file on this line 
declares that this communication is directed toward the underlying server itself.
With the second line in the example screenshot, we have the following:
127.0.1.1 dev.mynetwork.org dev
Depending on your configuration, such as whether you are using a physical server, 
a virtualization platform, or a cloud server provider, that line may or may not be 
present. You can add that line if it's missing, but we'll talk about that more in a 
moment. 


Chapter 10

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   319   320   321   322   323   324   325   326   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish