所需要的东西:
云服务器,自己搞定。
服务器系统:ubuntu14.(之前用的是win2008r2的,一直部署不了)
客户端:自己的电脑啦
客户端需要的软件:
- Filezilla.exe
- vs code
- 微信开发者工具
- mysql
- navicat
提前准备好文本准备进ubantu安装
1 cmd => ssh root@119.***.123.***
C:\Users\Administrator>ssh root@119.***.123.***
root@119.***.123.***'s password:
Welcome to Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-165-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
107 packages can be updated.
79 updates are security updates.
New release '18.04.4 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Welcome to Huawei Cloud Service
出现欢迎说明真的进去了。
2 准备好代码:
首先的引入镜像文件:
(1)阿里云 http://mirrors.aliyun.com/pypi/simple/
(2)豆瓣http://pypi.douban.com/simple/
(3)清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
(4)中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
(5)华中科技大学http://pypi.hustunique.com/
pip install -i https://pypi.doubanio.com/simple/ django
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple django
就按我这样做,别问为什么!
pip install -i https://pypi.doubanio.com/simple/
需要安装的有,
python
django
djangorestframwork
pymysql
bs4
Crypto
requests
hashib
time
datetime
random
xmltodict
json
根据自己需求安装