随笔分类 -  运维

运维工作和学习中遇到的问题
摘要:原生的ansible不支持service.status,在Google之后,发现有人提交了一个patch,可以支持status选项.见https://github.com/ritzk/ansible-modules-core/commit/ab4c9c226e94371c2b60aab57ef5b0 阅读全文
posted @ 2018-07-23 15:51 Redheat 阅读(2633) 评论(0) 推荐(0)
摘要:ELK stack: Lucene: 文档:document 包含了一个或多个域的容器 field:value 域: 有很多选项 索引选项,存储选项,域向量使用选项 索引选项用于通过倒排索引来控制文本是否可被搜索: Index:ANALYZED 分析(切词)并单独作为索引项 Index.Not_AN 阅读全文
posted @ 2018-06-12 15:45 Redheat 阅读(341) 评论(0) 推荐(0)
摘要:搭建memcache服务器:1.在内存中缓存数据2.数据形态以key->value memcache优点:1.快速缓存2.跨域登录memcache缺点:1.复杂的数据存取的操作2.不能永久保存数据 安装memcache: Windows:下载memcached.exe安装服务 memcached.e 阅读全文
posted @ 2017-06-23 14:38 Redheat 阅读(198) 评论(0) 推荐(0)
摘要:安装gcc-c++ 615 yum -y install gcc c++ 616 yum -y install gcc-c++ 安装libestr、libee wget http://libestr.adiscon.com/files/download/libestr-0.1.10.tar.gz 621 tar xvf libestr-0.1.10.tar.gz 62... 阅读全文
posted @ 2017-06-23 14:31 Redheat 阅读(2310) 评论(0) 推荐(0)
摘要:1.更改字体(中文乱码多半是因为字体不支持中文) define('ZBX_GRAPH_FONT_NAME', 'DejaVuSans'); // font file name define('ZBX_FONT_NAME', 'DejaVuSans'); 2.增加页面 要增加页面,需要在include 阅读全文
posted @ 2017-06-23 13:54 Redheat 阅读(673) 评论(0) 推荐(0)
摘要:把/home内容备份,然后将/home文件系统所在的逻辑卷删除,扩大/root文件系统,新建/home: tar cvf /tmp/home.tar /home #备份/home umount /home #卸载/home,如果无法卸载,先终止使用/home文件系统的进程 lvremove /dev/centos/home #删除/home所在的lv lvextend -L +... 阅读全文
posted @ 2017-06-23 13:52 Redheat 阅读(645) 评论(0) 推荐(0)
摘要:症状:已拦截跨源请求:同源策略禁止读取位于xxx的远程资源。(原因:CORS 头缺少 'Access-Control-Allow-Origin')。解决:在配置文件添加如下一行,域名修改为自己的域名或者* 阅读全文
posted @ 2017-06-23 13:51 Redheat 阅读(190) 评论(0) 推荐(0)
摘要:#构建SVN库 svnadmin create /data0/svn/showtest #改变所属组 chown svn.svn showtest -R cd /data0/web_root/ mkdir showtest #同步svn文件到web目录 svn co file:///data0/sv 阅读全文
posted @ 2017-06-23 13:49 Redheat 阅读(194) 评论(0) 推荐(0)
摘要:openoffice可以在Linux上完成office文件转为pdf文件 阅读全文
posted @ 2017-06-23 13:44 Redheat 阅读(2854) 评论(0) 推荐(0)
摘要:启动配置: https://jolokia.org/reference/html/agents.html API: http://www.linuxidc.com/Linux/2014-02/97251.htm https://jolokia.org/reference/html/protocol. 阅读全文
posted @ 2017-06-23 13:32 Redheat 阅读(971) 评论(0) 推荐(0)
摘要:在Kibana的展示页面中,我们点击Table的左侧栏,发现Elasticsearch中的数据在展示中是正确的数据,比如:agent中www.baidu.com/test,该界面中会正确的显示为www.baidu.com/test,但是如果我们将该字段用Term展示出来的话,就会被分为www.bai 阅读全文
posted @ 2017-06-23 13:30 Redheat 阅读(210) 评论(0) 推荐(0)