上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: /* * java multiple upload demo * @author:luowen * @time:2013-11-06 * */import java.io.*;import java.net.*;class UploadClient{ public static void main(String[] args)throws Exception { if(args.length != 1) { System.out.println("输入错误,请正确输入"); return; ... 阅读全文
posted @ 2013-11-06 21:23 arvim 阅读(349) 评论(0) 推荐(0) 编辑
摘要: /** * java file upload demo * @author:luowen * @time:2013-11-03 */import java.net.*;import java.io.*;class UploadClient{ public static void main(String[] args)throws Exception { //建立客户端socket对象 Socket s = new Socket("127.0.0.1",10000); BufferedReader bur = new B... 阅读全文
posted @ 2013-11-03 14:33 arvim 阅读(497) 评论(0) 推荐(0) 编辑
摘要: /* * java socket send and receice demo * @author:luowen * @time:2013-11-1 * */import java.net.*;class SocketSend{ public static void main(String[] args)throws Exception { //创建socket服务 DatagramSocket ds = new DatagramSocket(); byte[] buf = "yes iam demo".getBytes(); ... 阅读全文
posted @ 2013-11-02 09:29 arvim 阅读(905) 评论(0) 推荐(0) 编辑
摘要: /* *java list file demo @author:luowen @time:2013-10-25 * */import java.io.*;import java.util.*;class FileToList{ public static void main(String[] args) { File f = new File("d:/") ; List list = new ArrayList(); toList(f,list); toFile(list); } publi... 阅读全文
posted @ 2013-10-25 23:32 arvim 阅读(382) 评论(0) 推荐(0) 编辑
摘要: /* java中字符字节的转化使用 @author:luowen @time:2013-10-24*/ import java.io.*; class ZijieZifu { public static void main(String[] args)throws IOException { //输入 InputStream in = System.in; //输出 OutputStream out = System.out; ... 阅读全文
posted @ 2013-10-24 10:22 arvim 阅读(510) 评论(0) 推荐(0) 编辑
摘要: /* java 获取输入,大写在显示 @author:luowen @time:2013-10-23*/import java.io.*;class GetParam{ public static void main(String[] args) { InputStreamReader isr = null; BufferedReader br = null; try { InputStream in = System.in; isr = new InputStreamReader(in); br = new BufferedReader(isr); ... 阅读全文
posted @ 2013-10-23 18:30 arvim 阅读(592) 评论(0) 推荐(0) 编辑
摘要: /* java 的文件复制 @author:luowen @time:2013-10-23 */import java.io.*;class TextMove{ public static void main(String[] args) throws IOException { //创建读写文件对象 FileReader fr = new FileReader("demo.txt"); FileWriter fw = new FileWriter("demo1.txt"); //创建缓冲区 BufferedReader br = new Buffere 阅读全文
posted @ 2013-10-23 18:23 arvim 阅读(230) 评论(0) 推荐(0) 编辑
摘要: /* * Linux 建立信任主机 * 实现异地备份 *@author:luowen *@time:2013-10-21 主机一: 简历密钥对:#ssh-keygen -t rsa 生成公钥 id rsa.pub 将成成的id rsa.pub文件拷贝到主机而上面去对应的用户宿主目录中去 主机二 在用户宿主目录中手动创建.ssh目录 cat id_rsa.pub >> .ssh/authorized_keys chmod 700 .ssh chmod 600 .ssh/authorized_keys /* * rsync实现增量备份 crontab -e 0 2 * * 1-6 /u 阅读全文
posted @ 2013-10-21 16:40 arvim 阅读(1698) 评论(0) 推荐(0) 编辑
摘要: /* @author:luowen * @time:2013-10-20 * Linux 软raid技术 1.raid0 --> 多块硬盘构成一个分区,当数据读写同事读取写入到多块硬盘中,速度快,当一块硬盘出现问题,数据就不完整了 2.raid1 --> 镜像卷 两块硬盘,读取就放一块中,另一块则用于备份作用,浪费磁盘空间 3.raid5 --> 至少3块硬盘,每块硬盘部分空间用于存储其他硬盘的村粗信息,当一块硬盘出现问题的时候,可以通过其他的两块硬盘恢复数据 4.raid10 --> raid0 + raid1 组合版本 5.raid6 --> 至少4块硬盘,( 阅读全文
posted @ 2013-10-20 11:29 arvim 阅读(247) 评论(0) 推荐(0) 编辑
摘要: /** * Linux 的计划任务 * @author: luowen * @time: 2013-10-15 */ /* 1.at命令实现计划任务 at now + 5 minutes at> /usr/bin/wall 每个2分钟一侧,每天的12点到14点,每年的3月到6月,9月到12月,没个星期的星期一到星期五 */ 阅读全文
posted @ 2013-10-15 16:49 arvim 阅读(451) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页