forked from douban/code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfedora.sh
More file actions
executable file
·22 lines (16 loc) · 534 Bytes
/
fedora.sh
File metadata and controls
executable file
·22 lines (16 loc) · 534 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
#Get generic function
. common.sh
echo "Install needed package.This may take some time..."
sudo yum install -y -q git python-virtualenv python-devel memcached gcc gcc-c++ redis-server
echo "Install mysql..."
sudo yum install mysql-server mysql mysql-devel
#fedora only this method
sudo service mysqld start
echo "Setup memcached port to 11311..."
sudo sed -i "s/PORT=11211/PORT=11311/" /etc/sysconfig/memcached
sudo service memcached restart
echo "Install code..."
install_code
echo "Start app..."
start_app