Saturday, September 6, 2014

how to change localhost name In mac

Just Open Your Terminal and type


macbooks-mbp:~ User$ sudo nano /private/etc/hosts

and change 127.0.0.1 localhost to


127.0.0.1 [name] localhost


 GNU nano 2.0.6 File: /private/etc/hosts 

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 xpeed localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost


I have Use name xpeed for my localhost name.

You can now use both [name] and localhost ;)


 



how to change localhost name In mac

No comments:

Post a Comment