12 2020 档案

摘要:查看有几个物理CPU cat /proc/cpuinfo | grep "physical id" | sort | uniq | wc -l 查看cpu核数(物理核) cat /proc/cpuinfo | grep "core id" | sort | uniq | wc -l 查看CPU线程 阅读全文
posted @ 2020-12-29 16:52 风儿飘 阅读(332) 评论(0) 推荐(0) 编辑
摘要: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 风儿飘 阅读(124) 评论(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 风儿飘 阅读(354) 评论(0) 推荐(0) 编辑
摘要:其他配置keepalive_disable none | browser ...;对某种浏览器禁用长连接limit_except method ... {...},只用于location限制客户端使用除了制定的请求方法之外的其他方法;method:GET, HEAD, POST, PUT, DELE 阅读全文
posted @ 2020-12-23 15:03 风儿飘 阅读(111) 评论(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 风儿飘 阅读(193) 评论(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 风儿飘 阅读(522) 评论(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 风儿飘 阅读(260) 评论(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 风儿飘 阅读(168) 评论(0) 推荐(0) 编辑
摘要:1 global 2 log 127.0.0.1 local0 info 3 chroot /var/lib/haproxy 4 pidfile /var/run/haproxy.pid 5 maxconn 4000 6 user haproxy 7 group haproxy 8 daemon 9 阅读全文
posted @ 2020-12-21 16:20 风儿飘 阅读(111) 评论(0) 推荐(0) 编辑
摘要:1 listen IQFQuoteProxy 0.0.0.0:18661 2 mode tcp 3 option tcplog 4 balance roundrobin 5 server Proxy2 172.19.78.88:19866 check inter 2000 rise 2 fall 3 阅读全文
posted @ 2020-12-21 16:12 风儿飘 阅读(597) 评论(0) 推荐(0) 编辑
摘要:尽量使用acl配置,tcp配置负载会出现 多个负载服务器中之后一个能用或都不可用状态 1 bind 0.0.0.0:15333 2 3 mode http 4 acl static_path_community path_beg -i /community 5 use_backend path_co 阅读全文
posted @ 2020-12-21 16:01 风儿飘 阅读(218) 评论(0) 推荐(0) 编辑
摘要:buffers 用来存放目录中有什么内容,文件的属性以及权限等等。cached 直接用来记忆我们打开过的文件和程序 物理内存使用超过多少使用swap内存 swap /proc/sys/vm/swappiness 修改swap触发使用 调小点性能会好点 sysctl vm.swappiness=10 阅读全文
posted @ 2020-12-21 14:10 风儿飘 阅读(626) 评论(0) 推荐(1) 编辑

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