💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` #DATE=$(date +%Y%m%d%H%M%S) DATE=$(date +%Y%m%d%H) DIR=/home/golang/btc-mine JARFILE=btc-mine logfile=/home/log/bh/btc-mine log=btc-mine.log if [ ! -d $DIR/backup ];then mkdir -p $DIR/backup fi cd $DIR # pid=`ps -ef |grep ./bh-go-duoduoke | grep -v grep | awk '{print $2}'` # echo "---------------" # for id in $pid # do # kill -9 $id # echo "killed $id" # break # done echo "---------------" echo "授予当前用户权限" echo "执行....." cp $JARFILE backup/$DATE$JARFILE cd $DIR docker build --rm -t btc-mine . docker images|grep none|awk '{print $3 }'|xargs docker rmi cd $logfile cp $log backup/$DATE$log cd $DIR docker-compose down echo "docker-compose down success" docker-compose up -d echo "docker-compose up success" #> /home/log/bh/bh-go-duoduoke/bh-go-duoduoke.log & # docker logs -f btc-mine_server1_1 > /home/log/bh/btc-mine/btc-mine.log & #if [ $? = 0 ];then # sleep 20 # tail -n 50 /home/log/bh/bh-go-duoduoke/bh-go-duoduoke.log #fi cd /home/log/bh/btc-mine/backup/ # ls -lt|awk 'NR>7{print $NF}'|xargs rm -rf #nohup ./$JARFILE > run.log 2>&1 & #if [ $? = 0 ];then # sleep 20 # tail -n 50 /home/golang/bh-go-server-sms/run.log & #fi cd $DIR/backup/ # ls -lt|awk 'NR>5{print $NF}'|xargs rm -rf echo "执行成功" ```