原创 nginx tcp負載均衡(Stream模塊)配置說明

    nginx-1.9.0 已發佈,該版本增加了stream 模塊用於一般的TCP 代理和負載均衡,ngx_stream_core_module 這個模塊在1.90版本後將被啓用。但是並不會默認安裝,     需要在編譯時通過指定 -

原创 linux修改DNS服務器地址設置

修改 vim /etc/resolv.conf 修改dns地址 # Generated by NetworkManager search 114.114.114.114 nameserver 223.5.5.5  

原创 C#使用Quartz.NET中Cron表達式

官網:https://www.quartz-scheduler.net/ github:https://github.com/quartznet/quartznet/releases 參考例子:https://www.cnblogs.co

原创 /var/lib/docker/overlay2 磁盤佔用很大,清理Docker佔用的磁盤空間

參考:https://blog.csdn.net/weixin_32820767/article/details/81196250 0  du -hs /var/lib/docker/ 命令查看磁盤使用情況。 sudo du -hs /

原创 服務端thrift 使用非阻塞式IO報異常Got an IOException in internalRead!

參考:https://blog.csdn.net/z13192905903/article/details/103181204 參考:https://blog.csdn.net/xmtblog/article/details/794317

原创 linux查看指定進程的內存和cpu使用情況

參考:https://blog.csdn.net/sinat_33718563/article/details/97752990   查看進程的PID ps -ef | grep iquota-server   使用ps -aux |

原创 spring cloud gateway使用JWT請求時Netty限制header大小導致請求400 bad Request問題解決

參考:https://blog.csdn.net/qq_34083066/article/details/103689859 我用的spring cloud gateway版本是Greenwich.SR2版,比上面作者的版本新一些。不需要

原创 Intellij IDEA設置類的文件頭@Author

參考:https://blog.csdn.net/engerla/article/details/84846463 參考:https://www.cnblogs.com/gongxin/p/8034606.html 模板 /** *

原创 javascript將iso8859-1的字符轉換成中文

原文:https://blog.csdn.net/qq_40516010/article/details/94722955 var str = “ç\u0088±æ\u0088\u0091ä¸\u00ADå\u009B½”; var ut

原创 kubernetes常用命令

進入pod kubectl exec -it [podname] --container [container-name] -- sh 看pod運行日誌 kubectl logs -f [podname]  

原创 docker安裝xxl-job

參考官網文檔:https://www.xuxueli.com/xxl-job/ github:https://github.com/xuxueli/xxl-job 初始化sql腳本 如官網所示在源碼的 /xxl-job/doc/db/

原创 通過Spring ApplicationListener監聽器觸發事件

參考:https://blog.csdn.net/liyantianmin/article/details/81017960 如果容器中有一個ApplicationListener Bean,每當ApplicationContex

原创 Common-io中FileAlterationListenerAdaptor監聽文件夾的變化

添加依賴 <!-- apache commons io --> <dependency> <groupId>commons-io</groupId> <artifactId>commons

原创 IDEA使用lombok註解後,報錯某些set、get方法不存在

Lombok Requires Annotation Processing Annotation processing seems to be disabled for the project "iif-da-s

原创 jenkins pipeline中獲取shell命令的輸出

//獲取標準輸出 //第一種 result = sh returnStdout: true ,script: "<shell command>" result = result.trim() //第二種 result = sh(scri