ywzhi.com
域名年龄: 12年10个月16天HTTP/1.1 200 OK 服务器:nginx 访问时间:2015年09月13日 12:02:46 类型:text/html Transfer-Encoding: chunked 连接:关闭 动作:Accept-Encoding 过期时间:2015年09月13日 12:02:45 缓存控制:不缓存 Content-Encoding: gzip
运维志 首页 关于 为RHEL5架设本地yum源(From DVD镜像) 发布时间:July 30, 2012 // 分类:Linux // No Comments 为了方便做实验,在安装依赖关系较复杂的软件时,能够自动分析依赖关系,安装需要的软件,比较省事。 ########################################################################################### 系统环境: Red Hat Enterprise Linux Server release 5 软件环境: vsftpd-2.0.5-10.el5 createrepo-0.4.4-2.fc6 yum-3.0.1-5.el5 ########################################################################################### 一、配置yum源服务端(192.168.4.1) 1、从RHEL5 DVD光盘中复制软件包。 [root@localhost ~]# mount /dev/cdrom /media/cdrom [root@localhost ~]# cp -prf /media/cdrom /var/ftp/rhel5 [root@localhost ~]# umount /dev/cdrom2、安装createrepo软件包。 [root@localhost ~]# rpm -ivh /var/ftp/rhel5/Server/createrepo-0.4.4-2.fc6.noarch.rpm3、重新创建repository信息库。 [root@localhost ~]# cd /var/ftp/rhel5/Server/ [root@localhost Server]# createrepo -g repodata/comps-rhel5-server-core.xml ./[root@localhost Server]# cd ../Cluster/ [root@localhost Cluster]# createrepo -g repodata/comps-rhel5-cluster.xml ./[root@localhost Cluster]# cd ../ClusterStorage [root@localhost ClusterStorage]# createrepo -g repodata/comps-rhel5-cluster-st.xml ./[root@localhost ClusterStorage]# cd ../VT [root@localhost VT]# createrepo -g repodata/comps-rhel5-vt.xml ./[root@localhost VT]# rm -rf ../*/.olddata/4、启动vsftpd服务(按默认配置即可)。 [root@localhost ~]# /etc/init.d/vsftpd start二、客户端测试1、创建.repo配置文件。 [root@localhost ~]# vi /etc/yum.repos.d/rhel5-rpms-from-lansvr.repo [Cluster] name=Cluster Directory baseurl=ftp://192.168.4.1/rhel5/Cluster enabled=1 gpgcheck=0[ClusterStorage] name=ClusterStorage Directory baseurl=ftp://192.168.4.1/rhel5/ClusterStorage enabled=1 gpgcheck=0[Server] name=Server Directory baseurl=ftp://192.168.4.1/rhel5/Server enabled=1 gpgcheck=0[VT] name=VT Directory baseurl=ftp://192.168.4.1/rhel5/VT enabled=1 gpgcheck=02、清除旧的缓存数据。 [root@localhost ~]# yum clean all3、软件安装测试 1)能够使用yum下载安装软件。 例如,使用以下命令会下载安装bind、bind-chroot软件包(自动查找解决依赖关系): [root@localhost ~]# yum install bind-chroot 2)使用system-config-packages“添加删除程序”(在X-Window环境)。 应该能够浏览并安装集群、集群存储、虚拟化……等各项软件包。…… Linux修改主机名不重启生效方法 发布时间:July 20, 2012 // 分类:Linux // No Comments Linux修改主机名不重启生效方法在一些环境中出现需要修改主机名的情况,Linux修改主机名不重启生效只需要做以下几步即可1. 修改/etc/sysconfig/network中的主机名 HOSTNAME=vm01 2、修改 /etc/hosts添加对应的关系 192.168.21.153 vm02 3、验证主机名是否可以Ping通 PING vm02 (192.168.21.153) 56(84) bytes of data. 64 bytes from vm02 (192.168.21.153): icmp_seq=1 ttl=64 time=0.126 ms 4、设定当前主机名 hostname vm02 5、重启网络服务 /etc/init.d/network restart Shutting down interface eth0: [ OK ] Shutting down loopback interface: [ OK ] Bringing up loopback interface: [ OK ] Bringing up interface eth0: [ OK ] 6、退出生效 exit退出之后就可以看到提示符里的主机名已经是vm02 Last login: Tue Jul 3 23:53:02 2012 from 192.168.7.238 [nagios@vm02 ~]$ Linux mount iso loop 限制 发布时间:July 5, 2012 // 分类:Linux // No Comments 在一台linux机器上mount ISO文件,由于ISO文件众多,当mount超过8个时,会提示loop数过少解决方法:1. 修改/etc/modprobe.conf文件a 2.6 ke
© 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询
2025-05-12 20:34, Process in 0.0081 second.