centos下载anaconda
wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
bash Anaconda3-5.1.0-Linux-x86_64.sh
更新数据库
python manage.py makemigrations
python manage.py migrate
需要安装
pip install Pillow
pip install django-cors-headers
虚拟环境
配置uwsgi
pip install uwsgi
pip install uwsgitop
[uwsgi]
# socket = ''
http = 172.16.253.106:8888
chdir = /home/it/image
wsgi-file=image/wsgi.py
processes = 4
threads=2
master = True
pidfile=uwsgi.pid
daemonize=uwsgi.log
安装 uwsgi 报错
yum groupinstall "Development Tools"
yum install python-devel
and then:
pip install uwsgi
netstat -ntlp
跨域请求配置
跨域