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 静态文件过来
时间: 2024-10-13 09:41:02