摘要: Kibana从5.5开始不提供认证功能,想用官方的认证X-Pack收费 ... 自己动手吧,用nginx的代理加apache生成的密码认证文件。环境:ubuntu16.04 安装nginxapt-get install nginx 增加kibana的nginx配置文件cat /etc/nginx/s 阅读全文
posted @ 2018-06-26 14:56 ddif 阅读(259) 评论(0) 推荐(0) 编辑
摘要: #先安装,nvm,即是Node Version Manager(Node版本管理器) curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash或者使用 wgetwget -qO- https 阅读全文
posted @ 2018-06-26 10:00 ddif 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 在生成密钥的时候,无法生成足够多的随机数,提示“ Not enough random bytes available. Please do some other work to givethe OS a chance to collect more entropy! (Need 282 more b 阅读全文
posted @ 2018-06-11 09:11 ddif 阅读(1205) 评论(0) 推荐(0) 编辑
摘要: 编辑/etc/profile,增加如下代码 阅读全文
posted @ 2018-06-11 09:09 ddif 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 在/usr/local/zabbix/etc/zabbix_agentd.conf增加 /usr/local/zabbix/bin/check_mysql.sh脚本内容为 zabbix模版内容: <?xml version="1.0" encoding="UTF-8"?> <zabbi 阅读全文
posted @ 2018-06-07 15:51 ddif 阅读(551) 评论(0) 推荐(0) 编辑
摘要: elasticsearch随着保存的数据越来越多,磁盘占用越来越大,有必要进行定期自动清理。 直接上脚本 参考:https://www.cnblogs.com/vijayfly/p/6763127.html 阅读全文
posted @ 2018-05-31 14:35 ddif 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 服务端安装 Elasticsearch和Kibana(需要安装openjdk1.8以上) 安装方法:https://www.elastic.co以Ubuntu为例: elasticsearch配置 cat /etc/elasticsearch/elasticsearch.yml 附件有文件elast 阅读全文
posted @ 2018-05-24 20:54 ddif 阅读(2170) 评论(0) 推荐(0) 编辑
摘要: 批量杀死MySQL连接 select concat('KILL ',id,';') from information_schema.processlist where Info like 'select%' into outfile '/tmp/a.txt'; select concat('KILL 阅读全文
posted @ 2018-05-17 09:49 ddif 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #PXE+TFTP+Kickstart 自动部署服务器系统系统Ubuntu16.04apt-get install isc-dhcp-servervim /etc/default/isc-dhcp-serverINTERFACES="ens160" 在 /etc/dhcp/dhcpd.conf追加 阅读全文
posted @ 2018-04-26 21:07 ddif 阅读(2644) 评论(0) 推荐(0) 编辑
摘要: DRBD就是网络RAID1,可以通过网络同步两个主机上的硬盘,drbd每次只允许对一个节点进行读写访问。 一、安装DRBD CentOS 6.x CentOS 7.x Ubuntu16.x apt-get install drbd-utils #同步时间 #加载drbd到内核 modprobe dr 阅读全文
posted @ 2018-04-26 11:23 ddif 阅读(231) 评论(0) 推荐(0) 编辑