#!/bin/bash #设置Host sudo echo "127.0.0.1 sample.housekeeper.local.huawei.com" >> /etc/hosts echo "设置host完成"