# 将域名写入hosts文件
echo "127.0.0.1 $input_domain" >> /etc/hosts

头部

sed -i "1i\127.0.0.1 $input_domain" /etc/hosts

相关文章:

  • 2021-05-24
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2022-12-23
  • 2021-07-10
  • 2021-07-23
  • 2022-12-23
相关资源
相似解决方案