摘要: nginx rewrite相关功能ngx_http_rewrite_module用于实现URL的重写,URL的重写是非常用的功能https://nginx.org/en/docs/http/ngx_http_rewrite_module.html if指令if (条件匹配) { action} 1 阅读全文
posted @ 2020-12-23 15:19 风儿飘 阅读(114) 评论(0) 推荐(0) 编辑
摘要: nginx状态页 1 ngx_http_auth_basic_module 2 location /nginx_status { 3 stub_status; 4 allow 192.168.0.0/16; 5 allow 127.0.0.1; 6 deny all; 7 } curl 127.0. 阅读全文
posted @ 2020-12-23 15:11 风儿飘 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 其他配置keepalive_disable none | browser ...;对某种浏览器禁用长连接limit_except method ... {...},只用于location限制客户端使用除了制定的请求方法之外的其他方法;method:GET, HEAD, POST, PUT, DELE 阅读全文
posted @ 2020-12-23 15:03 风儿飘 阅读(106) 评论(0) 推荐(0) 编辑
摘要: **Nginx编译安装** 1 apt install libgd-dev 2 apt install libgeoip-dev 3 apt-get install zlib1g-dev 4 apt install openssl libssl-dev 5 apt install libpcre3- 阅读全文
posted @ 2020-12-23 13:59 风儿飘 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1 pipeline { 2 agent any 3 environment { 4 5 project_name = 'PhoenixTree' #PhoneixTree 自定义的项目名 6 } 7 stages { 8 stage ('拉取代码、打包') { 9 steps { 10 11 #这 阅读全文
posted @ 2020-12-23 11:26 风儿飘 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 1 pipeline { 2 agent any 3 4 environment { 5 imagename = '镜像名' 6 tag = "v${BUILD_NUMBER}" #版本号 7 } 8 9 stages { 10 stage('Pull code') { 11 steps { 12 阅读全文
posted @ 2020-12-23 11:24 风儿飘 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1 pipeline { 2 agent any 3 4 environment { 5 imagename = "镜像命名" 6 tag = "v${BUILD_NUMBER}" 7 } 8 9 stages { 10 stage('Pull code') { 11 steps { 12 echo 阅读全文
posted @ 2020-12-23 11:23 风儿飘 阅读(166) 评论(0) 推荐(0) 编辑