2007年09月
1、ps 查看系统的进程 ps -Al | grep java2、kill 杀死进程 kill 20331 数字为ps查出来的进程号3、tail 参看文件 tail -f /opt/jboss-4.2.0.GA/log/200709071802.log -n 500 -f 为持续更新 -n 为初始显示的行数4、rm 删除 rm -fr /opt/jboss-4.2.0.GA/server/default/deploy/SecurityCenter_S.war/ -f 为强制删除 -r 删除目录5、unzip 解压缩zip文件 unzip -d /opt/jboss-4.2.0.GA/server/default/deploy/ SecurityCenter_S.war.zip -d 指定目的目录6、nohup 在后台运行程序 nohup /opt/jboss-4.2.0.GA/bin/run.sh -b 0.0.0.0 > /opt/jboss-4.2.0.GA/log/200709062219.log 即使用户退阅读全文>
发表于 @ 2007年09月07日 18:18:00|评论(loading...)|编辑
一、区别
InputStream、OutputStream直接操作byte数组。
Reader、Writer在操作时会进行decode、encode,会根据你的系统属性编码格式对数据进行编码或解码。但是当文件的编码格式与当前系统的不一致时,就需要做编码的转换。
二、转换
new OutputStreamWriter(FileUtils.openOutputStream(new File(filePath)), "ms932")
new InputStreamReader(FileUtils.openInputStream(new File(filePath)), "ms932") 阅读全文>
发表于 @ 2007年09月06日 20:25:00|评论(loading...)|编辑