sh 壳snippets.bash
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 壳snippets.bash相关的知识,希望对你有一定的参考价值。
#!/usr/bin/env bash
### Ubuntu Xenial ###
## Docker ##
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
## Git ##
sudo add-apt-repository ppa:git-core/ppa
## MariaDB ##
# sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
# sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu xenial main'
## Node.js ##
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
## nginx ##
wget http://nginx.org/keys/nginx_signing.key | sudo apt-key add
echo deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx | sudo tee /etc/apt/sources.list.d/nginx.list
echo deb-src http://nginx.org/packages/mainline/ubuntu/ xenial nginx | sudo tee /etc/apt/sources.list.d/nginx.list
以上是关于sh 壳snippets.bash的主要内容,如果未能解决你的问题,请参考以下文章
sh 大脚壳片段
sh 壳变量
sh 壳时间获取
sh 自我终止壳
sh 鱼壳功能
sh 领事事件壳模板