歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux基礎知識 >> Ubuntu Linux 7.10 系統下改變域名映射

Ubuntu Linux 7.10 系統下改變域名映射

日期:2017/3/2 15:47:36   编辑:Linux基礎知識
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了。 改變域名映射成功。

Copyright © Linux教程網 All Rights Reserved