{"id":32541,"date":"2024-06-08T22:48:45","date_gmt":"2024-06-08T22:48:45","guid":{"rendered":"\/tutoriels\/?p=32541"},"modified":"2026-01-29T16:18:54","modified_gmt":"2026-01-29T16:18:54","slug":"changer-nom-hote-linux","status":"publish","type":"post","link":"\/fr\/tutoriels\/changer-nom-hote-linux","title":{"rendered":"Comment changer le nom d&#8217;h\u00f4te Linux en utilisant 4 m\u00e9thodes diff\u00e9rentes"},"content":{"rendered":"<p>Un nom d&rsquo;h&ocirc;te est un nom utilis&eacute; pour identifier un p&eacute;riph&eacute;rique sur un r&eacute;seau. Il est g&eacute;n&eacute;ralement d&eacute;fini comme <strong>localhost <\/strong>lors de l&rsquo;installation du syst&egrave;me d&rsquo;exploitation.<\/p><p>Cependant, s&rsquo;il y a plusieurs appareils dans un r&eacute;seau, cela peut g&eacute;n&eacute;rer des doublons et causer des conflits de r&eacute;seau. Pour &eacute;viter cela, il est conseill&eacute; de changer le nom d&rsquo;h&ocirc;te de votre syst&egrave;me Linux.<\/p><p>Dans cet article, nous allons illustrer quatre m&eacute;thodes pour changer le nom d&rsquo;h&ocirc;te sous CentOS et d&rsquo;autres distributions Linux comme Debian, Ubuntu et Red Hat Enterprise Linux (RHEL).<\/p><figure class=\"wp-block-image size-full\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Linux-Commands-Cheatsheet-FR.pdf\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" width=\"1024\" height=\"283\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2022\/12\/Linux-cheat-sheet-FR-1024x283-1.png\/public\" alt=\"\" class=\"wp-image-41445\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2022\/12\/Linux-cheat-sheet-FR-1024x283-1.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2022\/12\/Linux-cheat-sheet-FR-1024x283-1.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2022\/12\/Linux-cheat-sheet-FR-1024x283-1.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2022\/12\/Linux-cheat-sheet-FR-1024x283-1.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-comment-changer-le-nom-d-hote-de-facon-permanente-sous-linux\"><strong>Comment changer le nom d&rsquo;h&ocirc;te de fa&ccedil;on permanente sous Linux<\/strong><\/h2><p>Dans cette section, vous apprendrez comment changer le nom d&rsquo;h&ocirc;te actuel de fa&ccedil;on <strong>permanente <\/strong>sur les serveurs priv&eacute;s virtuels Linux &ndash; en utilisant la commande hostnamectl, le VPS Hostinger, nmtui, ou en &eacute;ditant vos fichiers de configuration.<\/p><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Conseil de pro<\/h4>\n                    <p> Si vous d&eacute;butez, vous trouverez toutes les instructions pour <a href=\"\/fr\/tutoriels\/comment-configurer-un-vps\">configurer un VPS<\/a> dans notre guide. <\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-utilisation-de-la-commande-hostnamectl\"><strong>Utilisation de la commande hostnamectl<\/strong><\/h3><p>Les distributions Linux modernes sont livr&eacute;es avec <strong>systemd<\/strong>, un gestionnaire de syst&egrave;mes et de services dans lequel la <strong>commande hostnamectl <\/strong>est install&eacute;e par d&eacute;faut pour g&eacute;rer et modifier les noms d&rsquo;h&ocirc;tes.<\/p><p>Voici comment modifier votre nom d&rsquo;h&ocirc;te actuel &agrave; l&rsquo;aide de hostnamectl :<\/p><ol class=\"wp-block-list\">\n<li>Ouvrir le <strong>terminal<\/strong>.<\/li>\n\n\n\n<li>Connectez-vous &agrave; votre serveur Linux via <strong>SSH<\/strong>.<\/li>\n\n\n\n<li>Si votre syst&egrave;me ne dispose pas de systemd, utilisez cette commande pour l&rsquo;installer et appuyez sur <strong>Entr&eacute;e <\/strong>:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">apt-get install systemd<\/pre><p>4. Une fois l&rsquo;installation termin&eacute;e, tapez la commande suivante pour afficher le nom d&rsquo;h&ocirc;te actuel et appuyez sur <strong>Entr&eacute;e <\/strong>:<\/p><pre class=\"wp-block-preformatted\">hostnamectl<\/pre><p>5. Voici &agrave; quoi ressemble le r&eacute;sultat :<\/p><pre class=\"wp-block-preformatted\">Static hostname: hostinger<br>Icon name: computer-vm<br>Chassis: vm<br>Machine ID: 45598cbdb6ee462e8696166b520fe788<br>Boot ID: 99526e56aeea45c2a0f3b2ffaaffe9d9<br>Virtualization: openvz<br>Operating System: Ubuntu 22.04.4 LTS<br>Kernel: Linux 5.15.0<br>Architecture: x86-64<\/pre><p>6. Sur la sortie, le nom d&rsquo;h&ocirc;te actuel est list&eacute; comme le <strong>static hostname<\/strong>. Pour le modifier de mani&egrave;re permanente, ins&eacute;rez la commande suivante &ndash; en utilisant le nouveau nom d&rsquo;h&ocirc;te souhait&eacute; &ndash; et appuyez sur <strong>Entr&eacute;e <\/strong>:<\/p><pre class=\"wp-block-preformatted\">hostnamectl set-hostname nouveau_nom_d'h&ocirc;te<\/pre><p>7. La commande ci-dessus ne produit aucun r&eacute;sultat. Par cons&eacute;quent, pour v&eacute;rifier le nouveau nom d&rsquo;h&ocirc;te, ex&eacute;cutez la commande ci-dessous et appuyez sur <strong>Entr&eacute;e <\/strong>:<\/p><pre class=\"wp-block-preformatted\">hostnamectl<\/pre><p>Le r&eacute;sultat vous indiquera le nouveau nom d&rsquo;h&ocirc;te.<\/p><h3 class=\"wp-block-heading\" id=\"h-utilisation-du-vps-hostinger\"><strong>Utilisation du VPS Hostinger<\/strong><\/h3><p>Si vous utilisez le <a href=\"\/fr\/vps\">VPS Hostinger<\/a>, la seule fa&ccedil;on de changer le nom d&rsquo;h&ocirc;te de fa&ccedil;on permanente est de passer par le hPanel. Voici comment proc&eacute;der :<\/p><ol class=\"wp-block-list\">\n<li>Allez dans l&rsquo;onglet <strong>VPS <\/strong>et s&eacute;lectionnez le serveur que vous souhaitez modifier.<\/li>\n\n\n\n<li>S&eacute;lectionnez <strong>Param&egrave;tres <\/strong>dans la barre lat&eacute;rale gauche.<\/li>\n\n\n\n<li>Faites d&eacute;filer vers le bas et tapez le nouveau nom d&rsquo;h&ocirc;te dans la case <strong>Changer le nom d&rsquo;h&ocirc;te. <\/strong>Cliquez sur <strong>Changer<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a41bdbc20566\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a41bdbc20566\" class=\"aligncenter size-full wp-lightbox-container\"><img decoding=\"async\" width=\"597\" height=\"345\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/Parametres-Hostinger-1.png\/public\" alt=\"La section pour changer le nom d'h&ocirc;te du VPS sur hPanel\" class=\"wp-image-32612\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/Parametres-Hostinger-1.png\/w=597,fit=scale-down 597w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/Parametres-Hostinger-1.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/Parametres-Hostinger-1.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 597px) 100vw, 597px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>C&rsquo;est tout ! Vous pouvez v&eacute;rifier le nom d&rsquo;h&ocirc;te de votre VPS Hostinger depuis hPanel ou en demandant &agrave; l&rsquo;assistant IA Kodee. Il suffit de lui demander : &laquo; Quel est le nom d&rsquo;h&ocirc;te statique actuel de mon VPS ? &raquo;<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a41bdbc21314\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a41bdbc21314\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1152\" height=\"372\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/kodee-nom-hote-statique-04-04-2025_11_04_PM.png\/w=1024,h=1024,fit=scale-down\" alt=\"Kodee affiche le nom d'h&ocirc;te VPS actuel\" class=\"wp-image-39615\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/kodee-nom-hote-statique-04-04-2025_11_04_PM.png\/w=1152,fit=scale-down 1152w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/kodee-nom-hote-statique-04-04-2025_11_04_PM.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/kodee-nom-hote-statique-04-04-2025_11_04_PM.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/kodee-nom-hote-statique-04-04-2025_11_04_PM.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/kodee-nom-hote-statique-04-04-2025_11_04_PM.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1152px) 100vw, 1152px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.hostinger.com\/fr\/vps\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2022\/12\/FR-VPS-hosting_in-text-banner-1024x300-1.png\/public\" alt=\"\" class=\"wp-image-41471\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2022\/12\/FR-VPS-hosting_in-text-banner-1024x300-1.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2022\/12\/FR-VPS-hosting_in-text-banner-1024x300-1.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2022\/12\/FR-VPS-hosting_in-text-banner-1024x300-1.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2022\/12\/FR-VPS-hosting_in-text-banner-1024x300-1.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-utilisation-de-l-interface-utilisateur-textuelle-du-gestionnaire-de-reseau-nmtui\"><strong>Utilisation de l&rsquo;interface utilisateur textuelle du gestionnaire de r&eacute;seau (nmtui)<\/strong><\/h3><p>L&rsquo;<strong>interface utilisateur textuelle du gestionnaire de r&eacute;seau (nmtui) <\/strong>est une interface utilisateur textuelle qui vous permet de configurer le r&eacute;seau et le nom d&rsquo;h&ocirc;te dans une fen&ecirc;tre de terminal. Elle est disponible dans plusieurs distributions Linux, notamment CentOS et RHEL.<\/p><p>Voici comment modifier le nom d&rsquo;h&ocirc;te &agrave; l&rsquo;aide de la commande nmtui :<\/p><ol class=\"wp-block-list\">\n<li>Ouvrez le <strong>terminal <\/strong>et connectez-vous &agrave; votre compte via SSH.<\/li>\n\n\n\n<li>Installez le <strong>package NetworkManager-tui <\/strong>en ins&eacute;rant la commande suivante et en appuyant sur <strong>Entr&eacute;e <\/strong>:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo yum install NetworkManager-tui<\/pre><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a41bdbc23275\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a41bdbc23275\" class=\"aligncenter size-full wp-lightbox-container\"><img decoding=\"async\" width=\"413\" height=\"35\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal.png\/public\" alt=\"Interface de terminal avec la commande pour installer le package NetworkManager-tui\" class=\"wp-image-32613\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal.png\/w=413,fit=scale-down 413w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 413px) 100vw, 413px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>3. Le paquet et la liste des d&eacute;pendances seront charg&eacute;s. Tapez <strong>y <\/strong>et appuyez sur <strong>Entr&eacute;e <\/strong>pour lancer le processus d&rsquo;installation.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a41bdbc23fcb\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a41bdbc23fcb\" class=\"aligncenter size-full wp-lightbox-container\"><img decoding=\"async\" width=\"783\" height=\"391\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/le-package-et-liste-des-dependences-du-NetworkManager-tui.png\/public\" alt=\"Le package et la liste des d&eacute;pendances du NetworkManager-tui\" class=\"wp-image-32614\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/le-package-et-liste-des-dependences-du-NetworkManager-tui.png\/w=783,fit=scale-down 783w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/le-package-et-liste-des-dependences-du-NetworkManager-tui.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/le-package-et-liste-des-dependences-du-NetworkManager-tui.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/le-package-et-liste-des-dependences-du-NetworkManager-tui.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 783px) 100vw, 783px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>4. La ligne <strong>Complete!<\/strong> s&rsquo;affichera lorsque le paquet nmtui aura &eacute;t&eacute; install&eacute; avec succ&egrave;s.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a41bdbc24c68\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a41bdbc24c68\" class=\"aligncenter size-full wp-lightbox-container\"><img decoding=\"async\" width=\"791\" height=\"533\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal-avec-ligne-Complete.png\/public\" alt=\"L'interface du terminal, o&ugrave; la ligne Complete ! indique que le processus d'installation de nmtui est termin&eacute;.\" class=\"wp-image-32615\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal-avec-ligne-Complete.png\/w=791,fit=scale-down 791w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal-avec-ligne-Complete.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal-avec-ligne-Complete.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal-avec-ligne-Complete.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 791px) 100vw, 791px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>5. Ex&eacute;cutez cette commande pour v&eacute;rifier l&rsquo;&eacute;tat du gestionnaire de r&eacute;seau et appuyez sur <strong>Entr&eacute;e <\/strong>:<\/p><pre class=\"wp-block-preformatted\">service NetworkManager status<\/pre><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a41bdbc257d7\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a41bdbc257d7\" class=\"aligncenter size-full wp-lightbox-container\"><img decoding=\"async\" width=\"716\" height=\"100\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/sortie-du-commande-pour-verifier-statut-du-service-du-network-manager.png\/public\" alt=\"La sortie de la commande permettant de v&eacute;rifier l'&eacute;tat de service du gestionnaire de r&eacute;seau\" class=\"wp-image-32616\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/sortie-du-commande-pour-verifier-statut-du-service-du-network-manager.png\/w=716,fit=scale-down 716w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/sortie-du-commande-pour-verifier-statut-du-service-du-network-manager.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/sortie-du-commande-pour-verifier-statut-du-service-du-network-manager.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 716px) 100vw, 716px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>6. Pour d&eacute;marrer le service nmtui, tapez la commande suivante et appuyez sur <strong>Entr&eacute;e <\/strong>:<\/p><pre class=\"wp-block-preformatted\">service NetworkManager start<\/pre><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a41bdbc26285\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a41bdbc26285\" class=\"aligncenter size-full wp-lightbox-container\"><img decoding=\"async\" width=\"422\" height=\"36\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal-avec-commande-pour-commencer-le-service-nmtui.png\/public\" alt=\"L'interface de terminal avec la commande pour d&eacute;marrer le service nmtui\" class=\"wp-image-32617\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal-avec-commande-pour-commencer-le-service-nmtui.png\/w=422,fit=scale-down 422w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal-avec-commande-pour-commencer-le-service-nmtui.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal-avec-commande-pour-commencer-le-service-nmtui.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 422px) 100vw, 422px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>7. Saisissez ensuite cette commande et cliquez sur <strong>Entr&eacute;e <\/strong>:<\/p><pre class=\"wp-block-preformatted\">sudo nmtui<\/pre><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a41bdbc26da9\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a41bdbc26da9\" class=\"aligncenter size-full wp-lightbox-container\"><img decoding=\"async\" width=\"265\" height=\"26\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal-avec-commande-nmtui.png\/public\" alt=\"L'interface du terminal avec la commande sudo nmtui\" class=\"wp-image-32618\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal-avec-commande-nmtui.png\/w=265,fit=scale-down 265w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/interface-terminal-avec-commande-nmtui.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 265px) 100vw, 265px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>8. Dans la fen&ecirc;tre de l&rsquo;interface utilisateur de NetworkManager, s&eacute;lectionnez <strong>Set system hostname <\/strong>et appuyez sur <strong>Entr&eacute;e<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a41bdbc279db\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a41bdbc279db\" class=\"aligncenter size-full wp-lightbox-container\"><img decoding=\"async\" width=\"295\" height=\"290\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/option-Set-system-hostname.png\/public\" alt=\"L'option Set system hostname dans la fen&ecirc;tre TUI de NetworkManager\" class=\"wp-image-32619\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/option-Set-system-hostname.png\/w=295,fit=scale-down 295w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/option-Set-system-hostname.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 295px) 100vw, 295px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>9. Saisissez le nom d&rsquo;h&ocirc;te souhait&eacute; et choisissez <strong>OK<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a41bdbc28703\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a41bdbc28703\" class=\"aligncenter size-full wp-lightbox-container\"><img decoding=\"async\" width=\"241\" height=\"164\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/bouton-OK-hostname.png\/public\" alt=\"D&eacute;finir le nom d'h&ocirc;te &agrave; 'examplevps' - OK\" class=\"wp-image-32620\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/bouton-OK-hostname.png\/w=241,fit=scale-down 241w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/46\/2024\/06\/bouton-OK-hostname.png\/w=150,fit=scale-down 150w\" sizes=\"(max-width: 241px) 100vw, 241px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>Vous avez modifi&eacute; le nom d&rsquo;h&ocirc;te avec succ&egrave;s.<\/p><h3 class=\"wp-block-heading\" id=\"h-modification-des-fichiers-de-configuration\"><strong>Modification des fichiers de configuration<\/strong><\/h3><p>L&rsquo;option suivante consiste &agrave; &eacute;diter les fichiers de configuration &ndash; <strong>\/etc\/hostname <\/strong>et <strong>\/etc\/hosts<\/strong>. Voici comment proc&eacute;der :<\/p><ol class=\"wp-block-list\">\n<li>Ouvrez le <strong>terminal <\/strong>et connectez-vous via SSH.<\/li>\n\n\n\n<li>Ouvrez le fichier <strong>\/etc\/hostname <\/strong>et remplacez l&rsquo;ancien nom d&rsquo;h&ocirc;te par le nouveau :<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">vi \/etc\/hostname\nhostinger<\/pre><p>3. Ensuite, mettez &agrave; jour l&rsquo;enregistrement du nom d&rsquo;h&ocirc;te dans le fichier <strong>\/etc\/hosts <\/strong>afin que le syst&egrave;me r&eacute;solve le nouveau nom d&rsquo;h&ocirc;te dans le r&eacute;seau.<\/p><pre class=\"wp-block-preformatted\"># vi \/etc\/hosts\n127.0.0.1 hostinger<\/pre><p>&Agrave; ce stade, vous avez termin&eacute; la mise &agrave; jour des enregistrements dans les fichiers de configuration. Cependant, pour appliquer les modifications, vous devez &eacute;diter le fichier de configuration du cloud.<\/p><p>Voici comment proc&eacute;der :<\/p><ol class=\"wp-block-list\">\n<li>Ouvrez le fichier de configuration du cloud en ins&eacute;rant cette commande dans le <strong>terminal <\/strong>et en appuyant sur <strong>Entr&eacute;e <\/strong>:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo vim \/etc\/cloud\/cloud.cfg<\/pre><p>2. Remplacez la valeur de la ligne suivante par true (vrai) :<\/p><pre class=\"wp-block-preformatted\">preserve_hostname : true<\/pre><p>3. Red&eacute;marrez votre syst&egrave;me et ouvrez le <strong>terminal<\/strong>. Pour v&eacute;rifier si le nom d&rsquo;h&ocirc;te a bien &eacute;t&eacute; conserv&eacute; pendant le red&eacute;marrage, ex&eacute;cutez la commande suivante et appuyez sur <strong>Entr&eacute;e <\/strong>:<\/p><pre class=\"wp-block-preformatted\">hostname<\/pre><p>Le nouveau nom d&rsquo;h&ocirc;te que vous avez configur&eacute; s&rsquo;affiche.<\/p><p>\n\n\n<div><p class=\"important\"><strong>Important !<\/strong> Si le fichier de configuration du cloud n&rsquo;est pas disponible dans votre syst&egrave;me, vous pouvez ignorer ces &eacute;tapes.<\/p><\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-comment-changer-de-nom-d-hote-sans-redemarrer\"><strong>Comment changer de nom d&rsquo;h&ocirc;te sans red&eacute;marrer<\/strong><\/h2><p>Dans cette section, vous apprendrez &agrave; modifier le nom d&rsquo;h&ocirc;te sans red&eacute;marrer le syst&egrave;me. Cependant, d&egrave;s que vous red&eacute;marrez le syst&egrave;me, il revient &agrave; l&rsquo;ancien nom d&rsquo;h&ocirc;te.<\/p><p>Cette m&eacute;thode est utile lorsque vous devez effectuer une t&acirc;che mineure n&eacute;cessitant des modifications temporaires. La syntaxe de base de la commande est la suivante :<\/p><pre class=\"wp-block-preformatted\">hostname [nouveau_nom_d'h&ocirc;te]<\/pre><p>Voici comment l&rsquo;utiliser :<\/p><p>1. Dans le <strong>terminal<\/strong>, tapez la commande hostname avec le nouveau nom d&rsquo;h&ocirc;te et appuyez sur <strong>Entr&eacute;e<\/strong>.<\/p><ol class=\"wp-block-list\">\n<li>\n<\/ol><pre class=\"wp-block-preformatted\">hostname hostinger<\/pre><p>2. V&eacute;rifiez que le nom d&rsquo;h&ocirc;te a &eacute;t&eacute; d&eacute;fini correctement en ins&eacute;rant la commande suivante et en appuyant sur <strong>Entr&eacute;e <\/strong>:<\/p><pre class=\"wp-block-preformatted\">hostname<\/pre><p>La sortie affichera le nom d&rsquo;h&ocirc;te mis &agrave; jour.<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\"><strong>Conclusion<\/strong><\/h2><p>Le nom d&rsquo;h&ocirc;te du syst&egrave;me est un &eacute;l&eacute;ment essentiel d&rsquo;un serveur Linux, car il permet d&rsquo;identifier votre machine au sein d&rsquo;un r&eacute;seau.<\/p><p>La plupart des syst&egrave;mes Linux fournissent des outils et des commandes permettant aux utilisateurs de personnaliser les noms d&rsquo;h&ocirc;tes du syst&egrave;me en fonction de leurs pr&eacute;f&eacute;rences. Nous vous pr&eacute;sentons quatre m&eacute;thodes pour modifier les noms d&rsquo;h&ocirc;tes en fonction de vos besoins :<\/p><ul class=\"wp-block-list\">\n<li>Ex&eacute;cuter la commande <strong>hostnamectl<\/strong>, utiliser <strong>nmtui <\/strong>ou modifier le <strong>fichier hosts <\/strong>pour changer le nom d&rsquo;h&ocirc;te de fa&ccedil;on permanente.<\/li>\n\n\n\n<li>Changer le nom d&rsquo;h&ocirc;te Linux de fa&ccedil;on permanente sur le VPS Hostinger via le <strong>hPanel<\/strong>.<\/li>\n\n\n\n<li>La commande <strong>hostname [new_host_name] <\/strong>permet de modifier temporairement le nom d&rsquo;h&ocirc;te sans red&eacute;marrer le syst&egrave;me.<\/li>\n<\/ul><p>Nous esp&eacute;rons que cet article vous a aid&eacute; &agrave; configurer un nouveau nom d&rsquo;h&ocirc;te dans votre syst&egrave;me Linux. Si vous avez des questions ou des suggestions, n&rsquo;h&eacute;sitez pas &agrave; les partager dans la section des commentaires ci-dessous.<\/p><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">En savoir plus sur votre VPS<\/h4>\n                    <p> <a href=\"https:\/\/www.hostinger.com\/fr\/tutoriels\/comment-utiliser-tmux\">Comment utiliser Tmux sur un Serveur Virtuel Linux <\/a> <\/p>\n                <\/div>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Un nom d&rsquo;h&ocirc;te est un nom utilis&eacute; pour identifier un p&eacute;riph&eacute;rique sur un r&eacute;seau. Il est g&eacute;n&eacute;ralement d&eacute;fini comme localhost lors de l&rsquo;installation du syst&egrave;me d&rsquo;exploitation. Cependant, s&rsquo;il y a plusieurs appareils dans un r&eacute;seau, cela peut g&eacute;n&eacute;rer des doublons et causer des conflits de r&eacute;seau. Pour &eacute;viter cela, il est conseill&eacute; de changer le [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/fr\/tutoriels\/changer-nom-hote-linux\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":355,"featured_media":32553,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Comment Changer un Nom d'H\u00f4te sous Linux","rank_math_description":"Apprenez \u00e0 changer le nom d'h\u00f4te sous Linux en utilisant les commandes hostnamectl, nmtui et en modifiant les fichiers de configuration.","rank_math_focus_keyword":"changer le nom d'h\u00f4te linux","footnotes":""},"categories":[4760],"tags":[],"class_list":["post-32541","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/linux-change-hostname","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/changer-nom-hote-linux","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/cambiar-hostname-linux","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/linux-change-hostname","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/linux-change-hostname","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/linux-change-hostname","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/cambiar-hostname-linux","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/cambiar-hostname-linux","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/cambiar-hostname-linux","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/linux-change-hostname","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/linux-change-hostname","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/linux-change-hostname","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/linux-change-hostname","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/fr\/tutoriels\/wp-json\/wp\/v2\/posts\/32541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/fr\/tutoriels\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/fr\/tutoriels\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/tutoriels\/wp-json\/wp\/v2\/users\/355"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/tutoriels\/wp-json\/wp\/v2\/comments?post=32541"}],"version-history":[{"count":8,"href":"https:\/\/www.hostinger.com\/fr\/tutoriels\/wp-json\/wp\/v2\/posts\/32541\/revisions"}],"predecessor-version":[{"id":45609,"href":"https:\/\/www.hostinger.com\/fr\/tutoriels\/wp-json\/wp\/v2\/posts\/32541\/revisions\/45609"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/tutoriels\/wp-json\/wp\/v2\/media\/32553"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/fr\/tutoriels\/wp-json\/wp\/v2\/media?parent=32541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/tutoriels\/wp-json\/wp\/v2\/categories?post=32541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/tutoriels\/wp-json\/wp\/v2\/tags?post=32541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}