CentOS7 modifier le nom d'hôte (à utiliser avec le DNS auto-construit)

vi /etc/hosts

Contenu original:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

Ajoutez le nom d'hôte à l'arrière, si le nom d'hôte est git.abc.tech, modifiez-le en

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 git.abc.tech
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 git.abc.tech

vi /etc/hostname

Contenu original:

localhost.localdomain

Modifier le nom d'hôte

git.abc.tech

rebootRedémarrez l'hôte

Utilisez pour hostname hostnamectlvérifier les résultats modifiés après le démarrage

Comment faire en sorte que la commande d'historique affiche la date et l'heure

Je suppose que tu aimes

Origine blog.csdn.net/sxhexin/article/details/105700704
conseillé
Classement