随笔分类 -  Nginx

摘要:环境查看 系统环境 # cat /etc/redhat-release Rocky Linux release 9.4 (Blue Onyx) # uname -a #1 SMP PREEMPT_DYNAMIC Thu Sep 12 18:24:53 UTC 2024 x86_64 x86_64 x 阅读全文
posted @ 2024-09-19 11:28 minseo 阅读(104) 评论(0) 推荐(0) 编辑
摘要:Nginx认证登录参考 https://www.cnblogs.com/minseo/p/9234003.html 使用Ingress代理的站点怎么设置认证 使用密码工具生成密码文件 # htpasswd -c kibana.passwd admin 以上命令意思是给用户名为admin设置一个密码, 阅读全文
posted @ 2024-07-11 14:16 minseo 阅读(56) 评论(0) 推荐(0) 编辑
摘要:源码编译安装Nginx 参考: https://i.cnblogs.com/posts/edit-done;postId=9010150;isPublished=false 设置include 因为反向代理主机较多设置include可以模块化各个主机 nginx配置文件 # sed '/#/d' / 阅读全文
posted @ 2024-06-03 16:30 minseo 阅读(20) 评论(0) 推荐(0) 编辑
摘要:参考: https://www.jb51.net/article/268033.htm 阅读全文
posted @ 2024-02-23 16:08 minseo 阅读(203) 评论(0) 推荐(0) 编辑
摘要:需要使用nginx部署一个外网文件服务器使用k8s部署 本次需要把一个apk文件映射到外网 前提条件 部署好的k8s集群 部署好的存储集群(glusterfs,NFS) k8s的yaml配置文件 deployment文件 使用以下命令生成再修改 # kubectl run apk-nginx --i 阅读全文
posted @ 2024-01-18 15:55 minseo 阅读(218) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.ihuyi.com/pd/ssl/opensslshengchengsslzhengshu.html SSL证书是网站安全的基石,为了保证网站数据传输的安全性,需要使用SSL证书。而在实际项目中,通常选用 openssl 命令来生成 SSL 证书。通过 openssl 阅读全文
posted @ 2023-10-09 16:42 minseo 阅读(786) 评论(0) 推荐(0) 编辑
摘要:进入nginx配置目录增加配置 目录为 /usr/local/nginx/conf/vhost 可复制其他映射配置文件修改 例如增加一个二级域名映射 ai.conf server { listen 80; server_name ai.xxxx.com; server_name ai.xxxx.co 阅读全文
posted @ 2023-06-29 17:15 minseo 阅读(204) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/baidu_19473529/article/details/78885810 使用nginx反向代理后端服务器,打开网页找不到css,js和图片 修改配置如下 location /xxx/ { proxy_pass http://172.16.90 阅读全文
posted @ 2021-11-04 15:37 minseo 阅读(8321) 评论(0) 推荐(1) 编辑
摘要:Fastdfs搭建参考:https://www.cnblogs.com/minseo/p/10210428.html 把fastdfs从5.0.5版本升级为5.0.11 环境查看 升级前版本 下载软件 wget https://codeload.github.com/happyfish100/lib 阅读全文
posted @ 2020-06-01 11:18 minseo 阅读(858) 评论(0) 推荐(0) 编辑
摘要:为了方便收集查看日志把nginx日志输出至nfs文件服务器,nfs文件服务器使用autofs自动挂载,nginx和autofs都使用systemctl设置了开机自启动。 但是在重启主机的时候nginx未能启动,报错为找不到日志输出的文件夹,日志/var/log/messages如下 原因是因为ngi 阅读全文
posted @ 2019-10-12 16:27 minseo 阅读(561) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.cnblogs.com/succour/p/6305574.html EMQ官方文档:https://docs.emqx.io/broker/v3/cn/ 一,系统环境及软件选择 系统环境查看 软件版本选择 二,软件安装与配置 下载EMQ 安装 启动 配置文件 其他保存 阅读全文
posted @ 2019-10-11 09:18 minseo 阅读(7190) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/php12345679/article/details/80843939 https://blog.csdn.net/pf1234321/article/details/83106144 nginx的gzip常用配置参数 在http或server模块 阅读全文
posted @ 2019-08-07 14:56 minseo 阅读(578) 评论(0) 推荐(0) 编辑
摘要:Nginx作为负载均衡获取到客户端的真实IP,但是后端获取到的IP为nginx负载均衡的IP,需要修改配置使后端获取到客户端的真实IP 修改nginx配置增加3行 proxy_set_header Host host;proxysetheaderXRealIPremote_addr 阅读全文
posted @ 2019-05-20 14:36 minseo 阅读(785) 评论(0) 推荐(0) 编辑
摘要:之前有一篇文章记录nginx负载均衡后端检查,链接为 https://www.cnblogs.com/minseo/p/9511456.html 但是只包含http健康检查不包含tcp下面安装nginx可以实现http及tcp健康检查 参考 https://github.com/zhouchangx 阅读全文
posted @ 2019-04-19 16:58 minseo 阅读(2646) 评论(0) 推荐(0) 编辑
摘要:编译安装的nginx需要添加rc.local 编译安装后设置 配置生效 可以使用systemctl启动nginx了 阅读全文
posted @ 2019-04-08 10:43 minseo 阅读(476) 评论(0) 推荐(0) 编辑
摘要:使用nginx可以搭建简单文件服务器 安装nginx(不详述) 修改配置文件 /usr/local/nginx/conf/nginx.conf user root; worker_processes 1; #error_log logs/error.log; #pid logs/nginx.pid; 阅读全文
posted @ 2019-04-04 16:00 minseo 阅读(253) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.cnblogs.com/bninp/p/5694277.html 当出现403跨域错误的时候 No 'Access-Control-Allow-Origin' header is present on the requested resource,需要给Nginx服务器 阅读全文
posted @ 2019-03-16 08:48 minseo 阅读(484) 评论(0) 推荐(0) 编辑
摘要:Nginx使用TCP反向代理日志配置不同于http 修改nginx配置文档/usr/local/nginx/conf/nginx.conf 设置日志格式 修改具体的tcp配置文档 检查日志 PS 阅读全文
posted @ 2019-02-15 15:35 minseo 阅读(9921) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示