1.查看系统版本
cat /etc/redhat-release
cat /etc/redhat-release
2. 查看磁盘实用情况 df du
3.查看内存 top -Hp 2214
4. 网络配置
vi /etc/hostname
vi /etc/hosts
vi /etc/sysconfig/network-scripts/ifcfgens33
6. sed ‘s/a/b/g’ aaa.txt 替换
7. scp -r aaa.txt elastic@elastic-01:/home/aaa
8. awk -F ':|,' '{print $2, $4, $6}' log
9. nohup bin/elasticsearch> logs/elasticsearch.log 2>&1 &
10. 解压和压缩
tar -zvxf xxx.tar.gz
tar -cvxf aaa.gz /home/elasticsearch
11. 查看压缩包的日志 zgrep zless "aaaa" xxx.tar.gz