zhaohz

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2019年12月29日

摘要: #!/bin/sh while true; do #启动一个循环,定时检查进程是否存在 server=`ps aux | grep /opt/mongodb | grep -v grep` if [ ! "$server" ]; then echo `date "+%Y-%m-%d %H:%M:%S"` service restart #如果不存在就重新启动 nohup bin/mongod -- 阅读全文
posted @ 2019-12-29 23:32 zzhaoh 阅读(334) 评论(0) 推荐(0) 编辑

摘要: #!/usr/bin/env python # coding=utf-8 # gitlab源码备份 import os import datetime import requests class GitlabBackup: def backup_projects(self): url = 'http://xxx.xxx.xxx.xxx/api/v3/projects/all?page=1&per_ 阅读全文
posted @ 2019-12-29 23:31 zzhaoh 阅读(243) 评论(0) 推荐(0) 编辑

摘要: import java.awt.image.BufferedImage; import java.awt.image.RenderedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; public class ImageWithArray { public static voi 阅读全文
posted @ 2019-12-29 23:30 zzhaoh 阅读(3637) 评论(0) 推荐(1) 编辑

摘要: elasticsearch命令: 显示所有索引: curl http://dv7:9200/_cat/indices?v 查询:curl http://dv7:9200/corp-base/_search?q=* 删除索引:curl -XDELETE http://dv7:9200/corp-bas 阅读全文
posted @ 2019-12-29 23:29 zzhaoh 阅读(433) 评论(0) 推荐(0) 编辑

摘要: ### impyla-0.14.2.2安装注意事项+ 环境 - Red Hat Enterprise Linux Server release 6.8 (Santiango) - Python3.7.3 + impyla-0.14.2.2依赖包 - yum install -y python-dev 阅读全文
posted @ 2019-12-29 23:16 zzhaoh 阅读(282) 评论(0) 推荐(0) 编辑

摘要: ## 系统环境- Red Hat Enterprise Linux Server release 6.8 (Santiago)- Python2.6.6- openssl version 1.0.1 ## 一、安装gccyum -y install gcc gcc-c++ ## 二、安装python 阅读全文
posted @ 2019-12-29 23:14 zzhaoh 阅读(2302) 评论(0) 推荐(0) 编辑

摘要: 一、TestDFSIO 读写性能测试切换到目录: /opt/hadoop/share/hadoop/mapreduce/ 清空数据hadoop jar hadoop-mapreduce-client-jobclient-2.6.4.jar -cleanhadoop fs -ls /benchmark 阅读全文
posted @ 2019-12-29 23:11 zzhaoh 阅读(2241) 评论(0) 推荐(0) 编辑

2018年7月12日

摘要: 使用pyspider有一段时间了,做爬虫确实非常方便,但一直有小问题:web ui调试页面的网页预览框在Chrome浏览器中的很小。 网上找了一圈没找到解决办法。后来到项目github主页上找到了,在这里记录下, githup上有个issue: https://github.com/binux/py 阅读全文
posted @ 2018-07-12 17:17 zzhaoh 阅读(1789) 评论(1) 推荐(0) 编辑

2017年11月10日

摘要: 问题描述,elasticsearch启动时报max file descriptors错误: 网上的解决办法都是修改/etc/security/limits.conf文件,增加hadoop hard nofile 131072一行 可是,我的配置本来就已经设置成这样了的网上找来找去,都是修改limit 阅读全文
posted @ 2017-11-10 15:37 zzhaoh 阅读(15111) 评论(1) 推荐(2) 编辑

2017年7月30日

摘要: 1. 首先到官网把插件下载下来 2. 将文件导入到工程,在前端页面将插件引入 3. 导入界面 4. js处理 5. 后台接口 6. 附ExcelUtil类 阅读全文
posted @ 2017-07-30 14:44 zzhaoh 阅读(12974) 评论(2) 推荐(1) 编辑