14
2025
02

armbian 改主机名

  1. Login to your server: ssh user@server-name

  2. Become a root user using either sudo -s or su -

  3. To set the hostname to server1, run: hostnamectl set-hostname server1

  4. Edit the file /etc/hosts and update entries: vi /etc/hosts

  5. Verify it by running the hostnamectl command again.

hostnamectl set-hostname server1


« 上一篇 下一篇 »