Linux软件管理

YUM工具

本地源

1 .备份移除官方YUM库
mv /etc/yum.repos.d/* /tmp

2.编写本地YUM库配置文件
vim /etc/yum.repos.d/dvd.repo
[dvd]
name=dvd
baseurl=file:///mnt/cdrom
gpgcheck=0

3.挂载安装光盘

mkdir /mnt/cdrom

vim /root/.bashrc

mount /dev/cdrom /mnt/cdrom

//挂载光盘写进自启动

4.使用YUM安装和卸载程序

yum -y install httpd //安装apache

systemctl start httpd //启动软件

systemctl enable httpd //设计开机启动

systemctl stop firewalld //关闭防火墙

systemctl disable firewalld //禁止防火墙自启

网络源


1.备份

2.wget http://mirrors.aliyun.com/repo/Centos-7.repo -O /etc/yum.repos.d/CentOS-Base.repo //下载YUM源

3.yum makecache // 更新YUM源

4.wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo //Linux的额外软件包

5.yum makecache

使用YUM管理RPM包

yum -y install httpd

yum -y update httpd

yum -y remove httpd

yum list httpd //查询HTTP程序 带@已安装

yum repolist //查询YUM源

RPM工具

rpm -ivh wget-1.14-15.el7.x86_64.rpm //-i 安装 v可视 h 百分比

rpm -q wget //查询

rpm -evh wget-1.14-15.el7.x86_64 //卸载

源码包实战

1.wget http://tengine.taobao.org/download/tengine-2.2.0.tar.gz

2.yum -y install gcc make zlib-devel pcre pcre-devel openssl-devel //安装编译环境

3.useradd www

tar xvf tengine-2.2.0.tar.gz

cd tengine-2.2.0 //解压

4../configure –user=www –group=www –prefix=/usr/local/nginx //配置

5.make //编译

6.make install //安装

7. /usr/local/nginx/sbin/nginx //启动测试

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇