最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
常用的CentOS 7系统yum源集合
时间:2022-06-30 20:59:33 编辑:袖梨 来源:一聚教程网
记录几个常用的CentOS 7下的yum源,包括PHP7,MariaDB,Redis,Nginx等,以及阿里云源,方便虚拟机或云主机上安装这些软件。
1.PHP7 remi源
使用remi源:
$ sudo rpm --import http://rpms.fam***illecollet.com/RPM-GPG-KEY-remi
$ sudo rpm -ivh http://rpms.*fa*millec*ollet.com/enterprise/remi-release-7.rpm
2.MariaDB 10.1
Here is your custom MariaDB YUM repository entry for CentOS. Copy and paste it into a file under /etc/yum.repos.d/ (we suggest naming the file MariaDB.repo or something similar).
# MariaDB 10.1 CentOS repository list - created 2016-03-31 09:25 UTC
# http://maria***db.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.m*ari*a*db.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
执行安装命令:
sudo yum install MariaDB-server MariaDB-client
3.Redis
wget http://download.re***dis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
设置service方式启动,参见:quickstart和Redis生成环境自动启动
4.Nginx 1.8
To add NGINX yum repository, create a file named /etc/yum.repos.d/nginx.repo and paste one of the configurations below:
CentOS:
[nginx]
name=nginx repo
baseurl=http://nginx.org**/*packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
5.阿里云
① 备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
② 下载新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.*al*iy*un.com/repo/Centos-7.repo
③ 之后运行yum makecache生成缓存
相关文章
- 大侠立志传一支花怎么结缘 一支花结缘流程攻略 12-06
- 星球重启迷雾异种角使用方法详解 12-06
- 胡桃工具箱官网入口分享 2024最新版本官网地址 12-06
- 大侠立志传曼陀罗怎么结缘 曼陀罗结缘攻略 12-06
- 大侠立志传华青青怎么结缘 华青青结缘攻略 12-06
- 魔兽世界怀旧服Plus灰谷之战声望军需官位置分享 12-06