1:找到 ‘/etc/host.conf’改變權限,上面講過的。chmod 777 host.conf
2:編輯host.conf內容如下:
# The “order” line is only used by old versions of the C library.
order hosts,bind
multi on
#下面這句是加的,這就是域名映射。把sagic映射成localhost,(就是在瀏覽器里面輸入sagic里其實是到了localhost)
sagic localhost
這里保存就OK了。 改變域名映射成功。
Ubuntu Linux 7.10 系統下改變域名映射
更新時間: 2008-05-08 14:21:16來源: 粵嵌教育瀏覽量:656