Deze pagina is nog niet beschikbaar in uw eigen taal. We werken er hard aan om meer taalversies toe te voegen. Bedankt voor uw steun.

On this page

Show all

Help Center/ Elastic Cloud Server/ FAQs/ ECS Failure FAQ/ Why Is the Hostname of My ECS Restored to the Original Name After the ECS Is Restarted?

Why Is the Hostname of My ECS Restored to the Original Name After the ECS Is Restarted?

Updated on 2024-09-26 GMT+08:00

The following uses an ECS running CentOS 7 as an example:

  1. Log in to the Linux ECS and view the Cloud-Init configuration file.
  2. In the /etc/cloud/cloud.cfg file, comment out or delete update_hostname.
    NOTE:
    • update_hostname indicates that the hostname is changed in Cloud-Init each time the ECS is restarted.
    • For an ECS created from a public image, Cloud-Init has been installed on it by default. You do not need to manually install Cloud-Init for it. For details about how to modify a private image, see Installing Cloud-Init.
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback