摘要: 登录后显示的用户名和主机名显示不正常,原因是登录用户的家目录下丢失 .bash_profile 和 .bashrc文件从默认文件目录 /etc/skel 下拷贝放到家目录下cp /etc/skel/.bashrc /home/user/cp /etc/skel/.bash_profile /home 阅读全文
posted @ 2021-01-13 13:53 风儿飘 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 查看有几个物理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 风儿飘 阅读(304) 评论(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 风儿飘 阅读(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) 编辑
摘要: 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 风儿飘 阅读(108) 评论(0) 推荐(0) 编辑