在使用python 运行gateway项目时候,遇到报错:nodename nor servname provided。
解决办法:
System preferences – sharing – Computer name,这里的名称,与/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 localhost
255.255.255.255 broadcasthost
::1 localhost
0.0.0.0 your_name-MacBook-Pro.local