nginx反向代理docker容器化django
摘要:1.新建Dockerfile FROM python:3.8.5 MAINTAINER ChsterChen ENV PYTHONUNBUFFERED 1 COPY pip.conf /root/.pip/pip.conf RUN mkdir -p /var/www/html/student_api
阅读全文
posted @
2020-12-05 20:38
chester·chen
阅读(525)
推荐(0)
nginx Host值设置
摘要:$server_port :nigix监听的端口 $proxy_port : 服务器真正访问的端口 #设置请求头"Host"值(为入口域名和端口) proxy_set_header Host $http_host; #设置为upstream对应服务器(IP和端口) proxy_set_header
阅读全文
posted @
2020-12-05 20:11
chester·chen
阅读(3552)
推荐(0)
python 生成虚拟环境requirement.txt
摘要:# 在项目根目录中,打开终端执行以下命令 # 生成 requirements.txt 文件 pip3 freeze > requirements.txt # 安装依赖文件 pip3 install -r /var/www/project/requriements.txt
阅读全文
posted @
2020-12-05 09:25
chester·chen
阅读(420)
推荐(0)
ansible playbook 安装docker
摘要:1.新增host配置到/etc/ansible/hosts文件中 [docker] 192.168.43.95 2.配置无密码登录 # 配置ssh,默认rsa加密,保存目录(公钥)~/.ssh/id_rsa.pub ssh-keygen -t rsa # 配置无密码登陆,这里需要分别4次发送至4台服
阅读全文
posted @
2020-12-05 09:04
chester·chen
阅读(1041)
推荐(0)
centos7 开机自动执行脚本
摘要:1、因为在centos7中/etc/rc.d/rc.local的权限被降低了,所以需要赋予其可执行权 chmod +x /etc/rc.d/rc.local 2、赋予脚本可执行权限假设/usr/local/script/autostart.sh是你的脚本路径,给予执行权限 chmod +x /usr
阅读全文
posted @
2020-12-05 08:17
chester·chen
阅读(430)
推荐(0)
Quartz.net
摘要:https://www.cnblogs.com/yaopengfei/category/1164016.html
阅读全文
posted @
2020-12-02 14:15
chester·chen
阅读(96)
推荐(0)