suse 12.5 hostname 更改

 suse 12.5 hostname 更改命令:

三种定义的主机名:静态的(static),瞬态的(transient),和灵活的(pretty)。

node01:~ # hostnamectl -h
hostnamectl [OPTIONS...] COMMAND ...

Query or change system hostname.

  -h --help              Show this help
     --version           Show package version
     --no-ask-password   Do not prompt for password
  -H --host=[USER@]HOST  Operate on remote host
  -M --machine=CONTAINER Operate on local container
     --transient         Only set transient hostname
     --static            Only set static hostname
     --pretty            Only set pretty hostname

Commands:
  status                 Show current hostname settings
  set-hostname NAME      Set system hostname
  set-icon-name NAME     Set icon name for host
  set-chassis NAME       Set chassis type for host
  set-deployment NAME    Set deployment environment for host
  set-location NAME      Set location for host

上一篇:Vscode 在 Linux 上配置远程开发


下一篇:Linux服务器java项目启动异常慢