1.要求 host_messages.sh 显示当前主机的名称,ip登陆当前主机的用户 hostname: xxxxx ipaddress: xxxx.xxxx.xxx.xxx username: root 2.脚本 3.运行结果