问题1
[root@localhost ~]# gluster peer status
Connection failed. Please check if gluster daemon is operational.
原因:未开启glusterd服务
解决方法:开启glusterd服务
/etc/init.d/glusterd start
问题2
[root@loc...
分类:
其他好文 时间:
2014-05-16 02:50:16
阅读次数:
391
【题目】
Given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
【题意】
给定一个整数,将其表示成罗马数字
【思路】
罗马数字中只使用如下七个基值字母:M,D,C,L,X,V,I,分别用来表示1000、500、100、50、10、5、1。
罗马数组数规则:
基本数字Ⅰ、X 、C 中的任何一个,自身连用构成数目,或者放在大数的右边连用...
分类:
其他好文 时间:
2014-05-16 01:46:55
阅读次数:
312
String slctpsql="select id ,"+uid+","+ddd+","+score+",'"+mark+"' ,"+markid+" ,"+exam.getId()+" from Test_Paper where testBaseId=(select id from Test_Base where baseTestId="+judgemap.get(i).getId()+" a...
分类:
数据库 时间:
2014-05-15 20:36:45
阅读次数:
434
在多网卡的机器上使用RMI时出现异常:java.rmi.ConnectException:Connection refused to host: ......
分类:
其他好文 时间:
2014-05-15 20:30:11
阅读次数:
213
1、统计和收集netapp存储fas3240/2240上的服务器分布情况和使用容量。2、确定迁移顺序,按照操作系统类别windows2003/2008进行p2v准备。3、在6台新刀片上部署vmwarevsphere esxi server 5.5环境,将第二步骤收集的原有系统进行p2v迁移,迁移环境需要较好的ip链路和ip地址资源。链路要求:要求刀片服务供应商准备双向拷贝要求达到1000M网络速率...
分类:
其他好文 时间:
2014-05-15 20:21:04
阅读次数:
348
mongoose是一款非常容易使用的web服务器,实现了对socket的封装,它提供给我们的接口非常简洁,并且能提供很好的性能。
几个重要的结构:
struct mg_context
服务器上下文,保存着服务器的配置信息。每个mg_context都代表一个服务器。
struct mg_connection
表示HTTP的连接
st...
分类:
其他好文 时间:
2014-05-15 20:10:07
阅读次数:
364
packageday01;importjava.io.FileInputStream;importjava.io.InputStream;importjava.sql.Connection;importjava.sql.DriverManager;importjava.sql.ResultSet;importjava.sql.Statement;importjava.util.Properties;publicclassTestClassLoad{publicstaticvoidmain(String[]ar..
分类:
数据库 时间:
2014-05-15 19:13:52
阅读次数:
389
1.安装VMwarevCenterConverterStandaloneClient运行虚拟机,File--VirtualizeaPhysicalMachine这时如果电脑中没有VMwarevCenterConverterStandaloneClient,则会进行安装。安装过程之后图标会出现在桌面上,双击运行选择连接到本地服务器,登陆点击转换计算机这个,可以将本地..
分类:
其他好文 时间:
2014-05-15 19:07:19
阅读次数:
471
http://my.oschina.net/dillan/blog/133877python输出格式化及函数formathttp://my.oschina.net/dillan/blog/133877Python中的字符串格式化1.Python中将两个整数相除,默认结果是为整数的。但我们可以通过下面的方法,使得两个整数相除的结果为小数。from__future__importdivis..
分类:
编程语言 时间:
2014-05-15 18:44:25
阅读次数:
568
1、gem安装出现下面错误
root@ubuntu:/home/git/gitlab# sudo gem install bundler --no-ri --no-rdoc
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https...
分类:
其他好文 时间:
2014-05-15 18:19:48
阅读次数:
304