张文兵博客
首页
留言板
ansible 超详细讲解[值得收藏]
ansible安装 yum install python39 -y pip3.9 install ansible # 查看版本 ansible --version ansible配置 mkdir /etc/ansible # 此处根据安装的 ansible 版本进行修改 # wget -O ...
centos7安装高可用k8s集群
一、环境准备 1 主机准备 主机 Ip主机名主功能10.200.20.116master01etcd,apiserver,controller-manager,scheduler,docker,proxy10.200.20.117master02etcd,apiserver,controller ...
实战之给博客加全文索引
卸载 systemctl stop mariadb mv /etc/my.cnf /etc/my.cnf.bak yum remove mariadb mariadb-server 升级 cat /etc/yum.repos.d/mariadb.repo # MariaDB 10.5 Ce ...
Linux运行命令报Argument list too long
错误信息 Argument list too long 原因分析 # 查看最大参数大小 getconf ARG_MAX # 我这边默认输出是2097152,经过一番搜索发现可以通过修改 ulimit -s 修改这个数值 ulimit -s 81920 # 再次支持 getconf ARG_MA ...
使用ssh配置跳板机
简单的修改/etc/ssh/ssh_config文件即可通过跳板机,直达目标服务器。 配置方法 cat /etc/ssh/ssh_config TCPKeepAlive yes ServerAliveInterval 60 ServerAliveCountMax 3 Host jump- ...
golang简单的守护进程实现
一个简单的例子,用-d参数启动进程并将进程移至后台启动。在web服务中比较常用,可配合热重启相关的库使用。 package main import ( "log" "os" "os/exec" "time" ) func main() { for i ...
supervisor 常见坑及解决办法
Too many open files、获取不到$HOME等 Too many open files vim /etc/supervisord.conf [supervisord] minfds=81920 minprocs=81920 # systemctl restart superv ...
windows 将golang程序安装为windows服务
推荐一个好工具: nssm ,将exe 文件intall 成服务,直接运行. 官方地址 http://nssm.cc/commands 安装服务 nssm install <servicename> nssm install <servicename> <program> nssm in ...
mediainfo 静态编译脚本
因为需要mediainfo支持http协议,在老的版本中是不支持的,所以只能自己动手编译了。 说明 系统:ubuntu 14.04 (其他版本可能会有少许改动) mediainfo版本:0.7.71 编译环境:c/c++ 脚本 #!/bin/bash cd ~/ apt-get ...
supervisor 安装和使用方法
Supervisor是用Python开发的一套通用的进程管理程序,能将一个普通的命令行进程变为后台daemon,并监控进程状态,异常退出时能自动重启。 准备工作 yum install epel-* -y yum install python34 -y wget --no-check-cer ...
张文兵
90后程序员
湖南 - 长沙
分类导航
Golang
Linux
Git
Database
FFmpeg
Game
Python
Node.js
.Net
Java
MacOS
Windows
Sharing
Other
热文排行
SecureCRT SecureFX for mac 破解版
Mac terminal清除历史命令纪录
ffmpeg音频合成命令全集
The request client is not a secure context and the resource is in more-private address space `private`
tcpdump之UDP抓包
nginx+rtmp+hls直播推流
golang创建目录的权限问题
.net core简单读取xml内容
MinIO 多种部署及扩容方案
beego orm关联查询之多对多(m2m)
Golang-RSA加密解密-无数据长度限制
packets.go:36: unexpected EOF
【实战】opencv 文字区域的提取
axios完美解决自动重试
CentOS7 搭建NFS服务
友情链接
首页
留言板