上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 40 下一页
  2014年1月4日
摘要: 1 到oracle 官方网站下载jdk1.72 然后mv到 /usr/local/目录下 2.1 path 下添加/usr/sbin/3 使用update-alternative用来对系统中不同版本的同个软件进行管理 sudo update-alternatives --install /usr/... 阅读全文
posted @ 2014-01-04 22:14 c3tc3tc3t 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1. 安装增强功能包(Guest Additions)安装好Ubuntu 9.04后,运行Ubuntu并登录。然后在VirtualBox的菜单里选择"设备(Devices)" -> "安装增强功能包(Install Guest Additions)"。你会发现在Ubuntu桌面上多出一个光盘图标,这张光盘默认被自动加载到了文件夹/media/cdom0。进入命令行终端,输入:cd /media/cdom0sudo sh ./VBoxLinuxAdditions-x86.run 开始安装工具包。安装完毕后会提示要重启Ubuntu。2. 设置共享文件夹 阅读全文
posted @ 2014-01-04 21:40 c3tc3tc3t 阅读(179) 评论(0) 推荐(0) 编辑
  2014年1月3日
摘要: 原文 http://blog.zol.com.cn/2322/article_2321774.html#cat /proc/meminfo | grep "MemFree" | awk '{print $2}' (用来查看free的内存有多少)之前先了解一下内存的基本知识#free -mtotal used free shared buffers cachedMem: 1002 769 232 0 62 421-/+ buffers/cache: 286 715Swap: 1153 0 1153第一部分Mem行:total 内存总数: 1002Mused 已 阅读全文
posted @ 2014-01-03 17:35 c3tc3tc3t 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 原文 http://blog.zol.com.cn/2322/article_2321767.html功能强大的shell:if条件语句 if语句测试条件,测试条件返回真(0)或假(1)后,可相应执行一系列语句。if语句结构对错误检查非常有用。其格式为:if 条件1then 命令1elif 条件2then 命令2else 命令3fi–b 当file存在并且是块文件时返回真 -c 当file存在并且是字符文件时返回真 -d 当pathname存在并且是一个目录时返回真 -e 当pathname指定的文件或目录存在时返回真 -f 当file存在并且是正规文件时返回真 -g 当由pathname指定 阅读全文
posted @ 2014-01-03 17:34 c3tc3tc3t 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 原文 http://blog.zol.com.cn/2322/article_2321763.html$( ) 与 ` ` (反引号)在 bash shell 中,$( ) 与 ` ` (反引号) 都是用来做命令替换用(command substitution)的。所谓的命令替换与我们第五章学过的变量替换差不多,都是用来重组命令行:* 完成引号里的命令行,然后将其结果替换出来,再重组命令行。例如:[code]$ echo the last sunday is $(date -d "last sunday" +%Y-%m-%d)[/code]如此便可方便得到上一星期天的日期了 阅读全文
posted @ 2014-01-03 17:32 c3tc3tc3t 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 转自 ttp://blog.csdn.net/security134/article/details/6742156最近学习SHELL编程 这篇文章很好很重要。有些东西不能想当然。同时不是表面看起来那么简单。以为自己懂了。其实差的还远Cuibtoy发布于 2008-8-28 http://www.linuxdiyf.com/viewarticle.php?id=105505我打赌正在看这篇文章的你, 超过99%的可能性你对这个问题的理解是错的. 或者至少是有偏差的.我深信这是一种教育法上的广泛错误, 那就是告诉大家说:if [ condition ]then...fi这是bash中条件语句的. 阅读全文
posted @ 2014-01-03 16:27 c3tc3tc3t 阅读(264) 评论(0) 推荐(0) 编辑
  2013年12月28日
摘要: 今天在Opensuse下配置vim 遇到两个问题配置插件找到一个很好的博客。学到一些有用技巧http://hahaya.github.io/2013/07/26/use-vundle.html但是遇到两个问题 一个是YouCompleteMe unavailable: requires Vim compiled with Python 2.x support解决办法http://stackoverflow.com/questions/3373914/compiling-vim-with-python-support就是安装zypper ar http://download.opensuse.o 阅读全文
posted @ 2013-12-28 18:51 c3tc3tc3t 阅读(4030) 评论(0) 推荐(0) 编辑
摘要: IndexReader。使用过程中有时会出现document被删除,reader还是原来的reader没有改变,所以使用openifchanged保证,又因为IndexReader 初始化很耗费资源所以放在静态代码块里private static Directory directory = null; private static IndexReader reader = null; static { try { directory = FSDirectory.open(new File("E:/lucene/index02")); reader = IndexReader 阅读全文
posted @ 2013-12-28 13:07 c3tc3tc3t 阅读(338) 评论(0) 推荐(0) 编辑
  2013年12月26日
摘要: 安装时候报: Oracle 支持在具有 DHCP 分配的公共 IP 地址的系统上进行安装。但应使用静态 IP 地址来配置系统的主网络接口, 以便 Oracle 软件正常工作。有关在配置有 DHCP 的系统上安装软件的详细信息, 请参阅 Installation Guide。网上找方案解决 下面方式好使到控制面板/添加硬件,在向导中选择“是,已经连接了此硬件”→“网络适配器”→“Microsoft Loopback Adapter”,添加完成,你会发现新建了个“本地连接”,用的就是这个假的“Microsoft Loopback Adapter”(因为根本就没有连接这个硬件,只是骗下Oracle而 阅读全文
posted @ 2013-12-26 21:11 c3tc3tc3t 阅读(1610) 评论(0) 推荐(0) 编辑
摘要: 今天遇到这个问题网上搜了一下答案找到了转贴http://blog.csdn.net/lidew521/article/details/8546155plsql 登录后提示:Database character set (AL32UTF8) and Client character set (ZHS16GBK) are different.Character set conversion may cause unexpected results.Note: you can set the client character set through the NLS_LANG environment 阅读全文
posted @ 2013-12-26 20:32 c3tc3tc3t 阅读(397) 评论(0) 推荐(0) 编辑
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 40 下一页