SSH分客户端openssh-client和openssh-server如果你只是想登陆别的机器的SSH只需要安装openssh-client(ubuntu有默认安装,如果没有则sudo apt-get install openssh-client),如果要使本机开放SSH服务就需要安装openssh-serversudo apt-get install openssh-server然后确认sshserver是否启动了:ps -e |grep ssh如果看到sshd那说明ssh-server已经启动了。如果没有则可以这样启动:sudo /etc/init.d/ssh start 或者 serv Read More
posted @ 2014-01-08 14:11 奋斗中的毛毛虫 Views(210) Comments(0) Diggs(0) Edit
转载自:http://wangqinqin.iteye.com/blog/547277优势:1.节省传递时间。2.并发处理。PreparedStatement:1)addBatch()将一组参数添加到PreparedStatement对象内部。2)executeBatch()将一批参数提交给数据库来执行,如果全部命令执行成功,则返回更新计数组成的数组。Statement:1)addBatch(Stringsql)方法会在批处理缓存中加入一条sql语句。2)executeBatch()执行批处理缓存中的所有sql语句。注意:PreparedStatement中使用批量更新时,要先设置好参数后再使 Read More
posted @ 2014-01-08 13:09 奋斗中的毛毛虫 Views(862) Comments(0) Diggs(0) Edit
转载自:http://www.cnblogs.com/yuxc/archive/2012/11/04/2753391.html今天在维护服务器的时候,发现有5个nova-novncproxy的僵尸进程。26327 ? S 0:05 \_ /usr/bin/python /usr/bin/nova-novncproxy --config-file=/etc/nova/nova.conf4765 ? Z 0:00 \_ [nova-novncproxy] 4766 ? Z 0:00 \_ [nova-novncproxy] 4767 ? Z 0:00 \_ [nova-novncproxy] 47 Read More
posted @ 2014-01-08 10:25 奋斗中的毛毛虫 Views(287) Comments(0) Diggs(0) Edit
转载自:http://www.jb51.net/LINUXjishu/34604.htmlTOP是一个动态显示过程,即可以通过用户按键来不断刷新当前状态.如果在前台执行该命令,它将独占前台,直到用户终止该程序为止.比较准确的说,top命令提供了实时的对系统处理器的状态监视.它将显示系统中CPU最“敏感”的任务列表.该命令可以按CPU使用.内存使用和执行时间对任务进行排序;而且该命令的很多特性都可以通过交互式命令或者在个人定制文件中进行设定.top - 12:38:33 up 50 days, 23:15,7 users,load average: 60.58, 61.14, 61.22Task Read More
posted @ 2014-01-08 09:33 奋斗中的毛毛虫 Views(312) Comments(0) Diggs(0) Edit