`
wuzijingaip
  • 浏览: 318602 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表

test

    博客分类:
  • test
test demo

elk6.3pj

    博客分类:
  • ELK
ELK6.3和之前的版本有很大变化,x-pack已经默认安装,解压后便有,只不过是免费版,想要使用kibana的权限控制等功能就要破解一下; 1,破解x-pack-core-6.3.0.jar,破解jar,找到x-pack-core-6.3.0.jar包,用工具反编译,取出两个类(LicenseVerifier、XPackBuild)改为如下: 类一: package org.elasticsearch.license;    public class LicenseVerifier  {      public static boolean verifyLicense(fina ...

jquery穿梭框

jquery穿梭框

java 线程池

    博客分类:
  • java
package com.fx.test; import java.net.ServerSocket; import java.net.Socket; import java.util.concurrent.Executor; import java.util.concurrent.Executors; public class TaskExecutionWebServer { private static final int NTHREADS = 100; // 使用线程池来避免 为每个请求创建一个线程。 private static final Executo ...

test

    博客分类:
  • test
test

logstash 配置

input { file { type => "fx-czrz" path => ["D:/logs1/czrzFile*"] start_position => "beginning" } file{ path => "D:/logs2/ycrzFile*" type => "fx-ycrz" start_position => beginni ...

ftppool-demo

ftp pool demo
public static void traverseFolder(String path) { File file = new File(path); if (file.exists()) { File[] files = file.listFiles(); if (files.length == 0) { System.out.println("文件夹是空的!"); return; } else { for (File file2 : files) { if (file2.isDi ...
private static void writeToLocal(String destination, InputStream input) throws Exception{ int index; byte[] bytes = new byte[1024]; FileOutputStream downloadFile = new FileOutputStream(destination); while ((index = input.read(bytes)) != -1) { downloadFile.write(bytes, 0, inde ...

java 字符串转为流

    博客分类:
  • java
public static InputStream getStringStream(String str) throws Exception{ if (str != null && !str.trim().equals("")) { ByteArrayInputStream stringStream = new ByteArrayInputStream(str.getBytes()); return stringStream; } return null; } public static ...
ftputil + ftpclientPOOL

Fastdfs对比

ftp:可设密码文件安全性高(若设密码程序访问麻烦)、可断点续传、不可扩容、无容灾 HDFS:适用于大文件存储、云计算、不太适合单纯小文件存储(效率不高) TFS:出自于淘宝,适用于海量小于1M文件、使用相对麻烦、文档相对少 GlusterFS:功能强大灵活、适合大文件、支持多种数据类型、使用麻烦、对硬件要求高、至少两个节点、中文资料少 mogileFS:与FastDFS架构比较像、FastDFS参考mogileFS,FastDFS比mogileFS效率高 FastDFS:出自于淘宝,适用于海量小文件(建议范围:4KB < file_size <500MB)、使用相对简单、小文件存储 ...

mv-wx

mv-wx
fastdfs 相关安装包

好用的maven仓库

好用的maven仓库: http://mvnrepository.com
Global site tag (gtag.js) - Google Analytics