install nsq

    #!/bin/bash
    src_path="/root/software"
    LOGFILE="/tmp/nsq-install-log"
    FILENAME=nsq-1.2.0.linux-amd64.go1.12.9.tar.gz
    FILEDIR=nsq-1.2.0.linux-amd64.go1.12.9

    cd $src_path

    #wget package
    wget https://s3.amazonaws.com/bitly-downloads/nsq/$FILENAME

    tar -zxvf $FILENAME
    cd $src_path/$FILEDIR/bin
    cp  $src_path/$FILEDIR/bin/* /usr/local/bin/
    ~ nsq -verison