颇妙 颇妙
3年前
环境信息
环境信息开发环境:macOS12.1开发IDE工具:IntelliJIDEA2021.3.2(CommunityEdition)开发JDK环境:OracleOpenJDKversion17.0.2生产环境:Ubuntu20.04.3LTS数据库:Dockermysql(8.0.28)Nginx:Dockernginx(1.21.6)生产JDK环境:Dockeropenjdk(17.0.2)SFTP:Dockeratmoz/sftp:latest
Wesley13 Wesley13
3年前
Nginx解决跨域问题(CORS)
前言CORS(CrossOriginResourceSharing)跨域资源共享,是一种允许当前域(domain)的资源(比如html/js/webservice)被其他域(domain)的脚本请求访问的机制,通常由于同域安全策略(thesameoriginsecuritypolicy)浏览器会禁止这种跨域请求。 如:a.c
Stella981 Stella981
3年前
CDN调度器HAProxy、Nginx、Varnish
CDN功能如下:1、将全网IP分为若干个IP段组,分组的依据通常是运营商或者地域,目的是让相同网络环境中的用户聚集到相同的组内;2、依据CDN服务器们的网络和容量,确定哪些CDN服务器适合服务哪些IP段组;3、根据以上两步得到的结论,让用户去最适合他的服务器得到服务。说白了,就是根据用户不同的来源IP把用户请求重定向到不同的CDN服务器
Stella981 Stella981
3年前
Nginx + Lua + Cookie 控制灰度发布
NginxLuaCookie控制灰度发布一、下载安装1、安装OpenResty下载页(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fopenresty.org%2Fcn%2Fdownload.html)、openresty1.15.8.2.tar.
Stella981 Stella981
3年前
Linux下查看Nginx Apache MySQL的并发连接数和连接状态
1、查看Web服务器(Nginx(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.ha97.com%2Fcategory%2Fwebserver%2Fnginx) Apache(https://www.oschina.net/action/GoToLink?urlhttp%
Stella981 Stella981
3年前
Linux 安装Nginx并支持SSL
参考https://blog.csdn.net/bjnihao/article/details/52370089(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fblog.csdn.net%2Fbjnihao%2Farticle%2Fdetails%2F52370089)下
Stella981 Stella981
3年前
Nginx系列之代理之后无法加载静态资源处理方法
最近在跟https域名升级问题,遇到一个麻烦的任务,因为域名由另外的公司负责,对方公司开了一个nginx服务器做了类似的转发location/zhzw{proxy_passhttp://127.0.0.1:81/zhzw;rewrite^/zhzw
Stella981 Stella981
3年前
Nginx 反向代理部署NodeJs应用
server {    listen       80 default_server;    server_name  _;    charset koi8r;    access_log  logs/host.access.log  main;     Load
Stella981 Stella981
3年前
Linux——nginx(以Ubuntu为例,不同系统也就安装和配置文件的的位置不一样,其他都一样的)
下载安装下载:猛击这里(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fpan.baidu.com%2Fs%2F1jIY49kM)安装:1、进入nginx目录执行:$./configureprefix/usr/local/nginxwith
Stella981 Stella981
3年前
Nginx服务器开箱体验
!profile(http://uploadimages.jianshu.io/upload_images/9824247c51f55d65a82fcb3.jpg?imageMogr2/autoorient/strip%7CimageView2/2/w/1240)概述Nginx是高性能的轻量级WEB服务器,