-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathsetup.sh
More file actions
32 lines (20 loc) · 830 Bytes
/
setup.sh
File metadata and controls
32 lines (20 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
#安装云监工环境脚本
#sanzuwu@gamil.com
#脚本适用ubuntu14、debian8
#更新源
sudo apt-get update
#安装python3.4
sudo apt-get install -y python3.4 python3.4-dev
#安装pip,确保本脚本和get-pip.py 文件在一个文件夹
BASE_DIR="$( cd "$( dirname "$0" )" && pwd )"
sudo chmod +x ${BASE_DIR}/get-pip.py
sudo python3.4 ${BASE_DIR}/get-pip.py
sudo pip3.4 install redis && sudo pip3.4 install requests && sudo pip3.4 install flask
#安装redis-server
sudo apt-get install -y redis-server
#运行云监工
sudo chmod +x ${BASE_DIR}/run.sh && sudo chmod +x ${BASE_DIR}/down.sh && chmod +x ${BASE_DIR}/cron.sh
sudo sh ${BASE_DIR}/run.sh && sh ${BASE_DIR}/cron.sh
#sudo python3.4 ${BASE_DIR}/crysadm/crysadm/crydadm_hlper.py &
#sudo python3.4 ${BASE_DIR}/crysadm/crysadm/crydadm.py &