更改获取ip的方式
This commit is contained in:
parent
e12877c3fb
commit
50bb36f2ed
|
@ -4,7 +4,7 @@ logger:
|
||||||
keepHours: 2
|
keepHours: 2
|
||||||
identity:
|
identity:
|
||||||
specify: ""
|
specify: ""
|
||||||
shell: hostname -i
|
shell: ifconfig `route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|awk -F ':' '{print $NF}'|head -n 1
|
||||||
sys:
|
sys:
|
||||||
# timeout in ms
|
# timeout in ms
|
||||||
# interval in second
|
# interval in second
|
||||||
|
|
|
@ -4,4 +4,4 @@ logger:
|
||||||
keepHours: 2
|
keepHours: 2
|
||||||
identity:
|
identity:
|
||||||
specify: ""
|
specify: ""
|
||||||
shell: hostname -i
|
shell: ifconfig `route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|awk -F ':' '{print $NF}'|head -n 1
|
||||||
|
|
|
@ -14,7 +14,7 @@ redis:
|
||||||
|
|
||||||
identity:
|
identity:
|
||||||
specify: ""
|
specify: ""
|
||||||
shell: hostname -i
|
shell: ifconfig `route|grep '^default'|awk '{print $NF}'`|grep inet|awk '{print $2}'|awk -F ':' '{print $NF}'|head -n 1
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
dir: logs/judge
|
dir: logs/judge
|
||||||
|
|
Loading…
Reference in New Issue