shell 获取当前路径 和 2>&1 &的作用

#!/bin/bash
current_path=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
nohup $current_path/clickhouse_sinker -conf $current_path/config >> $current_path/sinker.log 2>&1 &
#这里杀死程序优先使用kill -15(会先释放资源),然后再使用kill -9(强制退出)
人生如修仙,岂是一日间。何时登临顶,上善若水前。
原文地址:https://www.cnblogs.com/f-society/p/13615213.html