转自:https://www.cnblogs.com/pencile/p/Nginx_http_to_https.html 小目标:在只监听一个端口的情况下,将http访问跳转为https。 一般情况下http协议使用80端口,https协议443端口。要实现http强制转https是非常简单的事, ...
分类:
Web程序 时间:
2020-05-04 13:16:33
阅读次数:
151
进入到nginx.exe所在的目录 然后在nginx根目录下运行 start nginx 在根目录下的操作: ...
nginx 必须启用 启用 --with-stream 模块。 可下载源码编译。 nginx.conf的配置: worker_processes 1; events { worker_connections 1024; } stream { server{ listen 1521 so_keepal ...
分类:
数据库 时间:
2020-05-03 22:01:32
阅读次数:
373
本攻略基于ubuntu1804的版本,服务器用的华为云的服务器,python3(python2已经在2020彻底停止维护了,所以转到python3是必须的)欢迎加我的QQ6398903,或QQ群讨论相关技术 一、准备项目所需要的模块 你需要把开发环境下用到的包信息全部导出 `` pip freeze ...
分类:
其他好文 时间:
2020-05-03 20:33:19
阅读次数:
65
修改访问目录的权限为755 找到Nginx的配置文件nginx.conf,做如下改变: (1)将user nobody; 改为user root; (2)找到 autoindex off 更改为on(Nginx默认是不支持浏览目录的) 我的问题解决。。 ...
分类:
其他好文 时间:
2020-05-03 18:58:51
阅读次数:
57
首先先安装php-fpm, yum install php-fpm 查看 php-fpm.conf [www] listen = /tmp/php-cgi.sock nginx.conf server{ location ~ \.php{fastcgi_pass unix:/tmp/php-cgi. ...
分类:
Web程序 时间:
2020-05-03 18:56:16
阅读次数:
83
1 Dockerfile编写 2 容器部署项目,用nginx做负载均衡 3 私有仓库搭建 ...
分类:
其他好文 时间:
2020-05-03 18:56:01
阅读次数:
69
方法一 which nginx 方法二 nginx -V 方法三 more /etc/init.d/nginx ...
分类:
系统相关 时间:
2020-05-03 18:46:14
阅读次数:
73
Nginx 安装后只有一个程序文件,本身并不提供各种管理程序,它是使用参数和系统信号机制对 Nginx 进程本身进行控制的。 Nginx 的参数包括有如下几个: 使用: /usr/local/nginx/sbin/nginx -参数 -c:使用指定的配置文件而不是conf目录下的nginx.conf ...
分类:
其他好文 时间:
2020-05-03 18:36:27
阅读次数:
60