一、概述
RPM包
源码包
二、RPM包管理
1.YUM工具
(1) 简介:
(2)YUM本地源,系统安装光盘
0.目的:通知LInux服务器,通过本机的系统光盘获得软件包,并安装
1.观察YUM核心配置目录 yum下载地址存储文件,以repo结尾
2.删除官方YUM库
3.编写本地YUM库配置文件
4.挂载安装光盘
ls -a 查看隐藏文件
init 6重启
5.使用YUM安装或卸载软件
yum install -y httpd 安装软件
systemctl start httpd 启动软件
systemctl stop firewalld 关闭防火墙
systemctl disable firewalld 禁用防火墙开机自启
6.模拟客户机访问
(3)使用YUM管理RPM 包
1.安装
全新安装
重新安装
升级安装
升级系统
2.查询
查询HTTP程序
3.卸载
2.RPM工具
1.前言 RPM是redhat系统,RPM包的基本工具,与yum功能基本相同
RPM无法处理依赖
2.安装(i)
-ivh i:install 安装 v 可视 h 百分比
提示信息
3.查询(q)
4.卸载(e)
三、源码包管理
1.获取源码包
2.实战案例
1.下载Tengine
tengine官网下载
2.部署Tengine
准备编译环境
解压
配置
注意 配置这个地方需要CD到解压后的目录里,否则配置失败
编译
安装
启动测试
提前关闭HTTP
四丶配置阿里云库
1.删除原有yum配置库
2.下载阿里官网配置
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
EPEL扩展
epel镜像_epel下载地址_epel安装教程-阿里巴巴开源镜像站
wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo
3.更新YUM库
yum makecache
查看可安装镜像包
yum repolist
4.执行安装
systemctl start httpd
启动http服务