12 2021 档案
摘要:文件工具: exiftool,官网:https://exiftool.org/ 安装: ansible engine -m yum -a "name=perl-Image-ExifTool" ansible engine -m shell -a "which exiftool"/usr/bin/ex
阅读全文
摘要:require: https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html Elasticsearch uses a mmapfs directory by default to sto
阅读全文
摘要:一,运维标准化: 程序启动的用户 程序systemd service文件 主目录 主目录/二进制 主目录/配置 主目录/数据 主目录/日志 动态库或插件 比如filebeat: home Home of the Filebeat installation. path.home主目录 bin The
阅读全文
摘要:运维管理: ITIL: 人:服务请求一线服务台,二线架构,三线应用 变更管理,通知与checklist 配置管理 事件管理 故障管理: BCM-BCP-DRP-运维管理之故障管理——故障的分类与处理流程 问题管理 落地实施: 运维规划之标准化与自动化 DEVOPS cicd,代码开发 SRE 事盘点
阅读全文
摘要:开机自动挂载,当然在/etc/fstab里写入挂载项就可以 但此外,/etc/rc.local -> rc.d/rc.local 这个脚本也是会开机自动执行的,那么在这里写上需要mount的命令也可以,比如: "mount -t cifs //192.168.3.52/data /opt/data
阅读全文
摘要:使用golang开发,导包的时候,需要配置go包代理,这里用七牛云的,稳定 七牛云 - Goproxy.cn windows开发vscode开发环境 1,配置go mod的环境变量,以及go代理 系统环境变量里 GO111MODULE配置成on GOPROXY配置成https://goproxy.c
阅读全文
摘要:telnet 测试tcp端口 nc 测试tcp,udp端口 windows下用nmap,https://nmap.org/book/inst-windows.html dig nslookup traceroute: 跟踪数据包到达网络主机所经过的路由工具 1M宽带是多少KB? 1M宽带的下行速度在
阅读全文
摘要:1,执行 strach df -h 命令,追踪看哪里卡住 显示stat("/shell" 卡住 2,执行mount 看都有哪些挂载 ip6:/shell on /shell type nfs4 (rw,relatime,vers=4.1,,hard,proto=tcp,timeo=600,retra
阅读全文
摘要:telnet 使用23端口 centos yum install telnet-server systemctl start telnet.socket
阅读全文
摘要:程序,配置,service,用户,这四个是必须的。此外有程序的数据,程序的日志,程序需要的动态库或者插件 程序启动的用户 程序systemd service文件 主目录 主目录/二进制 主目录/配置 主目录/数据 主目录/日志 动态库或插件 比如filebeat: home Home of the
阅读全文
摘要:#!/bin/sh# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB# This file is public domain and comes with NO WARRANTY of any ki
阅读全文
摘要:k8 operator install: kubectl create namespace observability kubectl create -f https://github.com/jaegertracing/jaeger-operator/releases/download/v1.29
阅读全文
摘要:install: sudo yum install -y yum-utilssudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum install dock
阅读全文
摘要:调度器: https://kubernetes.io/zh/docs/tasks/administer-cluster/topology-manager/ Pod 拓扑分布约束 API pod.spec.topologySpreadConstraints 字段定义如下所示: apiVersion:
阅读全文
摘要:程序启动的用户 etcd 程序systemd service文件 见下面 主目录 etcd没有这个 主目录/二进制 三个二进制放在/usr/local/etcd 主目录/配置 配置在/etc/etcd.conf.yml 主目录/数据 /var/lib/etcd 主目录/日志 动态库或插件 insta
阅读全文
摘要:windows 调用服务: services.msc windows更深入的了解: https://brianbondy.com/blog/100/understanding-windows-at-a-deeper-level-sessions-window-stations-and-desktop
阅读全文
摘要:官网: https://kafka.apache.org/quickstart install: wget --no-check-certificate https://dlcdn.apache.org/kafka/3.0.0/kafka_2.13-3.0.0.tgz (scala版本2.13,ka
阅读全文
摘要:wget https://archive.apache.org/dist/zookeeper/zookeeper-3.6.3/apache-zookeeper-3.6.3-bin.tar.gz tar -zxvf apache-zookeeper-3.6.3-bin.tar.gz bin/zkSer
阅读全文
摘要:安装: rpm -ivh jdk-8u191-linux-x64.rpm 配置/etc/profile #javaexport JAVA_HOME=/usr/java/defaultexport PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HO
阅读全文
摘要:故障案例:服务器重启了,但设定了systemctl enable mongod 但mongo还是没有自动和机器重启,systemd日志报: ExecStart=/usr/local/mongodb/bin/mongod -f /etc/mongod.conf (code=exited, status
阅读全文
摘要:make test 时需要: 安装一下8.5或者最新的tcl 1 2 3 4 5 6 [root@etcd3 tmp]# wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz [root@etcd3 tmp]# tar xzvf
阅读全文
摘要:shell返回值与异常处理: $?是接收上一条函数的执行结果,在例一中,$?接收test函数的执行结果,执行结果其实就是其返回值,就是return 传出来的数值(return只能是数字,不能是字符串之类的),如果函数中没有显式调用return返回出来状态,那么系统会使用函数中最后一条shell指令的
阅读全文
摘要:服务端: yum install nfs-utils rpcbind -y 编辑/etc/exports ,添加以下内容 /data 192.168.1.0/24(rw,async) 允许哪个网段访问哪个目录 mkdir -p /data chown -R nfsnobody.nfsnobody /
阅读全文
摘要:在防火墙上放行端口111-udp/tcp、892-tcp/udp 20048 tcp/udp就可以; [root@nfs ~]# firewall-cmd --zone=public --add-port=892/tcp --permanent(这个参数指定配置永久生效) success [root
阅读全文
摘要:install $ sudo yum install epel-release $ sudo yum install ansible rpm -ql ansible/etc/ansible/etc/ansible/ansible.cfg/etc/ansible/hosts/etc/ansible/r
阅读全文
摘要:开机会自动执行的脚本: /etc/rc.local -> rc.d/rc.local (这是自定义的开机初始化) 实际上,所有开机先运行的全在/etc/rc.d下,比如/etc/rc.d/init.d/network启动网络 注意给 rc.d/rc.local 执行权限 获取当前日期: date 获
阅读全文
摘要:install: 注意脚本里$的转义 sudo yum install yum-utils touch /etc/yum.repos.d/nginx.repo cat >>/etc/yum.repos.d/nginx.repo<<EOF [nginx-stable] name=nginx stabl
阅读全文
摘要:install: 5.0版本安装 https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ 3.4版本安装: https://docs.mongodb.com/v3.4/tutorial/install-mongodb-
阅读全文
摘要:nsq 消费者端服务发现 无副本架构 一个nsqd可以 注册到多个lookupd 一个lookupd可以被多个nsqd注册 lookup做服务发现 1. 消息默认不持久化, 可以配置成持久化模式, nsq采用的方式是内存+硬盘的模式,当内存到一定程度就会持久化到硬盘. 如果将 --mem-queue
阅读全文