更改获取ip的方式
This commit is contained in:
parent
e12877c3fb
commit
50bb36f2ed
|
@ -4,7 +4,7 @@ logger:
|
|||
keepHours: 2
|
||||
identity:
|
||||
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:
|
||||
# timeout in ms
|
||||
# interval in second
|
||||
|
|
|
@ -4,4 +4,4 @@ logger:
|
|||
keepHours: 2
|
||||
identity:
|
||||
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:
|
||||
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:
|
||||
dir: logs/judge
|
||||
|
|
Loading…
Reference in New Issue