新服务器安装kinbana命令

1 cd /etc/apt/
2 ls
3 rm sources.list
4 vim sources.list
5 apt update
6 cd ../netplan/
7 ls
8 vim 00-installer-config.yaml
9 apt update
10 vim 00-installer-config.yaml
11 netplan apply
12 ping www.baidu.com
13 ping 114.114.114.114
14 ping 172.16.3.21
15 ping 114.114.114.114
16 reboot now
17 ping 114.114.114.114
18 ifconfig
19 vim /etc/netplan/00-installer-config.yaml
20 netplan apply
21 ping 114.114.114.114
22 apt update
23 apt update -y
24 apt upgrade -y
25 curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
26 sudo mkdir -p /etc/docker
27 sudo tee /etc/docker/daemon.json <<-'EOF'
28 {
29 "registry-mirrors": ["https://jdea37qa.mirror.aliyuncs.com"]
30 }
31 EOF
32 sudo systemctl daemon-reload
33 sudo systemctl restart docker
34 vim /etc/sysctl.conf
35 sysctl -p
36 mkdir /data
37 reboot now
38 cd /data/
39 ls
40 mkdir elk
41 cd elk/
42 ls
43 docker run -v $PWD/elasticsearch:/var/lib/elasticsearch -d --restart=always -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk sebp/elk:793
44 docker ps -a
45 docker exec -it elk /bin/bash
46 docker restart elk
47 ls
48 vim dellogs.sh
49 crontab -e
50 docker ps -a
51 ls
52 vim dellogs.sh
53 chrom -x dellogs.sh
54 chmod -x dellogs.sh
55 ls -l
56 chmod +x dellogs.sh
57 ls -l
58 df -h

上一篇:Elasticsearch学习(十)ELK安装及使用


下一篇:昔有打码之辛,今有ELK之便,潸然泪下