第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

在window系統(tǒng)啟動(dòng) filebeat head 命令 問(wèn)題

window 系統(tǒng)可以使用什么命令替代,head

正在回答

4 回答

windows 下可以替代 head 的命令是 gc

https://stackoverflow.com/questions/9682024/how-to-do-what-head-tail-more-less-sed-do-in-powershell

gc log.txt | select -first 10 # head

gc -TotalCount 10 log.txt ? ? # also head

gc log.txt | select -last 10 ?# tail

gc -Tail 10 log.txt ? ? ? ? ? # also tail (since PSv3), also much faster than above option

gc log.txt | more ? ? ? ? ? ? # or less if you have it installed

gc log.txt | %{ $_ -replace '\d+', '($0)' } ? ? ? ? # sed


0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

sunyaox 提問(wèn)者

謝謝!
2017-12-01 回復(fù) 有任何疑惑可以回復(fù)我~

Get-Content nginx.log -TotalCount 2|./filebeat -e -c ngnix.yml


0 回復(fù) 有任何疑惑可以回復(fù)我~
  1. 進(jìn)入到解壓的filebeat-6.0.0-windows-x86_64下,然后將nginx.yml拷貝到目錄下。

  2. 打開(kāi)dos窗口切換目錄到filebeat-6.0.0-windows-x86_64,執(zhí)行輸入命令? filebeat -e -c nginx.yml? 回車。

  3. 將nginx.log的兩條日志內(nèi)容,粘貼到啟動(dòng)的到dos窗口,就可以了。

2 回復(fù) 有任何疑惑可以回復(fù)我~

然后呢

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

在window系統(tǒng)啟動(dòng) filebeat head 命令 問(wèn)題

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)