CentOS7中基础服务配置
安装软件库
YUM
阿里云
开启EPEL
1
|
$ sudo yum-config-manager --enable epel
|
阿里云
Fedora
1
|
$ sudo yum install -y epel-release
|
1
|
$ sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
1
|
$ sudo yum clean all && yum makecache
|
检查
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
$ ls -al /etc/yum.repos.d/
# ...
#-rw-r--r--. 1 root root 957 Jul 10 23:23 epel.repo
#-rw-r--r--. 1 root root 1050 Oct 2 2017 epel-testing.repo
# ...
# 显示以上信息表示安装成功
$ sudo yum repolist
# ...
# epel/x86_64 Extra Packages for Enterprise Linux 7 ...
# ...
# 未显示以上信息表示epel源未开启
|
升级YUM
1
2
|
$ sudo yum update
$ sudo yum install yum-utils
|
基础工具
1
|
$ sudo yum info/search <tools-name>
|
1
2
3
4
|
$ sudo yum groupinstall -y development
$ sudo yum install -y gcc gcc-c++ zlib zlib-devel openssl openssl-devel bzip2-devel ncurses-devel \
readline-devel tk-devel pcre pcre-devel GeoIP gd libXpm libxslt sqlite-devel git wget curl
|
安装vim8
添加库
1
2
|
$ sudo curl -L https://copr.fedorainfracloud.org/coprs/mcepl/vim8/repo/epel-7/mcepl-vim8-epel-7.repo \
-o /etc/yum.repos.d/mcepl-vim8-epel-7.repo
|
升级
1
|
$ sudo yum update -y vim*
|
查看
1
2
3
4
|
$ vim --version
# VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Aug 2 2017 16:29:21)
# Included patches: 1-839
|
Openstack
Centos 7中发布了openstack相关软件,但是Centos-Base
仓库中默认没有包含openstack的软件目录。所以,你需要另外配置openstack的仓库来安装这些软件。
配置阿里云仓库
1
|
$ sudo wget https://mirrors.aliyun.com/repo/Centos-openstack.repo -O /etc/yum.repos.d/CentOS-openstack.repo
|
安装
1
|
$ sudo yum install -y openstack
|
链接
文章作者
longyue0521
上次更新
2019-01-02
许可协议
"署名-非商业性使用-相同方式共享 4.0 国际" 转载请保留作者及原文链接