# 将域名写入hosts文件 echo "127.0.0.1 $input_domain" >> /etc/hosts
sed -i "1i127.0.0.1 $input_domain" /etc/hosts