`
文章列表
直接通过脚本可以用来查看ec2上面某个磁盘的大小,比如C盘,D盘。 http://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/mon-scripts-powershell.html   但是不能直接得到mount 路径上的盘符的大小, 比如: c:\data所有映射的磁盘大小,磁盘使用率。 $volumes = Get-WmiObject -Class Win32_Volume  //得到所有Volume 的信息$mountsPoint=Get-WmiObject -Class Win32_MountPoint //得到所有Mo ...

lucene

1. 分词 (lucene, tika) 2. 索引 (lucene) 3. 语法高亮 (lucene) 4. 拼写检查(Hunspell ) 5. 翻译 (XLF)  
 问题: windows2003复制文件夹到windows2012上面,文件夹在windows2012上面打不开1.  用windows 命令修改 参考: http://serverfault.com/questions/27332/how-to-take-ownership-of-files-from-the-command-line takeown /F somedir /A /R icalcs somedir /grant:r User:F /T  当文件夹长度超过255,就会不起作用了   2. 用cgywin来修改  参考 http://stackoverflow.com ...
 1. 安装Apache2.2 , Tomcat apt-get install apache2 apt-get install tomcat7   2. 在 /etc/apache2/mods-enabled  开启 proxy_ajp 和 proxy 模块 sudo a2enmod proxy_ajp sudo a2enmod proxy  3. 编辑 /etc/apache2/ites-enabled/000-default 文件, 在 <VirtualHost *:80></VirtualHost> 之间增加 # for ajp Proxy ...

java file zip and upzip

    博客分类:
  • zip
java zip file use Apache Compress private void zip(File file) throws IOException { zipFile = new File(file.getParent(), file.getName()+".zip"); FileOutputStream fOut = null; BufferedOutputStream bOut = null; ZipArchiveOutputStream tOut = null; ...
   描述: RDS上面的mysql建在 Zone  A上面, 在 Zone A 下面的ec2 机器连不上去, 但是其他Zone 机器都可以连上, 本机也可以。    解决方案: 对于Zone A下面的ec2 机器,在RDS的 DB Security Group 里面, 需要添加的不是Zone A下面ec2 机器的public ip, 而是添加在cmd密码 用ipconfig 看到的那个ip地址。
Global site tag (gtag.js) - Google Analytics