2014年6月12日
摘要:
在src文件夹上移除Source Folder,再点右键-Build Path-Use as Source Folder,重新进行编译,一切正常了。
阅读全文
posted @ 2014-06-12 14:52
zhaofeng555
阅读(315)
推荐(0)
2014年6月4日
摘要:
STS(spring tools suite)每次开启都显示,比较烦人,可以在设置中禁用掉,具体方法:window->Perferences,然后查找dashboard,将启动时展示dashboard的勾选去掉即可启动的速度明显的变快了
阅读全文
posted @ 2014-06-04 22:02
zhaofeng555
阅读(317)
推荐(0)
2014年5月29日
摘要:
// 日期格式化 private static final ThreadLocal GMT_FORMATERS = new ThreadLocal() { protected SimpleDateFormat initialValue() { SimpleDateFormat gmtForma...
阅读全文
posted @ 2014-05-29 12:47
zhaofeng555
阅读(369)
推荐(0)
2014年5月23日
摘要:
webservice 抛异常,原因:public class HeaderHandler implements SOAPHandler{ @Override public boolean handleMessage(SOAPMessageContext context) { ...
阅读全文
posted @ 2014-05-23 22:30
zhaofeng555
阅读(796)
推荐(0)
2014年5月16日
摘要:
1.ctrl+q 打开查询窗口2.ctrl+/ 注释sql语句3.ctrl+shift +/ 解除注释4.ctrl+r 运行查询窗口的sql语句5.ctrl+shift+r 只运行选中的sql语句6.F6 ...
阅读全文
posted @ 2014-05-16 09:48
zhaofeng555
阅读(315)
推荐(0)
2014年5月8日
摘要:
运行:services.msc选择:VMware Authorization Service,运行它
阅读全文
posted @ 2014-05-08 11:36
zhaofeng555
阅读(337)
推荐(0)
2014年4月2日
摘要:
a、ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa b、cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys c、chmod 600 ~/.ssh/authorized_keys d、sudo service sshd restart
阅读全文
posted @ 2014-04-02 17:12
zhaofeng555
阅读(425)
推荐(0)
摘要:
1.下载Django。地址:https://www.djangoproject.com/download/2.解压3中得到的Django-1.6.2.tar.gz。使用下面的命令进行解压,解压后在当前目录得到Django-1.6.2文件夹:tar xzvf Django-1.6.2.tar.gz3.切换目录到Django-1.6.2文件夹下。命令: cd Django-1.6.24.安装Django(这一步需要python的支持,但默认安装linux的时候都会安装python)。命令: sudo python setup.py install5.进入python shell模式。命令: pyt
阅读全文
posted @ 2014-04-02 13:59
zhaofeng555
阅读(364)
推荐(0)
摘要:
为用户添加sudo命令功能:打开etc下的sudoers文件vi /etc/sudoers在 rootALL=(ALL)ALL 下面添加如下一行,然后保存关闭hadoopALL=(ALL)ALL(注1:网上有文档上是说先切换到root用户,然后修改sudoers的权限,再打开添加hadoopALL=(ALL)ALL ,然后再将权限改回为只读,这样就要特别注意一定要将权限改回为只读,不然“sudo”命令就无法使用了,很悲剧的说注2:添加 hadoopALL=(ALL)ALL 的意义在于能让hadoop用户使用“sudo”命令
阅读全文
posted @ 2014-04-02 11:40
zhaofeng555
阅读(691)
推荐(0)
摘要:
修改/etc/environment文件导致系统起不来。长按shift,进入恢复界面,然后以root方式登录命令行界面然后vi修改/etc/environment文件提示:Unable to open swap file for "/etc/environment",recovery impossible解决方法:mount /dev/hdax / -o rw,remount然后就可以修改 /etc/environment
阅读全文
posted @ 2014-04-02 09:46
zhaofeng555
阅读(476)
推荐(0)