centos环境下如何配置yum源
来源:互联网 发布:成都网络综合布线 编辑:程序博客网 时间:2024/05/14 07:36
- 重新安装一台虚拟机
这台虚拟机安装成桌面版(Desktop)或者安装httpd
- 下载rpm包
在使用yum时,提示寻找的yum的路径粘贴到浏览器
http://ftp.sjtu.edu.cn/centos/6.6/os/x86_64/repodata/repomd.xml
将路径后缀改为package即可
http://ftp.sjtu.edu.cn/centos/6.6/os/x86_64/Packages/
- 上传rmp包到任意目录
cd /var/www/html
rz -y
- 创建挂载目录
mkdir –m 755 centos
mkdir –m 755 others
- 将cenos镜像上传
cd /var/www/html
rz -y
挂载CentOS的IOS镜像文件
mount -o loop /var/www/html/CentOS-6.5-x86_64-bin-DVD1.iso
/var/www/html/centos- 启动httpserver服务器
service httpd start
- 访问
关闭防火墙
默认是80端口
192.168.56.204
- 通过浏览器访问
192.168.56.204/xxx
配置centos源
1、进入yum源目录cd /etc/yum.repo.d/2、注释掉所有repo文件a. rename .repo .repo.bak *3、增加自己的repo文件touch centos.repo4、添加内容配置centos本地源:[centos-local] name=CentOS-Local 6.5_64 baseurl=http://192.168.0.222/centos enabled=1 gpgcheck=0 [centos-local]#yum源的名称 name=CentOS-Local 6.5_64#名字 baseurl=http://192.168.0.222/centos#本地源 enabled=1#开启本地源 gpgcheck=0#去除验证检查5、刷新 刷新:yum clean all 查找源中的包:yum repolist all
配置其他源
1、安装createrepo yum -y install createrepo 2、 生成配置文件:cd /var/www/html/others createrepo .3、在源文件中添加内容 配置cloudstack源[cloudstack-local] name=CloudStack-Local 4.0.2 baseurl=http://192.168.0.222/ others enabled=1 gpgcheck=0 刷新:yum clean all 查看:yum repolist all 使用: 1. 进入yum源目录 cd /etc/yum.repo.d/ 1. 上传yum源文件 centos.repo4、刷新 刷新:yum clean all 查找源中的包:yum repolist all
阅读全文
0 0
- centos环境下如何配置yum源
- [软件仓库]CentOS下配置yum本地源服务环境
- CentOS如何配置国内YUM源
- Centos下简单配置本地YUM源
- CentOS 下yum配置本地源
- Centos下yum本地源的配置
- vmware下centos配置本地yum源
- CentOS 下配置网络yum源
- CentOS 7下配置本地yum源及yum客户端
- CentOS下yum本地配置
- centos 下配置 yum 全!
- centos Yum源 配置
- CentOS配置yum源
- CentOS配置yum源
- centos yum源配置
- CentOs yum源配置
- Centos yum源配置
- centos yum源配置
- 方法参数
- python-正则表达式
- HDU-1394-Minimum Inversion Number树状数组
- ORA-01691: unable to extend lob segment 问题解决
- 普通程序员如何入门深度学习?
- centos环境下如何配置yum源
- sql monitor 实践
- Java将图片处理成背景透明的圆形图片
- Linux下vim的常用命令
- first_report_gu
- C++ 继承、虚继承、虚函数类内存分配
- tomcat+myeclipse+mysql环境搭建
- 深入理解数据结构之链表
- 【NOIP2017普及组正式赛】跳房子