1.安裝Nginxpython
sudo apt-get install nginxmysql
2. 安裝python3nginx
ubuntu 通常自帶python若是沒有sql
3.配置項目環境django
3.1 安裝djangoubuntu
python3 -m pip install django==2.0.5rest
3.2 安裝djangorestframeworkip
python3 -m pip install djangorestframeworkget
3.3 安裝pymysqlpip
python3 -m pip install pymysql
3.4 安裝Pillow
python3 -m pip install Pillow