1、打开Finder 在菜单中选择【前往】【前往文件夹】
2、使用快捷键Command+Shift+G
3、赋值一份到桌面修改后保存 编写域名指向ip配置,并拖动替换原文件即可
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
## 添加域名与主机映射
192.168.56.20 haoxiansheng.com
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
# Added by Docker Desktop
# To allow the same kube context to work on the host and the container:
127.0.0.1 kubernetes.docker.internal
# End of section
4、启动项目进行访问
http://haoxiansheng.com:9200/
5、参考文章
https://blog.csdn.net/weixin_36445197/article/details/104144026