随笔分类 -  上线依赖及服务器配置

摘要:安装uwsgi 1)在真实环境下安装 pip3 install uwsgi 2)建立软连接 ln -s /usr/local/python3/bin/uwsgi /usr/bin/uwsgi 安装nginx 1)前往用户根目录 >: cd ~ 2)下载nginx1.13.7 >: wget http 阅读全文
posted @ 2021-01-25 14:50 小王八+1 阅读(101) 评论(0) 推荐(0)
摘要:更新系统软件包 >: yum update -y 安装软件管理包和可能使用的依赖 >: yum -y groupinstall "Development tools">: yum install openssl-devel bzip2-devel expat-devel gdbm-devel rea 阅读全文
posted @ 2021-01-25 14:46 小王八+1 阅读(98) 评论(0) 推荐(0)
摘要:1、mysql安装 1)前往用户根目录 >: cd ~ 2)下载mysql57 >: wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm 3)安装mysql57 >: yum -y install mys 阅读全文
posted @ 2021-01-25 14:25 小王八+1 阅读(215) 评论(0) 推荐(0)
摘要:1.chrome yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm 2.安装必要的库 yum install mesa-libOSMesa-devel gnu-free-san 阅读全文
posted @ 2021-01-11 12:46 小王八+1 阅读(216) 评论(0) 推荐(0)
摘要:wget https://nodejs.org/dist/v8.9.1/node-v8.9.1-linux-x64.tar.xz 创建一个文件夹node mkdir node 解压: tar xvf node-v8.9.1-linux-x64.tar.xz --strip-components=1 阅读全文
posted @ 2021-01-11 12:27 小王八+1 阅读(180) 评论(0) 推荐(0)
摘要:首先作为web开发必须要有web服务器, 三者区别: nginx是web服务器,可以做负载均衡,正反向代理, wsgi是web服务协议,所有web访问必须遵守 Web服务器网关接口(Python Web Server Gateway Interface,缩写为WSGI)是为Python语言定义的We 阅读全文
posted @ 2020-04-12 13:10 小王八+1 阅读(437) 评论(0) 推荐(0)
摘要:一、介绍 """ 1、采用国内源,加速下载模块的速度 2、常用pip源: -- 豆瓣:https://pypi.douban.com/simple -- 阿里:https://mirrors.aliyun.com/pypi/simple 3、加速安装的命令: -- >: pip install -i 阅读全文
posted @ 2019-12-06 11:26 小王八+1 阅读(117) 评论(0) 推荐(0)
摘要:虚拟环境配置 cmd敲 workon 确认是否配置环境 1、配置 安装 # 建议使用pip3安装到python3环境下 pip3 install virtualenv pip3 install virtualenvwrapper-win macOS系统 # 建议使用pip3安装到python3环境下 阅读全文
posted @ 2019-11-15 12:14 小王八+1 阅读(314) 评论(0) 推荐(0)
摘要:https://github.com/ottoyiu/django-cors-headers/ 安装django-cors-headers模块 在settings.py中配置# 注册appINSTALLED_APPS = [ ... 'corsheaders']# 添加中间件MIDDLEWARE = 阅读全文
posted @ 2019-10-27 17:39 小王八+1 阅读(120) 评论(0) 推荐(0)