ubuntu
pip install -r requirements.txt
python setup.py develop(可以不要这步)
sudo apt-get install npm
npm config set registry https://registry.npm.taobao.org (配置淘宝的镜像)
sudo npm install -g grunt-cli bower
npm install angular
apt-get install git
sudo ln -s /usr/bin/nodejs /usr/bin/node
npm install
bower install --allow-root
sudo apt-get install mysql-server mysql-client
sudo service mysql restart
sudo iptables -A INPUT -p <tcp OR udp> <--dport OR --sport> <port> -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 8000 -j ACCEPT
(1)、bower
W:
bower EAI_AGAIN Request to https://bower.herokuapp.com/packages/angular failed: getaddrinfo EAI_AGAIN bower.herokuapp.com:443
Q:
npm install angular
(2)
w:
bower ENOGIT git is not installed or not in the PATH
q:
apt-get install git