Can we set easy-to-remember hostnames for EC2 instances?

后端 未结 11 1090
一向
一向 2021-01-29 19:42

I\'m running a couple of standard Fedora instances on EC2. I feel the public hostnames of the instances assigned by Amazon are too weird and hard to remember. I\'d like to chang

11条回答
  •  没有蜡笔的小新
    2021-01-29 20:30

    sudo hostname *yourdesiredhostnamehere*
    
    sudo /etc/init.d/networking restart
    

    then the hostname is changed. On my server all other services like apache and postfix works. Server is Ubuntu 12.04 LTS

提交回复
热议问题