随笔分类 - nginx
摘要:下载安装 https://github.com/acmesh-official/acme.sh nginx配置 server { listen 80 default_server; root /usr/local/nginx/html; location / { return 404; } loca
阅读全文
摘要:https://www.cnblogs.com/lidabo/p/7099501.html
阅读全文
摘要:1. 安装 pip3 install uwsgi 2. uwsgi配置信息 创建一个uwsgi.ini文件 [uwsgi] socket=/opt/script/uwsgi.sock 启动程序时所使用的地址和端口,通常在本地运行flask项目 http=127.0.0.1:5002 callable
阅读全文
摘要:近期在努力把自己的项目从python2转到python3上,因为生产环境无法抛弃centos7,所以只好在centos7上安装了python3。装好了python3,将python命令软连接改成python3的,同时也将pip指向了python3版本的pip。一切都很顺利,但在用uwsgi启动一个d
阅读全文
摘要:背景: 项目开发中用到了微信小程序,但是服务器配置URL必须是HTTPS,所以需要通过配置nginx的SSL模块来支持HTTPS访问,也就是说,要做一个网站域名为 dmsdbj.com 要求通过HTTPS://dmsdbj.com进行访问. SSL英文名为Secure Socket Layer,安全
阅读全文