AWS instance after machine hostname change, the server loose connection after while

0

Hi all,

OS: SLES15 Server: EC2 with Load Balancer and Auto Scaling

After changing the hostname as "sudo hostnamectl set-hostname webserver.mydomain.com", the server loose connection after a while.

Any ideas how to make it stable? Thank you

Carlo
preguntada hace 4 meses191 visualizaciones
1 Respuesta
1

Hostname can be made permanent with below steps:

  1. Set hostname $ sudo hostnamectl set-hostname new-hostname

$ sudo vi /etc/hosts

Find the localhost string and append the new hostname.

127.0.0.1 localhost webserver.mydomain.com

Save and exit

  1. Confirm the change in hostname:

$ hostnamectl

Please refer: https://repost.aws/knowledge-center/linux-static-hostname-suse

AWS
respondido hace 4 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas