TarsCloud / TarsFramework

Tars Basic service framework
BSD 3-Clause "New" or "Revised" License
200 stars 143 forks source link

linux-install.sh 获取IP异常 #26

Closed forgeyao closed 4 years ago

forgeyao commented 4 years ago

系统:Ubuntu 16.04 LTS linux-install.sh 的 get_host_ip 里的 IP=ifconfig | grep $1 -A3 | grep inet | awk -F':' '{print $2}' | awk '{print $1}' 会获取到 IPv6 的地址头,fe80。导致 fe80 作为参数参入 tars-install.sh 里的 REBUILD

微信截图_20191212142658

ruanshudong commented 4 years ago

截图貌似看不见呢

ruanshudong commented 4 years ago

已经修改, ubuntu16.04 & ubuntu:18.04 都已经支持.