随笔分类 -  nginx技术

yum方式安装nginx
摘要:转载地址: https://blog.csdn.net/qq_34200979/article/details/123016644 1、添加CentOS 7 Nginx yum资源库 [root@localhost ~]# rpm -Uvh http://nginx.org/packages/cen 阅读全文

posted @ 2023-01-17 13:39 四海骄阳 阅读(288) 评论(0) 推荐(0)

中间件操作命令
摘要:http://t.zoukankan.com/forest-sunshine-p-14357115.html 一、重启activemq服务 1.查看服务:ps -ef | grep activemq 2.查看服务目录:ll /proc/28317 3.进入服务目录 停止服务:./activemq s 阅读全文

posted @ 2023-01-12 09:37 四海骄阳 阅读(659) 评论(0) 推荐(0)

Nginx SSL证书部署指南
摘要:https://help.xinruiyun.cn/doc/482-698.html 一、 安装 SSL 证书的环境 1.1 SSl 证书安装环境简介 Centos 6.4 操作系统;Nginx 1.9.1;Openssl 1.0.1+;SSL 证书一张(备注:本指南使用 s.wosign.com  阅读全文

posted @ 2022-11-28 22:14 四海骄阳 阅读(1288) 评论(0) 推荐(0)

monitor.sh
摘要:#!/bin/bash#获取cpu使用率cpuUsage=`top -b -n 1 |grep Cpu | awk '{print $2}' |awk -F. '{print $1}'`#获取磁盘使用率data_name="/dev/vda1"diskUsage=`df -h | grep $dat 阅读全文

posted @ 2022-08-19 09:29 四海骄阳 阅读(35) 评论(0) 推荐(0)

统计linux nginx访问次数及并发连接数
摘要:https://www.cnblogs.com/shiqing-zhang/articles/14888827.html 访问量统计 1.根据访问IP统计UV awk '{print $1}' access.log|sort | uniq -c |wc -l 2.统计访问URL统计PV awk '{ 阅读全文

posted @ 2022-08-19 09:09 四海骄阳 阅读(2666) 评论(0) 推荐(0)

nginx指定配置文件启动
摘要:https://blog.csdn.net/csdndd521/article/details/124503973 启动方法:/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf – /sbin/nginx 所在路径 -t - 阅读全文

posted @ 2022-07-19 08:50 四海骄阳 阅读(1441) 评论(0) 推荐(0)

Windows服务启动nginx,并按日期切割日志_验证OK
摘要:https://www.ucloud.cn/yun/39345.html https://blog.csdn.net/lanwangxia/article/details/106903174 http://t.zoukankan.com/xiaoxiangpaou-p-15549776.html @ 阅读全文

posted @ 2022-06-09 16:04 四海骄阳 阅读(592) 评论(0) 推荐(0)

LVS与Nginx区别
摘要:https://blog.csdn.net/zzz127333092/article/details/83827005 https://blog.csdn.net/wh_huan/article/details/106627091 一、lvs的优势: 1.抗负载能力强,因为lvs工作方式的逻辑是非常 阅读全文

posted @ 2022-04-07 14:31 四海骄阳 阅读(276) 评论(0) 推荐(0)

nignx proxy_redirect 302
摘要:# server { listen 443 ssl; server_name localhost; charset utf8; ssl_certificate full_chain.pem; ssl_certificate_key private.key; ssl_session_cache sha 阅读全文

posted @ 2022-03-10 09:27 四海骄阳 阅读(137) 评论(0) 推荐(0)

nginx(https)代理问题
摘要:https://blog.csdn.net/wangzs1234/article/details/108096052 问题描述: nginx代理tomcat服务器,访问Nginx用Https,代理用http,但是tomcat重定向的页面无法访问 流程: 问题描述:用户–https–>Nginx–ht 阅读全文

posted @ 2022-03-10 08:48 四海骄阳 阅读(288) 评论(0) 推荐(0)

正确的Nginx跨域配置(后端Nginx CORS跨域配置、CORS设置,后端允许跨域请求)
摘要:https://blog.csdn.net/envon123/article/details/83270277 最近连续两个朋友问我跨域相关问题,我猜想可能不少朋友也遇到类似问题,我打算写个博客聊一下我实际使用的配置, 先说明一下,我并不太了解这配置,没精力去了解太多,但我觉得其中有一些关键的小注意 阅读全文

posted @ 2022-03-10 08:35 四海骄阳 阅读(25632) 评论(0) 推荐(1)

CentOS7升级OpenSSL版本 前置机Linux安装Nginx
摘要:https://www.cnblogs.com/itbsl/p/11275728.html CentOS7升级OpenSSL版本 1.CentOS7.6默认安装的openssl版本为 # 查看openssl版本 openssl version 2.下载最新的openssl wget https:// 阅读全文

posted @ 2022-01-13 15:23 四海骄阳 阅读(208) 评论(0) 推荐(0)

nginx重试机制proxy_next_upstream
摘要:https://blog.csdn.net/weixin_34388207/article/details/93050741 nginx作为反向代理服务器,后端RS有多台服务器,上层通过一定机制保证容错和负载均衡。 nginx的重试机制就是容错的一种 官方链接:http://nginx.org/en 阅读全文

posted @ 2022-01-06 17:41 四海骄阳 阅读(435) 评论(0) 推荐(0)

Windows安装nginx服务
摘要:https://www.cnblogs.com/zhi-leaf/p/6274290.html Windows安装nginx服务 1、测试版本 nginx版本:nginx-1.10.2;windows版本:win10 2、下载winsw。 当前最新版本为:winsw-2.0.1-bin.exe。下载 阅读全文

posted @ 2021-12-30 16:56 四海骄阳 阅读(1121) 评论(0) 推荐(0)

nginx监听一个端口多域名转发配置
摘要:https://blog.csdn.net/bolg_hero/article/details/42105987?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_title~default-0.no_search_ 阅读全文

posted @ 2021-12-03 10:20 四海骄阳 阅读(891) 评论(0) 推荐(0)

nginx配置多个server监听80端口-根据域名转发端口服务
摘要:https://blog.csdn.net/lovequanquqn/article/details/104562914?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_title~default-0.fixedc 阅读全文

posted @ 2021-12-03 10:18 四海骄阳 阅读(1282) 评论(0) 推荐(0)

nginx添加https模块
摘要:https://blog.csdn.net/buyueliuying/article/details/89676892 https://blog.csdn.net/CSDNOfWK/article/details/78433962 总结: 1、查看是否安装 /usr/local/nginx/sbin 阅读全文

posted @ 2021-10-09 16:21 四海骄阳 阅读(469) 评论(0) 推荐(0)

Nginx 作为反向代理优化要点proxy_buffering
摘要:https://blog.csdn.net/cymm_liu/article/details/76667153 当nginx用于反向代理时,每个客户端将使用两个连接:一个用于响应客户端的请求,另一个用于到后端的访问; 那么,可以从如下配置起步: 1234567891011121314# One wo 阅读全文

posted @ 2021-09-05 12:39 四海骄阳 阅读(1315) 评论(0) 推荐(0)

limit_req_zone
摘要:limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; server { # 药店项目同步药品/库存接口 location ^~ /progarm-ext-api/systemCorresponding { proxy_set_heade 阅读全文

posted @ 2021-08-17 09:59 四海骄阳 阅读(276) 评论(0) 推荐(0)

详解nginx的rewrite应用,Nginx高级之Rewrite规则
摘要:http://www.cjzzc.com/article/1082.html Rewrite主要的功能是实现URL重写,Nginx 的 Rewrite 规则采用 PCRE Perl 兼容正则表达式的语法进行规则匹配,如相使用 Nginx 的 Rewrite 功能,在编译 Nginx 前要编译安装 P 阅读全文

posted @ 2021-08-05 06:16 四海骄阳 阅读(1641) 评论(0) 推荐(0)

导航