如何配置域名?

60 阅读1分钟

世界上并没有完美的程序,但是我们并不因此而沮丧,因为写程序就是一个不断追求完美的过程。

  1. Linux
    配置:vi /etc/hosts
    [ip] [domain]
    刷新:service network restart
  2. Windows
    配置: C:\Windows\System32\drivers\etc\hosts
    [ip] [domain]
    刷新:ipconfig /flushdns