线偶

线偶的IT笔记

Logstash 的简单使用

1. install logstash refer to logstash document 2. logstash example config file 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 input { tcp { port => 12345 codec => "json_lines" } } filter{ grok { match => ["message", "%{TIMESTAMP_ISO8601:logdate}"]

在 Windows 上调试 Redis

1. install wsl open Microsoft Store, then search ubuntu and click to install it. open terminal 1 2 3 4 5 6 7 8 9 10 11 12 # list all linux subsystem wsl --list # set default linux subsystem, then you can input 'wsl' to inter system wsl --set-default ubuntu # enter default linux subsystem wsl # install cmake, g++, gcc,gdb cd /usr/local

在 Docker 上安装 Nfs

install nfs in docker 1. create share directory used by nfs 1 mkdir -p /home/ooooo/shared/nfs 2. create exports.txt used by nfs This the exports.txt mainly used to mount dir (path in the container ) and permission. for example: It indicates read only for all ip. 1 2 vim /home/ooooo/exports.txt /home/ooooo/shared/nfs *(ro,no_subtree_check) 3. execute docker command 1 2 3 4 5 6 7 8 9 10 11 12 13 docker run
0%