07 2021 档案

摘要:kubectl exec redis-6c98cb5b5f-nxb59 -- tar cPf - /data/dump_redis.rdb | sudo tar xf - -C . 阅读全文
posted @ 2021-07-27 18:37 B_en′Pǎo 阅读(66) 评论(0) 推荐(0)
摘要:docker pull bitnami/metrics-server:0.4.1 docker pull bitnami/metrics-server:0.4.1 docker tag bitnami/metrics-server:0.4.1 {自己仓库的地址:tag} docker push {自 阅读全文
posted @ 2021-07-26 09:45 B_en′Pǎo 阅读(283) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-07-25 22:34 B_en′Pǎo 阅读(29) 评论(0) 推荐(0)
摘要:修改不生效nginx.conf如下 user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; events { worker_connections 768 阅读全文
posted @ 2021-07-19 16:00 B_en′Pǎo 阅读(457) 评论(0) 推荐(0)
摘要:nginx配置pc.conf文件如下: server { listen 80; server_name www.zhongyuan.com; #root /usr/share/nginx/html/pc; location / { root /usr/share/nginx/html/pc; } l 阅读全文
posted @ 2021-07-18 15:51 B_en′Pǎo 阅读(2441) 评论(0) 推荐(0)
摘要:worker_priority 0; #工作进程优先级,-20-20(19)实际只能达到19,修改成20优先级也是19 worker_rlimit_nofile 65535; #所有worker进程能打开的文件数量上限,包括:nginx的所有连接(例如与代理服务器的连接等),而不仅仅是与客户端的连接 阅读全文
posted @ 2021-07-16 16:16 B_en′Pǎo 阅读(62) 评论(0) 推荐(0)
摘要:此文章参考https://blog.51cto.com/wangpengtai/2418636?source=dra https://github.com/kubernetes-incubator/external-storage/tree/master/nfs-client 一、nfs服务器部署 阅读全文
posted @ 2021-07-16 14:06 B_en′Pǎo 阅读(552) 评论(0) 推荐(0)
摘要:打流软件yum安装yum install httpd-tools -y while true;do ab -c 1000 -n 2000 http://172.17.0.17/ ; done 查看cpu变化 watch -n 5 'ps axo pid,cmd,psr |grep nginx' 过一 阅读全文
posted @ 2021-07-16 10:48 B_en′Pǎo 阅读(64) 评论(0) 推荐(0)
摘要:debian9执行apt-get update -y 报错404 root@bogon:/etc/apt# apt-get update && apt-get upgrade && apt-get dist-upgrade Ign:1 http://mirrors.ustc.edu.cn/kali 阅读全文
posted @ 2021-07-16 01:45 B_en′Pǎo 阅读(2104) 评论(0) 推荐(0)
摘要:安装debian的nginx 安装教程参考:https://blog.csdn.net/ShouZhuoFengFengSh/article/details/108411933https://www.cnblogs.com/wzxmt/p/12379847.html HttpHeadersModul 阅读全文
posted @ 2021-07-16 01:24 B_en′Pǎo 阅读(195) 评论(0) 推荐(0)
摘要:查看命令,根据cpu核数具体修改 watch -n 5 'ps axo pid,cmd,psr |grep nginx' 阅读全文
posted @ 2021-07-15 18:07 B_en′Pǎo 阅读(60) 评论(0) 推荐(0)
摘要:文章转载:https://www.cnblogs.com/lemon-flm/p/8352194.html 感谢作者 nginx比较强大,可以针对单个域名请求做出单个连接超时的配置. 比如些动态解释和静态解释可以根据业务的需求配置 proxy_connect_timeout :后端服务器连接的超时时 阅读全文
posted @ 2021-07-08 22:31 B_en′Pǎo 阅读(684) 评论(0) 推荐(0)
摘要:1.du -s /usr/* | sort -rn 这是按字节排序 2.du -sh /usr/* | sort -rn -h 参数排序顺序会乱 这是按兆(M)来排序 3.选出排在前面的10个 du -s /usr/* | sort -rn | head 4.选出排在后面的10个 du -s /us 阅读全文
posted @ 2021-07-08 22:24 B_en′Pǎo 阅读(431) 评论(0) 推荐(0)
摘要:Linux系统下的日志分割工具,Split 和 Logrotate split 选项含义 -b 分割后的文档大小,单位是byte -C 分割后的文档,单行最大byte数 -d 使用数字作为后缀(default: 字母),同时使用-a length(default: 2)指定后缀长度 -l 分割后文档 阅读全文
posted @ 2021-07-08 22:08 B_en′Pǎo 阅读(189) 评论(0) 推荐(0)
摘要:1.语句写法: find 对应目录 -mtime +天数 -name "文件名" -exec rm -rf {} \; 在/logs目录中查找更改时间在7日以前的文件并删除它们: $ find logs/ -type f -mtime +7 -exec rm -f {} \; 在/logs目录中查找 阅读全文
posted @ 2021-07-08 21:54 B_en′Pǎo 阅读(1005) 评论(0) 推荐(0)
摘要:remote rm SpringBootDemo 删除 git config --global user.name "Administrator" git config --global user.email "admin@example.com" git init git remote add o 阅读全文
posted @ 2021-07-02 11:59 B_en′Pǎo 阅读(17) 评论(0) 推荐(0)