CentOS 7 中使用hostnamectl设置主机名

CentOS 7 中使用hostnamectl设置主机名

Apr. 5, 2016 by

hostnamectl [OPTIONS…] COMMAND … Query or change system hostname. -h –help Show this help –version Show package version –transient Only set transient hostname –static Only set static hostname –pretty Only set pretty hostname -P –privileged Acquire privileges before execution –no-ask-password