- 浏览: 575206 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (174)
- JBPM (3)
- WWF (0)
- JavaScript (11)
- J2EE (40)
- OperationSystem (11)
- 数据库 (12)
- CSS (1)
- Ajax (2)
- J2SE (30)
- Tools (10)
- 服务器中间件 (3)
- 异常 (0)
- Flex (5)
- jQuery (11)
- html (9)
- Ejb (1)
- HTML5 Shiv–让该死的IE系列支持HTML5吧 (1)
- Spring (9)
- Quartz (3)
- log4j (1)
- maven (1)
- cpdetector (1)
- JSON (1)
- log4jdbc (1)
- asm (8)
- FusionCharts (1)
- jqplot (1)
- highcharts (1)
- excanvas (1)
- html5 (1)
- jpcap介绍 (1)
- weblogic (3)
- URLURLClassLoader (0)
- URLClassLoader (1)
- ant (2)
- ivy (2)
- nexus (1)
- IT (0)
- LoadRunner (1)
- SCSS (1)
- ruby (1)
- webstorm (1)
- typescript (1)
- Jboss7 (1)
- wildfly (1)
- oracle (5)
- esb (0)
- dubbo (2)
- zookeeper (3)
- eclipse (1)
- Android (2)
- Studio (1)
- Google (1)
- 微信 (1)
- 企业号 (1)
- Linux (13)
- Oracle12c (1)
- Hadoop (1)
- InletexEMC (1)
- Windows (1)
- Netty (3)
- Marshalling (2)
- Protobuf (1)
- gcc (1)
- Git (1)
- GitLab (1)
- shell (2)
- java (3)
- Spring4 (1)
- hibernate4 (1)
- postgresql (1)
- ApacheServer (2)
- Tomcat (2)
- ApacheHttpServer (2)
- realvnc (1)
- redhat (7)
- vncviewer (1)
- LVS (4)
- LVS-DR (1)
- RedHat6.5 (5)
- LVS-NAT (1)
- LVS-IPTUNNEL (2)
- LVS-TUN (1)
- keepalived (2)
- yum (1)
- iso (1)
- VMware (1)
- redhat5 (1)
- ha (1)
- nginx (2)
- proguard (1)
- Mat (1)
- DTFJ (1)
- axis2 (1)
- web service (1)
- centos (1)
- random (1)
- urandom (1)
- apache (1)
- IBM (1)
- cve (1)
- 漏洞 (1)
- JDBC (1)
- DataSource (1)
- jdk (1)
- tuxedo (2)
- wtc (1)
最新评论
-
skying007:
好资料,谢谢分享给啊
FusionCharts在服务器端导出图片(J2EE版) -
cgnnzg:
大神好 可以发一份源码给我学习么 多谢了 978241085 ...
springmvc+dubbo+zookeeper -
jifengjianhao:
求源码:854606899@qq.com
springmvc+dubbo+zookeeper -
wdloyeu:
shihuan8@163.com邮箱网盘在哪,没找到。能给份源 ...
Java Socket长连接示例代码 -
huangshangyuanji:
求代码:45613032@qq.com
springmvc+dubbo+zookeeper
RedHat 6.5 x64位
[root@gyum ~]# mkdir -p /mnt/cdrom
[root@gyum ~]# df –h
[root@gyum ~]# yum repolist
[root@gyum ~]# yum clean all
[root@gyum ~]# cd /opt
[root@gyum opt]# ls
rh rhel-server-6.5-x86_64-dvd.iso
[root@gyum ~]# cd /etc/yum.repos.d/
[root@gyum yum.repos.d]# ls
dvd.repo
[root@gyum opt]# mount -t iso9660 -o loop rhel-server-6.5-x86_64-dvd.iso /mnt/cdrom/
或者
[root@gyum opt]# mount -t iso9660 -o loop /opt/rhel-server-6.5-x86_64-dvd.iso /mnt/cdrom/
[root@gyum opt]# df –h
[root@gyum opt]# yum repolist
[root@gyum opt]# yum list|grep vsftpd
[root@gyum opt]# yum -y install gcc
dvd.repo文件内容如下:
[rhel-dvd]
name=Red Hat Enterprise Linux $releasever - $dvd
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[HighAvailability]
name=HighAvailability
baseurl=file:///mnt/cdrom/HighAvailability
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[LoadBalancer]
name=LoadBalancer
baseurl=file:///mnt/cdrom/LoadBalancer
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ResilientStorage]
name=ResilientStorage
baseurl=file:///mnt/cdrom/ResilientStorage
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ScalableFileSystem]
name=ScalableFileSystem
baseurl=file:///mnt/cdrom/ScalableFileSystem
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Server]
name=Server
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@gyum opt]# yum makecache
[root@gyum opt]# yum list | wc -l
6425
---------------------------------------------------------------------------
RedHat 7.2 x64位
[root@gyum opt]# mount -o ro /dev/cdrom /mnt/cdrom
dvd7.repo文件内容如下
[rhel-dvd7]
name=Red Hat Enterprise Linux $releasever - $dvd7
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
----------------------------------------------------------------------------
RedHat 5.9 x64位
[root@gyum opt]# mount -o loop /dev/cdrom /mnt/cdrom
dvd5.repo文件内容如下
[Server]
name=Server
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=VT
baseurl=file:///mnt/cdrom/VT
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Cluster]
name=Cluster
baseurl=file:///mnt/cdrom/Cluster
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=ClusterStorage
baseurl=file:///mnt/cdrom/ClusterStorage
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
----------------------------------------------------------------------------
CentOS 6.5 x64位
[root@gyum opt]# mount -o loop /dev/cdrom /mnt/cdrom
centos6.repo文件内容如下
[cent-centos6]
name=CentOS $releasever - $centos6
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
----------------------------------------------------------------------------
CentOS 7.3 x64位
[root@gyum opt]# mount -o loop /dev/cdrom /mnt/cdrom
centos7.repo文件内容如下
[cent-centos7]
name=CentOS-$releasever - $centos7
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
----------------------------------------------------------------------------
有时候在执行mount -o loop /dev/cdrom /mnt/cdrom后仍然不能正确执行如下命令:
yum list|grep vsftpd
报如下错误:
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 8827.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 27 M RSS (916 MB VSZ)
Started: Tue Oct 1 19:21:47 2019 - 03:17 ago
State : Sleeping, pid: 8827
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 27 M RSS (916 MB VSZ)
Started: Tue Oct 1 19:21:47 2019 - 03:19 ago
State : Sleeping, pid: 8827
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 27 M RSS (916 MB VSZ)
Started: Tue Oct 1 19:21:47 2019 - 03:21 ago
State : Sleeping, pid: 8827
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 27 M RSS (916 MB VSZ)
Started: Tue Oct 1 19:21:47 2019 - 03:23 ago
State : Sleeping, pid: 8827
......
【注】: 关注上面的/var/run/yum.pid文件, yum.pid文件中的内容为8827, 这个错误的含义是有yum进程在运行, 一台Linux主机只能有一个yum进程, 所以必须把当前的yum进程干掉才能再次使用mount命令挂接, 这里要注意的是kill -9命令不能干掉yum进程, 。
正确干掉yum进程的命令如下:
rm -f /var/run/yum.pid
执行完成后再次执行mount -o loop /dev/cdrom /mnt/cdrom就可以了, 然后用如下命令验证:
yum list|grep vsftpd
此时已经正常了, 。
[root@gyum ~]# mkdir -p /mnt/cdrom
[root@gyum ~]# df –h
[root@gyum ~]# yum repolist
[root@gyum ~]# yum clean all
[root@gyum ~]# cd /opt
[root@gyum opt]# ls
rh rhel-server-6.5-x86_64-dvd.iso
[root@gyum ~]# cd /etc/yum.repos.d/
[root@gyum yum.repos.d]# ls
dvd.repo
[root@gyum opt]# mount -t iso9660 -o loop rhel-server-6.5-x86_64-dvd.iso /mnt/cdrom/
或者
[root@gyum opt]# mount -t iso9660 -o loop /opt/rhel-server-6.5-x86_64-dvd.iso /mnt/cdrom/
[root@gyum opt]# df –h
[root@gyum opt]# yum repolist
[root@gyum opt]# yum list|grep vsftpd
[root@gyum opt]# yum -y install gcc
dvd.repo文件内容如下:
[rhel-dvd]
name=Red Hat Enterprise Linux $releasever - $dvd
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[HighAvailability]
name=HighAvailability
baseurl=file:///mnt/cdrom/HighAvailability
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[LoadBalancer]
name=LoadBalancer
baseurl=file:///mnt/cdrom/LoadBalancer
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ResilientStorage]
name=ResilientStorage
baseurl=file:///mnt/cdrom/ResilientStorage
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ScalableFileSystem]
name=ScalableFileSystem
baseurl=file:///mnt/cdrom/ScalableFileSystem
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Server]
name=Server
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@gyum opt]# yum makecache
[root@gyum opt]# yum list | wc -l
6425
---------------------------------------------------------------------------
RedHat 7.2 x64位
[root@gyum opt]# mount -o ro /dev/cdrom /mnt/cdrom
dvd7.repo文件内容如下
[rhel-dvd7]
name=Red Hat Enterprise Linux $releasever - $dvd7
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
----------------------------------------------------------------------------
RedHat 5.9 x64位
[root@gyum opt]# mount -o loop /dev/cdrom /mnt/cdrom
dvd5.repo文件内容如下
[Server]
name=Server
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=VT
baseurl=file:///mnt/cdrom/VT
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Cluster]
name=Cluster
baseurl=file:///mnt/cdrom/Cluster
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=ClusterStorage
baseurl=file:///mnt/cdrom/ClusterStorage
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
----------------------------------------------------------------------------
CentOS 6.5 x64位
[root@gyum opt]# mount -o loop /dev/cdrom /mnt/cdrom
centos6.repo文件内容如下
[cent-centos6]
name=CentOS $releasever - $centos6
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
----------------------------------------------------------------------------
CentOS 7.3 x64位
[root@gyum opt]# mount -o loop /dev/cdrom /mnt/cdrom
centos7.repo文件内容如下
[cent-centos7]
name=CentOS-$releasever - $centos7
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
----------------------------------------------------------------------------
有时候在执行mount -o loop /dev/cdrom /mnt/cdrom后仍然不能正确执行如下命令:
yum list|grep vsftpd
报如下错误:
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 8827.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 27 M RSS (916 MB VSZ)
Started: Tue Oct 1 19:21:47 2019 - 03:17 ago
State : Sleeping, pid: 8827
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 27 M RSS (916 MB VSZ)
Started: Tue Oct 1 19:21:47 2019 - 03:19 ago
State : Sleeping, pid: 8827
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 27 M RSS (916 MB VSZ)
Started: Tue Oct 1 19:21:47 2019 - 03:21 ago
State : Sleeping, pid: 8827
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 27 M RSS (916 MB VSZ)
Started: Tue Oct 1 19:21:47 2019 - 03:23 ago
State : Sleeping, pid: 8827
......
【注】: 关注上面的/var/run/yum.pid文件, yum.pid文件中的内容为8827, 这个错误的含义是有yum进程在运行, 一台Linux主机只能有一个yum进程, 所以必须把当前的yum进程干掉才能再次使用mount命令挂接, 这里要注意的是kill -9命令不能干掉yum进程, 。
正确干掉yum进程的命令如下:
rm -f /var/run/yum.pid
执行完成后再次执行mount -o loop /dev/cdrom /mnt/cdrom就可以了, 然后用如下命令验证:
yum list|grep vsftpd
此时已经正常了, 。
- RedHat6.5用镜像文件配置yum源.zip (158.1 KB)
- 下载次数: 3
发表评论
-
Linux下ZooKeeper集群搭建
2017-12-26 17:19 702shihuan830619@163.com邮箱的网盘里&quo ... -
RedHat7的非root用户调用xclock
2017-05-16 15:12 2041错误提示:Error: Can't open display: ... -
RedHat6.5安装配置LVS-IPTUNNEL -KeepAlived
2016-04-20 15:17 797操作系统主机名外部IP(VIP)内部IP(DIP)服务软件主备 ... -
RedHat6.5安装配置LVS-IPTUNNEL
2016-04-19 17:27 936操作系统主机名外部IP(VIP)内部IP(DIP)软件RedH ... -
RedHat6.5安装配置LVS-NAT
2016-04-18 23:19 876操作系统主机名外部IP(VIP)内部IP(DIP)软件RedH ... -
RedHat6.5安装配置LVS-DR
2016-04-17 21:46 914操作系统主机名外部IP(VIP)内部IP(DIP)软件RedH ... -
realvnc使用
2016-03-23 17:19 1223远端实验服务器: RedHat 6.5 一、在Linux上安 ... -
java调用shell脚本
2016-01-26 00:53 1273附件java执行shell.rar里是已经下载好的jar包。 ... -
shell脚本编程
2016-01-26 00:13 815例1: 用vi编辑文件echodate ... -
Linux目录名称
2016-01-25 22:23 829[root@testgitlab /]# 这个是根目录 [ ... -
RedHat6.5在线安装GitLab
2016-01-22 21:09 2877https://gitlab.com/gitlab-org/g ... -
Linux安装Git服务
2016-01-22 21:01 1170[root@testgit rpmlib]# pwd /opt ... -
Linux安装ruby
2016-01-22 20:53 3241https://rvm.io/ 官方网站 https: ... -
验证RedHat6是否能够联网
2016-01-22 20:46 1071验证RedHat6是否能够联网: [root@testagen ... -
Linux非联网状态安装gcc依赖包
2016-01-22 20:43 3616cloog-ppl-0.15.7-1.2.el6.x86_64 ... -
Hadoop集群环境搭建
2015-12-11 17:09 1128最近学习了下hadoop的安装。下面详细说明下步骤。 一、环 ... -
Linux hosts文件参考内容
2015-11-11 17:13 1062127.0.0.1 localhost localhost ...
相关推荐
Redhat6.5配置yum本地源
RedHat6.5的linux虚拟机,包含切换屏幕插件。亲测,可用
内含需要安装的rpm包和修改后的yum源配置。 python-urlgrabber-3.9.1-11.el6.noarch.rpm yum-3.2.29-40.el6.centos.noarch.rpm yum-metadata-parser-1.1.2-16.el6.i686.rpm yum-metadata-parser-1.1.2-16.el6.x86_64...
redhat 6.5 yum源
RedHat Linux RHEL6配置本地YUM源
yum 是 yellowdog updater modified 简称,说白了就是升级版的rpm, yum的出现主要是由于rpm的那烦人的依赖关系所致, yum能够自动解决软件包之间的各种依赖关系(线性依赖, 环形依赖)
redhat 6 配置 yum 源的两种方法,一种是用本地镜像文件做yum源,一种是在线设置yum源
redhat6.5镜像下载地址,用于openstack,系统默认使用本地局域网的YUM源
记一次redhat6.5网络yum源配置-附件资源
Redhat6.5_x86_64默认不支持yum,安装yum程序所需的rpm包
yum源的挂载 学习yum源了解linux系统,yum源是linux系统一个很好用的源程序安装包的集合。
2、现在使用umount /dev/sr0将此光盘卸载,因为后面的目录太长,不好配置yum源(如果只有命令行的,请忽略第二条,看第三条,直接挂载就行) / 3、使用mount /dev/sr0 /mnt 挂载, 这个/dev/sr0是你的光盘盘符,可以...
在redhat6.5离线安装docker1.7所需要rpm包
本人使用RedHat6.5,基于linux2.6.26内核配置与编译。
用于无法连接外网的局域网Nginx安装,主要针对Redhat6.5。已经过测试,可在在局域网Linxu中正常使用。内含所需安装包。
本文主要介绍redhat系统yum源的配置问题,感兴趣的朋友可以看看。
redhat6.5 openssh9.3
详细介绍了Linux下yum命令,yum源安装的详细过程,很好的帮助开发人员,熟悉了解yum命令,正确安装yum本地源
redhat6.5安装telnet服务,安装步骤如下:https://www.cnblogs.com/dzdwr3/p/6225125.html