Mac怎样添加本地域名解释

By admin, 3 二月, 2015

Web开发者同时开发多个站点的时候,通常需要在本地添加虚拟域名的解释。Mac下修改域名解释的文件不是Linux的/etc/hosts,而是/private/etc/hosts

下面是一个配置的例子:


127.0.0.1 site1, site2, localhost

参考:http://support.apple.com/kb/TA27291

标签

评论1

Restricted HTML

  • 允许的HTML标签:<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <img src>
  • 自动断行和分段。
  • 网页和电子邮件地址自动转换为链接。
验证码
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
请输入"Drupal10"

匿名 (未验证)

5 years 11 months 之前