- 浏览: 583855 次
- 性别:
- 来自: 上海
文章分类
- 全部博客 (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 743shihuan830619@163.com邮箱的网盘里&quo ... -
RedHat7的非root用户调用xclock
2017-05-16 15:12 2120错误提示:Error: Can't open display: ... -
RedHat6.5安装配置LVS-IPTUNNEL -KeepAlived
2016-04-20 15:17 835操作系统主机名外部IP(VIP)内部IP(DIP)服务软件主备 ... -
RedHat6.5安装配置LVS-IPTUNNEL
2016-04-19 17:27 983操作系统主机名外部IP(VIP)内部IP(DIP)软件RedH ... -
RedHat6.5安装配置LVS-NAT
2016-04-18 23:19 935操作系统主机名外部IP(VIP)内部IP(DIP)软件RedH ... -
RedHat6.5安装配置LVS-DR
2016-04-17 21:46 983操作系统主机名外部IP(VIP)内部IP(DIP)软件RedH ... -
realvnc使用
2016-03-23 17:19 1270远端实验服务器: RedHat 6.5 一、在Linux上安 ... -
java调用shell脚本
2016-01-26 00:53 1313附件java执行shell.rar里是已经下载好的jar包。 ... -
shell脚本编程
2016-01-26 00:13 852例1: 用vi编辑文件echodate ... -
Linux目录名称
2016-01-25 22:23 868[root@testgitlab /]# 这个是根目录 [ ... -
RedHat6.5在线安装GitLab
2016-01-22 21:09 2975https://gitlab.com/gitlab-org/g ... -
Linux安装Git服务
2016-01-22 21:01 1212[root@testgit rpmlib]# pwd /opt ... -
Linux安装ruby
2016-01-22 20:53 3330https://rvm.io/ 官方网站 https: ... -
验证RedHat6是否能够联网
2016-01-22 20:46 1107验证RedHat6是否能够联网: [root@testagen ... -
Linux非联网状态安装gcc依赖包
2016-01-22 20:43 3703cloog-ppl-0.15.7-1.2.el6.x86_64 ... -
Hadoop集群环境搭建
2015-12-11 17:09 1169最近学习了下hadoop的安装。下面详细说明下步骤。 一、环 ... -
Linux hosts文件参考内容
2015-11-11 17:13 1132127.0.0.1 localhost localhost ...
相关推荐
3. **上传镜像文件:** 将 Redhat 6.5 的 ISO 镜像文件通过 FTP 方式(确保为二进制模式)上传至 `/yum` 目录下。 #### 三、备份原有配置 在开始修改 Yum 的配置之前,首先需要备份现有的配置文件。这是因为如果新...
- **YUM 源配置**:系统默认使用本地局域网中的YUM源,这有助于提高软件包的下载速度和降低网络延迟。如果您的OpenStack环境中没有本地YUM源,可以删除`/etc/yum.repos.d/`目录下的repo文件,并将备份文件夹下的官方...
2. **下载新的配置文件**:从可靠的镜像站点下载对应RHEL 6.5的yum源配置文件。例如,可以选择阿里云、腾讯云等提供的RHEL镜像服务。 3. **编辑配置文件**:使用文本编辑器打开新下载的配置文件,如`rhel-6.5-...
4. `python-iniparse-0.3.1-2.1.el6.noarch.rpm`:这是一个解析和处理`.ini`配置文件的Python模块,`yum`使用它来处理配置文件中的设置。 5. `yum-plugin-fastestmirror-1.1.30-41.el6.noarch.rpm`:这个插件使得`...
Red Hat系统的Yum源配置问题主要涉及到Linux系统下的软件包管理工具Yum的使用和配置。Yum(Yellowdog Updater Modified)是基于RPM的Linux系统中用于安装、删除、更新、查询和管理RPM软件包的命令行工具。它是Red ...
在搭建本地yum源之前,需要挂载Red Hat Enterprise Linux 6.5的ISO镜像文件。使用以下命令挂载ISO镜像: `mount -o loop redhat6.5.iso /mnt` 这将挂载ISO镜像到/mnt目录下。 二、配置yum源文件 下一步是配置yum...
最后,我们需要修改yum的配置文件以指向CentOS的镜像源。你可以选择一个可靠的第三方镜像,例如网易的CentOS镜像。执行以下操作: ``` cd /etc/yum.repos.d/ wget ...
### Linux 6.5配置本地YUM仓库详解 在Linux环境下,YUM(Yellow dog Updater Modified)是一款非常实用的包管理器,它基于RPM包管理系统,通过维护一个元数据仓库来帮助用户轻松地安装、更新或卸载软件包。对于企业...
1. **上传镜像**:使用WinSCP工具将RHEL 6.5的ISO镜像文件上传到服务器的`/usr/local/src`目录。 2. **挂载ISO**:通过Putty远程连接服务器,创建一个挂载点`mkdir /media/cdrom`,然后使用`mount`命令将ISO文件...
总的来说,解决Redhat Linux 6中`yum`未注册的问题,关键在于切换到免费的第三方仓库,如CentOS的镜像源,然后重新安装和配置`yum`及相关组件。这样,即使没有Redhat的订阅,也能继续使用`yum`进行系统维护和软件...
本文档详尽地记录了在CentOS 6.5 x64环境下进行yum源配置及TeamViewer安装的过程,并针对过程中遇到的问题提供了详细的解决方案。通过本指南,读者可以了解如何设置可靠的软件仓库(yum源),以及如何成功安装...
6. **配置Keepalived**:创建并编辑 Keepalived 的配置文件,通常位于 `/etc/keepalived/keepalived.conf`。这个配置文件包括虚拟IP、VRRP实例、健康检查等设置。 7. **启动与管理Keepalived**:由于 Keepalived 在...
Red Hat Enterprise ...Red Hat Enterprise Linux 6.5 安装指南涵盖了从安装到网络设置再到使用系统镜像文件配置本地 yum 源的整个过程,需要对每一步骤进行详细的了解和规划,以确保安装的成功和服务器的稳定运行。
- 使用命令`df -h`来查看当前系统已挂载的镜像文件及其位置。 - 示例命令: `[root@zys 桌面]# df –h` 2. **取消原位置的镜像挂载**: - 如果之前已经挂载了镜像,需要先卸载它,避免冲突。 - 示例命令: `[root@...
在RHEL 6.5上,你可以使用`yum`命令来安装这些依赖: ```bash yum install binutils glibc-devel kernel-headers make ``` 安装完依赖后,可以开始下载GCC 4.4.7的安装包。通常,这个步骤涉及从官方网站或镜像站点...
- CentOS 6.5 (x86_64)可以从官方镜像站点下载。 - Oracle 11g R2 (Linux x86-64)则需要从Oracle官网获取,或者参考其他可靠的下载链接。 2. **安装CentOS**: - 安装虚拟机,配置40GB硬盘和2GB内存。 - 设置...
4. **配置YUM源**:在Linux系统中,YUM源是用于自动安装和更新软件的重要工具。配置本地YUM源可以极大地简化后续的软件安装和升级过程,提高效率。你需要添加或更新相应的YUM配置文件,并确保它们指向可靠的软件仓库...
同样,使用`yum`安装Tomcat,配置环境变量,启动服务,并确保其在系统启动时自动启动。 最后,我们将安装Eclipse,这是一款强大的集成开发环境(IDE),用于编写Java和其他语言的代码。Eclipse可以从官方网站下载,...
- Linux8.5 ISO镜像文件 - Zabbix 6.0 LTS安装包或YUM源 - Grafana 8.4.3安装包或二进制文件 3. 部署规划 3.1 ZABBIX 服务器规划 Zabbix服务器将承担监控任务,需要安装在一台独立的虚拟机上,配置足够的内存和...