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

1개 답변
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
답변함 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠