原创 CPU:chip、core 和 processor 的關係
查看物理CPU個數 (chip) 物理cpu數:主板上實際插入的cpu數量,可以數不重複的 physical id 有幾個(physical id)cat /proc/cpuinfo| grep "physical id"| sort
原创 find
1、先查詢列表find . -mtime +30 -type f -name "gc*.log" 2、刪除文件find . -mtime +30 -type f -name "gc*.log" |xargs rm -f
原创 curl獲取本機出口IP地址
[root@s1 ~]# curl https://ip.cn/{"ip": "115.3.18.52", "country": "美國", "city": ""}[root@s1 ~]#
原创 nginx代理配置ssl證書
server {listen 443 ssl;server_name console.test.com;ssl on; server_name_in_redirect off;port_in_redirect off
原创 token
head -c 16 /dev/urandom |od -An -t x | tr -d ' '
原创 利用shell獲取文件夾下文件名長度以及文件大小
#獲取test文件夾下文件名長度,並分組顯示 du -sh test/*|sort -nr|awk '{print $2}'|awk -F "" '{print NF}'|uniq -c #獲取test文件夾下最大文件du -sh test
原创 docker安裝配置gitlab詳細過程
轉載:https://www.cnblogs.com/zuxing/articles/9329152.html
原创 dig命令安裝和常用命令
1、安裝方法 yum install bind-utils 2、常用命令 2.1 直接dig域名,根據自身網絡的dns獲取域名解析信息 root@basic harbor]# dig www.mikezhu.tech ; <<>> DiG
原创 shell控制檯一句話循環監控es狀態
while [ 1 -eq 1 ] ; do curl http://127.0.0.1:9200/_cat/health?v && sleep 15 ; done
原创 linux下使用ack進行代碼搜索
轉載:https://www.cnblogs.com/fnlingnzb-learner/p/9585219.html 1、安裝wget http://beyondgrep.com/ack-2.12-single-filesudo mv a
原创 juniper SSG 導出導入配置
原文鏈接:https://blog.51cto.com/huangwenpeng/829417 導入導出配置是我們設備經常用到的地方,這篇文章是針對剛購買juniper ssg 系列的新用戶製作的,希望大家別忘記時常備份一下配置,首先我們進
原创 docker配置文件修改事項
1、centosvim /etc/docker/daemon.json {"registry-mirrors": ["https://kfwkfulq.mirror.aliyuncs.com","https://2lqq34jg.mirro
原创 cisco3560交換機如何恢復出廠設置
轉載:https://blog.51cto.com/13001500368/1852699 方法1:Switch#erase startup-configSwitch#delete flash:vlan.datSwitch#reload最後
原创 Docker安裝Confluence
Docker安裝Confluence 參考鏈接:https://my.oschina.net/u/2289161/blog/1648587https://hub.docker.com/r/cptactionhank/atlassian-co
原创 Cisco3750交換機密碼重置的方法
轉載:https://blog.51cto.com/cwind/1313796 1.啓用超級終端並出現連接界面2.拔掉交換機的電源.3.按下交換機上的Mode按鈕,與此同時,重新插上交換機的電源線.4.當交換機左邊的sys燈會慢慢的閃動,(