杀死yarn任务
yarn application --list|grep appName|awk '{print $1}'|xargs yarn application -kill
服务器之间传文件
# 把本地a.txt文件传到目标服务器的/opt/modul/ 目录下
scp /opt/modul/a.txt root@192.168.1.1:/opt/modul/
bind already in use
sudo netstat -tanlp|grep influx
tar/zip/rar包的拆分与合并
拆分 tar -czf - big.tar.gz | split -b 1024m -d - small.
合并 cat small.* | tar -xzf -
后台启动
一般会组合使用: nohup [xxx 命令操作]> file 2>&1 &,表示将 xxx 命令运行的结
果输出到 file 中,并保持命令启动的进程在后台运行。