ubuntu ~/.bash_history
sudo apt-get update
sudo apt-get install python-pip
sudo pip install Django==1.7.1
sudo apt-get install -y python-dev
sudo apt-get install -y libevent-dev
sudo apt-get install uwsgi
sudo apt-get install -y nginx
sudo apt-get install pillow
cd /etc/nginx/
mkdir django
cd django/
git clone dir
cd dir
python manage.py makemigrations
python manage.py migrates
python manage.py createsuperuser
wssgi --ini /etc/nginx/django/dir/uwsgi.ini
cd /var/log
mkdir uwsgi
cd uwsgi/
vim dir.log
cd /etc/nginx/sites-enabled/
ln -s /etc/nginx/django/dir/nginx.conf .
rm default
service nginx restart
netstat -lpnt
killall -9 uwsgi
uwsgi --ini uwsgi.ini
python manage.py collectstatic
cp 静态文件过来
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。