python
文章平均质量分 76
lgstudyvc
这个作者很懒,什么都没留下…
展开
-
解决This system is not registered with RHN
我们在redhat中使用yum命令的时候,可能会遇到这种情况,yum install build-essential提示This system is not registered with RHN,然后yum安装失败。下面分享一下解决办法。 解决办法1Redhat之所以会出现这个错误是因为没有注册RHN,我们只需要更新一下yum的源原创 2015-06-24 10:32:14 · 747 阅读 · 0 评论 -
Python3.x和Python2.x的区别
Python3.x和Python2.x的区别这个星期开始学习Python了,因为看的书都是基于Python2.x,而且我安装的是Python3.1,所以书上写的地方好多都不适用于Python3.1,特意在Google上search了一下3.x和2.x的区别。特此在自己的空间中记录一下,以备以后查找方便,也可以分享给想学习Python的friends.1.性能Py3.0运原创 2015-06-09 17:07:42 · 622 阅读 · 0 评论 -
python进行yum提示找不到目录
网友甲:1 红帽长使用yun -y install tkinter时 2 --现象:-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory--查找python#whereis pythonpython: /usr/bin/python /usr/bin/pyt原创 2015-06-24 17:34:45 · 11652 阅读 · 3 评论 -
RedHat Linux 安装oracle11g
1、准备oracle安装文件Oracle11gR2包含两个文件linux_11gR2_database_1of2.zip和linux_11gR2_database_2of2.zip,将这两个文件通过SSH上传到/usr/local/oracle中。解压安装文件到当前目录[root@localhost root]#cd /usr/local/oracle[root@localho原创 2015-07-03 16:33:10 · 711 阅读 · 0 评论 -
linux中查找,which和whereis
find最强大,什么都能查which只能查可执行文件whereis只能查二进制文件、说明文档,源文件等locate能查所以,但跟whereis一样都是查数据库里的内容。which 只能寻找执行文件 ,并在PATH变量里面寻找。whereis 从linux文件数据库(/var/lib/slocate/slocate.db)寻找,所以有可能找到刚刚删除,或者没有原创 2015-06-29 16:53:33 · 704 阅读 · 0 评论 -
RedHat下安装Python3
RedHat下安装Python3步骤1. 下载解压。$ wget https://www.python.org/ftp/python/3.4.1/Python-3.4.1.tgz$ tar zxvf Python-3.4.1.tgz2. 进入解压后的目录,执行安装配置$ ./configure或指定安装目录$ ./configure --prefix=/opt/原创 2015-06-23 15:58:27 · 5663 阅读 · 0 评论