03 2013 档案

摘要:E437: terminal capability “cm” required in Redhat or Centos 6If you try to use vi or another curses based application in Redhat or Centos 6 and you get the error :-E437: terminal capability “cm” requiredPress ENTER or type command to continueAnd you TERM type is something other than a vt100 like a d 阅读全文
posted @ 2013-03-29 11:35 破军 阅读(2199) 评论(0) 推荐(0) 编辑
摘要:#创建一个普通用户useradd user1 #创建用户user1passwd user1 *** #设置用户user1的密码vi/etc/password#找到新建的user1name:password:uid:gid:comment:home:shell#更改uid为0#重启ssh服务service sshd restart#直接赋予创建的用户root权限useradd -u 0 -o -g 0 user1#创建一个uid=0的用户user1说明:-u 0 就是建一个uid=0的帐号-o (注意是字母o,不是数字0)就是允许使用重复的id号-g 0 就是建一个gid=0的帐号使用Sercu 阅读全文
posted @ 2013-03-08 17:12 破军 阅读(12130) 评论(0) 推荐(0) 编辑
摘要:root@DB-02 ~]# mysql -u root-bash: mysql: command not found原因:这是由于系统默认会查找/usr/bin下的命令,如果这个命令不在这个目录下,当然会找不到命令,我们需要做的就是映射一个链接到/usr/bin目录下,相当于建立一个链接文件。首先得知道mysql命令或mysqladmin命令的完整路径,比如mysql的路径是:/usr/local/mysql/bin/mysql,我们则可以这样执行命令:# ln -s /usr/local/mysql/bin/mysql /usr/bin 阅读全文
posted @ 2013-03-08 10:30 破军 阅读(381) 评论(0) 推荐(0) 编辑
摘要:一、环境:系统版本:CentOS5.5MySQL版本:mysql-5.5.22二、步骤:1.安装需要系统库相关库文件:[root@localhost ~]#yum install -y gcc gcc-c++ gcc-g77 autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-devel*2.需要的两个包[root@localhost /]#cd /usr/local/src/[root@localhost src]#lltotal 29332-rw-r--r-- 1 root root5517 阅读全文
posted @ 2013-03-08 10:21 破军 阅读(490) 评论(0) 推荐(0) 编辑
摘要:Hi all,I installed Oracle Linux Server 6.3 selecting "software Development System" (java 1.6.0 comes with it).but I need to use Java 1.7So I downloaded jdk-7u10-linux-x64.rpmwhen I try to install it, I get the following error.Unpacking JAR files...rt.jar...Error: Could not open input file: 阅读全文
posted @ 2013-03-08 09:59 破军 阅读(329) 评论(0) 推荐(0) 编辑
摘要:http://www.oracle.com/technetwork/java/javase/archive-139210.html以前想找jdk都没有,现在终于找到可以下载历史jdk的页面了。 阅读全文
posted @ 2013-03-08 09:43 破军 阅读(161) 评论(0) 推荐(0) 编辑
摘要:总结一下方法:开机在DHCP...画面时有三秒时间给你按Shift+F10进入一个蓝色界面,共有四项,第一项:PXE/RPL,将第二项:Boot order 的结果修改为:Rom Disable 即可关闭DHCP显示,另:将第三项:Show config message 的结果修改为:Disable后开机会发现连:Shift+F10都看不到了!! 还有,想了一下,以前用ADSL共享上网的电脑都是用路由器的DHCP自动分配IP地址的,而电脑只要设置为自己获取IP和自动获取DNS就可以了,但这样的话,每次开机电脑就会从DHCP服务器里获取IP等参数,电脑启动就相对慢了。有时也会出来DHCP ... 阅读全文
posted @ 2013-03-01 16:17 破军 阅读(764) 评论(0) 推荐(0) 编辑
摘要:this kernel requires an x86-64 cpu,but only detected an i686 cpu我的是联想g470,主板设置中默认没有开启虚拟化设置。开机》F2键》进入bois设置,选择configuration中的intel virtual techmology 设置为enable。关机(不要重启)是设置生效。重现用virtualBox建立虚拟空间,安装。就是进入config设置在cpu里面开启虚拟功能。 阅读全文
posted @ 2013-03-01 16:16 破军 阅读(698) 评论(0) 推荐(0) 编辑