Skip to content

Instantly share code, notes, and snippets.

@amura2406
Last active February 12, 2017 18:13
Show Gist options
  • Save amura2406/c37b7b926dd50b8dab7e7b3cdd1c284e to your computer and use it in GitHub Desktop.
Save amura2406/c37b7b926dd50b8dab7e7b3cdd1c284e to your computer and use it in GitHub Desktop.
Save Hostname on Mac

Edit hosts File

Open /etc/hosts

Edit and add your custom hostname like the following

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
103.241.24.52   ahaa-api
103.241.24.53   ahaa-redis
103.241.24.54   ahaa-db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment