一、配置环境。
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-srchttp://archive.ubuntu.com/ubuntuxenialmainrestricted#Addedbysoftware-properties
debhttp://mirrors.aliyun.com/ubuntu/xenialmainrestricted
deb-srchttp://mirrors.aliyun.com/ubuntu/xenialmainrestrictedmultiverseuniverse#Addedbysoftware-properties
debhttp://mirrors.aliyun.com/ubuntu/xenial-updatesmainrestricted
deb-srchttp://mirrors.aliyun.com/ubuntu/xenial-updatesmainrestrictedmultiverseuniverse#Addedbysoftware-properties
debhttp://mirrors.aliyun.com/ubuntu/xenialuniverse
debhttp://mirrors.aliyun.com/ubuntu/xenial-updatesuniverse
debhttp://mirrors.aliyun.com/ubuntu/xenialmultiverse
debhttp://mirrors.aliyun.com/ubuntu/xenial-updatesmultiverse
debhttp://mirrors.aliyun.com/ubuntu/xenial-backportsmainrestricteduniversemultiverse
deb-srchttp://mirrors.aliyun.com/ubuntu/xenial-backportsmainrestricteduniversemultiverse#Addedbysoftware-properties
debhttp://archive.canonical.com/ubuntuxenialpartner
deb-srchttp://archive.canonical.com/ubuntuxenialpartner
debhttp://mirrors.aliyun.com/ubuntu/xenial-securitymainrestricted
deb-srchttp://mirrors.aliyun.com/ubuntu/xenial-securitymainrestrictedmultiverseuniverse#Addedbysoftware-properties
debhttp://mirrors.aliyun.com/ubuntu/xenial-securityuniverse
debhttp://mirrors.aliyun.com/ubuntu/xenial-securitymultiverse
3、cURL
cURL是利用URL语法在命令行方式下工作的开源文件传输工具。
cURL是利用URL语法在命令行方式下工作的开源文件传输工具。支持DICT,FILE,FTP,FTPS,Gopher,HTTP,HTTPS,IMAP,IMAPS,LDAP,LDAPS,POP3,POP3S,RTMP,RTSP,SCP,SFTP,SMTP,SMTPS,Telnet and TFTP。
cURL支持SSL证书,HTTP POST,HTTPPUT,FTP上传,基于HTTP的形式上传,代理,cookies,用户+密码验证(基本,摘要,NTLM,协商,Kerberos...),文件传输简历,代理隧道和总线负载。
sudo apt-get install openssl
sudo apt-get install libssl-dev
sudo apt-get install curllibcurl3
如果提示没有curl源
- sudoadd-apt-repositoryppa:costamagnagianfranco/ettercap-stable-backports
- sudoapt-getupdate
- sudoapt-getinstallcurl
4、docker 以及 docker-compose
升级pip
pip install --upgrade pip
pip install docker docker-compose
docker版本高于17.03 docker-compose 版本高于1.8
5、go 1.9版本以上
wget https://www.golangtc.com/static/go/1.9/go1.9.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.9.linux-amd64.tar.gz
vim~/.bashrc 添加
export GOPATH=/opt/go
export GOROOT=/usr/local/go
export GOARCH=386
export GOOS=linux
export GOBIN=$GOROOT/bin/
export GOTOOLS=$GOROOT/pkg/tool/
export PATH=$PATH:$GOBIN:$GOTOOLS
source ~/.bashrc
原文链接:https://www.f2er.com/ubuntu/351309.html