1. 程式人生 > 實用技巧 >阿里雲伺服器--Linux搭建blast本地版

阿里雲伺服器--Linux搭建blast本地版

環境

  1. 阿里雲ECS伺服器
  2. 系統:Ubuntu 20.04

下載blast程式碼

官網連結

https://blast.ncbi.nlm.nih.gov/Blast.cgi

截圖如下

下載介面

ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/

選擇LInux系統,如圖所示

右鍵->複製連結地址 獲得如下的地址

ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/LATEST/ncbi-blast-2.10.1+-x64-linux.tar.gz

實測在伺服器直接wget下載速度很慢,建議在本機用迅雷下載,然後用FTP傳輸工具傳到伺服器

如果使用FTP已經傳輸了,請跳過下面的步驟

  1. 這裡我已經下載好了,因為MAC系統沒找到好的FTP工具,所以我使用SCP命令傳輸到伺服器

    scp ncbi-blast-2.10.1+-x64-linux.tar.gz root@伺服器的ip地址:存放的目錄
    例如
    scp ncbi-blast-2.10.1+-x64-linux.tar.gz [email protected]:/root/
    

使用XSEHLL等遠端工具連線伺服器,在終端輸入以下命令

cd /切換到剛剛傳輸的路徑  例如 cd /root
# 解壓檔案
tar -zxvf ncbi-blast-2.10.1+-x64-linux.tar.gz 
# 重新命名壓縮檔案為blast
mv ncbi-blast-2.10.1+ blast
# 配置環境變數
echo "PATH=$PATH:~/剛剛傳輸的路徑/blast/bin" >> ~/.bashrc
例如 
echo "PATH=$PATH:~/root/blast/bin" >> ~/.bashrc
# source 
source ~/.bashrc
# 檢測是否安裝成功
blastn -h # 輸出的結果如下圖

至此blast服務安裝成功。

注:本部落格基於官網文件和B站UP主的視訊完成 XiongdyMishika

在此也對UP主:XiongdyMishika 感謝!