Python:
apt install python3-pip
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
apt-get install python3.6
python --version
git(配置不每次输入密码和用户名):
git config --global credential.helper store
nodejs:
wget -qO- https://deb.nodesource.com/setup_11.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo node -v
apt-get install npm
sudo npm install npm@latest -g
nignx:
apt-get install nginx
/etc/nginx/conf.d/
Golang:
wget https://dl.google.com/go/go1.12.5.linux-amd64.tar.gz
tar -xzf go1.12.5.linux-amd64.tar.gz -C /usr/local
vim .profile
export PATH=$PATH:/usr/local/go/bin
source .profile
Mysql:
apt-get install mysql-server mysql-client
CI:
go get -d github.com/ouqiang/gocron
cd ~/go/src/github.com/ouqiang/gocron/
export GO111MODULE=on
export GOPROXY=https://mirrors.aliyun.com/goproxy/
make
cd bin/
nohup ./gocron web > nohup.out 2>&1 &
nohup ./gocron-node -allow-root > node.out 2>&1 &