会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
乂
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
下一页
2021年1月13日
登录出现 -bash-4.2$ 问题
摘要: 登录后显示的用户名和主机名显示不正常,原因是登录用户的家目录下丢失 .bash_profile 和 .bashrc文件从默认文件目录 /etc/skel 下拷贝放到家目录下cp /etc/skel/.bashrc /home/user/cp /etc/skel/.bash_profile /home
阅读全文
posted @ 2021-01-13 13:53 风儿飘
阅读(262)
评论(0)
推荐(0)
2020年12月29日
查看cpu核数
摘要: 查看有几个物理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 风儿飘
阅读(363)
评论(0)
推荐(0)
2020年12月23日
nginx rewrite相关
摘要: 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 风儿飘
阅读(131)
评论(0)
推荐(0)
nginx 高级配置
摘要: 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 风儿飘
阅读(370)
评论(0)
推荐(0)
nginx 一些用的较少的配置
摘要: 其他配置keepalive_disable none | browser ...;对某种浏览器禁用长连接limit_except method ... {...},只用于location限制客户端使用除了制定的请求方法之外的其他方法;method:GET, HEAD, POST, PUT, DELE
阅读全文
posted @ 2020-12-23 15:03 风儿飘
阅读(116)
评论(0)
推荐(0)
nginx编译、优化、配置
摘要: **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 风儿飘
阅读(218)
评论(0)
推荐(0)
jenkins_pipeline实例_java
摘要: 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 风儿飘
阅读(529)
评论(0)
推荐(0)
jenkins_pipeline前端_docker
摘要: 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 风儿飘
阅读(266)
评论(0)
推荐(0)
jenkins_pipeline后端_python_docker
摘要: 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 风儿飘
阅读(176)
评论(0)
推荐(0)
2020年12月21日
Haproxy 线上在用配置
摘要: 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 风儿飘
阅读(118)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告