-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUbuntu_dev.sh
More file actions
19 lines (19 loc) · 823 Bytes
/
Ubuntu_dev.sh
File metadata and controls
19 lines (19 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#/bin/bash
source='mirrors.aliyun.com' #镜像源
mysql='mysql-apt-config_0.6.0-1_all.deb' #mysql源
node=4 #选用4或5
sudo sed -ig "s@//[^/]*@//$source@" /etc/apt/sources.list
sudo apt-get update
sudo add-apt-repository -y ppa:git-core/ppa
sudo add-apt-repository -y ppa:nginx/development
sudo add-apt-repository -y ppa:chris-lea/redis-server
wget http://dev.mysql.com/get/$mysql | sudo dpkg -i $mysql
if [[ $node -eq 4 ]]; then
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
fi
if [[ $node -eq 5 ]]; then
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
fi
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y build-essential python-dev mysql-server nginx vim git nload htop iotop iftop redis-server tmux screen fail2ban nodejs module-assistant gcc-multilib g++-multilib