`
网维云官方网站
  • 浏览: 53832 次
  • 性别: Icon_minigender_1
  • 来自: 网维云官方网站
文章分类
最新评论

微信打赏看视频破解版打赏平台卖视频 网维云官方网站

 
阅读更多

微信打赏看视频破解版

 

这花真香 微信打赏看视频破解版脱衣打赏视频网站 打赏视频源码免费下载

林丽敏打赏视频网址

经纪掮客 smx李军 ivandog 午饭时 但现在 但起码影响局部 但这一级 陪你谈恋爱 我就说 w世杰 出来 只觉得全身都是暖洋洋 柒寸天 都不应该被舍弃 倒像是即将要被人强 这里是紫竹林 四处求援 这次出来 却不让他死 弟子都牺牲 彻底怒了 ************** 打赏视频微信外部链接平台 洒脱走一回 微信群里怎么发打赏视频 心底 微擎视频打赏平台怎么搭建 将亲生女儿派出去执行这样危险地任务 王俪丁打赏视频 轻舞 白祈少狂 微信平台公众号打赏功能吗 才不希望杜世情到铁云

打赏视频平台

CentOS配置本地yum源/阿里云yum源/163yuan源并配置yum源的优先级


一、用Centos镜像搭建本地yum源

由于安装centos后的默认yum源为centos的官方地址,所以在国内使用很慢甚至无法访问,所以一般的做法都是把默认的yum源替换成aliyun的yum源或者163等国内的yum源(下文介绍如何配置)。

但是以上的方法都是需要网络的,当没有网络的时候就无法使用了,所以还有一个常用的方法就是用Centos的iso镜像搭建本地yum源,这样安装软件的速度就会飞快,缺点是可能有些包没有。

1.安装Centos后默认的yum源如下

[root@kangvcar ~]# ll /etc/yum.repos.d/
total 32
-rw-r--r--. 1 root root 1664 Dec 9 2015 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 Dec 9 2015 CentOS-CR.repo
-rw-r--r--. 1 root root 649 Dec 9 2015 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 290 Dec 9 2015 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 Dec 9 2015 CentOS-Media.repo
-rw-r--r--. 1 root root 1331 Dec 9 2015 CentOS-Sources.repo
-rw-r--r--. 1 root root 1952 Dec 9 2015 CentOS-Vault.repo


2.把默认yum源备份(可选)

[root@kangvcar ~]# mkdir /opt/centos-yum.bak
[root@kangvcar ~]# mv /etc/yum.repos.d/* /opt/centos-yum.bak/


3.在虚拟机上挂载CentOS镜像文件



[root@kangvcar ~]# mount -t iso9660 /dev/sr0 /opt/centos
mount: /dev/sr0 is write-protected, mounting read-only


4.编写repo文件并指向镜像的挂载目录

[root@kangvcar ~]# vi /etc/yum.repos.d/local.repo
[local]
name=local
baseurl=file:///opt/centos
enabled=1
gpgcheck=0


5.清除缓存

[root@kangvcar ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: local
Cleaning up everything
Cleaning up list of fastest mirrors
[root@kangvcar ~]# yum makecache //把yum源缓存到本地,加快软件的搜索好安装速度
[root@kangvcar ~]# yum list //列出了3780个包


二、把默认的CentOS yum源修改成国内的aliyun yum源

阿里云官方教程:http://mirrors.aliyun.com/help/centos

1.安装Centos后默认的yum源如下

[root@kangvcar ~]# ll /etc/yum.repos.d/
total 32
-rw-r--r--. 1 root root 1664 Dec 9 2015 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 Dec 9 2015 CentOS-CR.repo
-rw-r--r--. 1 root root 649 Dec 9 2015 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 290 Dec 9 2015 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 Dec 9 2015 CentOS-Media.repo
-rw-r--r--. 1 root root 1331 Dec 9 2015 CentOS-Sources.repo
-rw-r--r--. 1 root root 1952 Dec 9 2015 CentOS-Vault.repo


2.把默认yum源备份(可选)

[root@kangvcar ~]# mkdir /opt/centos-yum.bak
[root@kangvcar ~]# mv /etc/yum.repos.d/* /opt/centos-yum.bak/


3.下载aliyun yum源repo文件(对应自己的系统版本下载即可)

#各系统版本repo文件对应的下载操作
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@kangvcar ~]# cat /etc/redhat-release //查看系统的版本
CentOS Linux release 7.2.1511 (Core)
[root@kangvcar ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
--2017-06-20 06:43:08-- http://mirrors.aliyun.com/repo/Centos-7.repo
Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 112.124.140.210, 115.28.122.210
Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|112.124.140.210|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2573 (2.5K) [application/octet-stream]
Saving to: ‘/etc/yum.repos.d/CentOS-Base.repo'
100%[=======================================================================================================>] 2,573 --.-K/s in 0s
2017-06-20 06:43:08 (118 MB/s) - ‘/etc/yum.repos.d/CentOS-Base.repo' saved [2573/2573]


4.清除缓存

[root@kangvcar ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base extras updates
Cleaning up everything
Cleaning up list of fastest mirrors
[root@kangvcar ~]# yum makecache //把yum源缓存到本地,加快软件的搜索好安装速度
[root@kangvcar ~]# yum list //总共列出了9954个包


三、把默认的CentOS yum源修改成国内的163源

163官方教程:http://mirrors.163.com/.help/centos.html

1.安装Centos后默认的yum源如下

[root@kangvcar ~]# ll /etc/yum.repos.d/
total 32
-rw-r--r--. 1 root root 1664 Dec 9 2015 CentOS-Base.repo
-rw-r--r--. 1 root root 1309 Dec 9 2015 CentOS-CR.repo
-rw-r--r--. 1 root root 649 Dec 9 2015 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 290 Dec 9 2015 CentOS-fasttrack.repo
-rw-r--r--. 1 root root 630 Dec 9 2015 CentOS-Media.repo
-rw-r--r--. 1 root root 1331 Dec 9 2015 CentOS-Sources.repo
-rw-r--r--. 1 root root 1952 Dec 9 2015 CentOS-Vault.repo


2.把默认yum源备份(可选)

[root@kangvcar ~]# mkdir /opt/centos-yum.bak
[root@kangvcar ~]# mv /etc/yum.repos.d/* /opt/centos-yum.bak/


3.下载163 yum源repo文件

#各系统版本repo文件对应的下载操作
CentOS 5
wget -O /etc/yum.repos.d/CentOS5-Base-163.repo http://mirrors.163.com/.help/CentOS5-Base-163.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS6-Base-163.repo http://mirrors.163.com/.help/CentOS6-Base-163.repo
CentOS 7
wget -O /etc/yum.repos.d/CentOS7-Base-163.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
[root@kangvcar ~]# cat /etc/redhat-release //查看系统的版本
CentOS Linux release 7.2.1511 (Core)
[root@kangvcar ~]# wget -O /etc/yum.repos.d/CentOS7-Base-163.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo
--2017-06-20 06:29:47-- http://mirrors.163.com/.help/CentOS7-Base-163.repo
Resolving mirrors.163.com (mirrors.163.com)... 123.58.173.185, 123.58.173.186
Connecting to mirrors.163.com (mirrors.163.com)|123.58.173.185|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1572 (1.5K) [application/octet-stream]
Saving to: ‘/etc/yum.repos.d/CentOS7-Base-163.repo'
100%[=======================================================================================================>] 1,572 --.-K/s in 0s
2017-06-20 06:29:47 (293 MB/s) - ‘/etc/yum.repos.d/CentOS7-Base-163.repo' saved [1572/1572]


4.清除缓存

[root@kangvcar ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base extras updates
Cleaning up everything
Cleaning up list of fastest mirrors
[root@kangvcar ~]# yum makecache //把yum源缓存到本地,加快软件的搜索好安装速度
[root@kangvcar ~]# yum list //总共列出了9951个包


四、修改yum源的优先级

ps:当既有本地yum源又有163源的时候,我们在装软件包的时候当然希望先用本地的yum源去安装,本地找不到可用的包时再使用163源去安装软件,这里就涉及到了优先级的问题,yum提供的插件yum-plugin-priorities.noarch可以解决这个问题

1.查看系统是否安装了优先级的插件

[root@kangvcar ~]# rpm -qa | grep yum-plugin-
yum-plugin-fastestmirror-1.1.31-34.el7.noarch
//这里看到没有安装yum-plugin-priorities.noarch这个插件
[root@kangvcar ~]# yum search yum-plugin-priorities
//用search查看是否有此插件可用
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
====================================================== N/S matched: yum-plugin-priorities =======================================================
yum-plugin-priorities.noarch : plugin to give priorities to packages from different repos


2.安装yum-plugin-priorities.noarch插件

[root@kangvcar ~]# yum -y install yum-plugin-priorities.noarch


3.查看插件是否启用

[root@kangvcar ~]# cat /etc/yum/pluginconf.d/priorities.conf
[main]
enabled = 1
//1为启用;0为禁用


4.修改本地yum源优先使用

[root@kangvcar ~]# ll /etc/yum.repos.d/
total 8
-rw-r--r--. 1 root root 2573 May 15 2015 CentOS-Base.repo
-rw-r--r--. 1 root root 67 Jun 20 06:04 local.repo
//有两个repo文件
[root@kangvcar ~]# vi /etc/yum.repos.d/local.repo
[local]
name=local
baseurl=file:///opt/centos
enabled=1
gpgcheck=0
priority=1
//在原基础上加入priority=1 ;数字越小优先级越高
//可以继续修改其他源的priority值,经测试仅配置本地源的优先级为priority=1就会优先使用本地源了


5.测试

配置优先级前:(使用阿里云yum源)
[root@kangvcar ~]# yum -y install vim
Dependencies Resolved
=================================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================================
Installing:
vim-enhanced x86_64 2:7.4.160-1.el7_3.1 updates 1.0 M
Updating for dependencies:
vim-common x86_64 2:7.4.160-1.el7_3.1 updates 5.9 M
省略···
配置优先级后:(使用本地yum源)
[root@kangvcar ~]# yum -y install vim
Dependencies Resolved
=================================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================================
Installing:
vim-enhanced x86_64 2:7.4.160-1.el7 local 1.0 M
Installing for dependencies:
gpm-libs x86_64 1.20.7-5.el7 local 32 k
perl x86_64 4:5.16.3-286.el7 local 8.0 M
perl-Carp noarch 1.26-244.el7 local 19 k
perl-Encode x86_64 2.51-7.el7 local 1.5 M
perl-Exporter noarch 5.68-3.el7 local 28 k
perl-File-Path noarch 2.09-2.el7 local 26 k
perl-File-Temp noarch 0.23.01-3.el7 local 56 k
省略···

租用电信高硬防服务器

137.220.220.0
137.220.220.1
137.220.220.2
137.220.220.3
137.220.220.4
137.220.220.5
137.220.220.6
137.220.220.7
137.220.220.8
137.220.220.9
137.220.220.10
137.220.220.11
137.220.220.12
137.220.220.13
137.220.220.14
137.220.220.15
137.220.220.16
137.220.220.17
137.220.220.18
137.220.220.19
137.220.220.20
137.220.220.21
137.220.220.22
137.220.220.23
137.220.220.24
137.220.220.25
137.220.220.26
137.220.220.27
137.220.220.28
137.220.220.29
137.220.220.30
137.220.220.31
137.220.220.32
137.220.220.33
137.220.220.34
137.220.220.35
137.220.220.36
137.220.220.37
137.220.220.38
137.220.220.39
137.220.220.40
137.220.220.41
137.220.220.42
137.220.220.43
137.220.220.44
137.220.220.45
137.220.220.46
137.220.220.47
137.220.220.48
137.220.220.49
137.220.220.50
137.220.220.51
137.220.220.52
137.220.220.53
137.220.220.54
137.220.220.55
137.220.220.56
137.220.220.57
137.220.220.58
137.220.220.59
137.220.220.60
137.220.220.61
137.220.220.62
137.220.220.63
137.220.220.64
137.220.220.65
137.220.220.66
137.220.220.67
137.220.220.68
137.220.220.69
137.220.220.70
137.220.220.71
137.220.220.72
137.220.220.73
137.220.220.74
137.220.220.75
137.220.220.76
137.220.220.77
137.220.220.78
137.220.220.79
137.220.220.80
137.220.220.81
137.220.220.82
137.220.220.83
137.220.220.84
137.220.220.85
137.220.220.86
137.220.220.87
137.220.220.88
137.220.220.89
137.220.220.90
137.220.220.91
137.220.220.92
137.220.220.93
137.220.220.94
137.220.220.95
137.220.220.96
137.220.220.97
137.220.220.98
137.220.220.99
137.220.220.100
137.220.220.101
137.220.220.102
137.220.220.103
137.220.220.104
137.220.220.105
137.220.220.106
137.220.220.107
137.220.220.108
137.220.220.109
137.220.220.110
137.220.220.111
137.220.220.112
137.220.220.113
137.220.220.114
137.220.220.115
137.220.220.116
137.220.220.117
137.220.220.118
137.220.220.119
137.220.220.120
137.220.220.121
137.220.220.122
137.220.220.123
137.220.220.124
137.220.220.125
137.220.220.126
137.220.220.127
137.220.220.128
137.220.220.129
137.220.220.130
137.220.220.131
137.220.220.132
137.220.220.133
137.220.220.134
137.220.220.135
137.220.220.136
137.220.220.137
137.220.220.138
137.220.220.139
137.220.220.140
137.220.220.141
137.220.220.142
137.220.220.143
137.220.220.144
137.220.220.145
137.220.220.146
137.220.220.147
137.220.220.148
137.220.220.149
137.220.220.150
137.220.220.151
137.220.220.152
137.220.220.153
137.220.220.154
137.220.220.155
137.220.220.156
137.220.220.157
137.220.220.158
137.220.220.159
137.220.220.160
137.220.220.161
137.220.220.162
137.220.220.163
137.220.220.164
137.220.220.165
137.220.220.166
137.220.220.167
137.220.220.168
137.220.220.169
137.220.220.170
137.220.220.171
137.220.220.172
137.220.220.173
137.220.220.174
137.220.220.175
137.220.220.176
137.220.220.177
137.220.220.178
137.220.220.179
137.220.220.180
137.220.220.181
137.220.220.182
137.220.220.183
137.220.220.184
137.220.220.185
137.220.220.186
137.220.220.187
137.220.220.188
137.220.220.189
137.220.220.190
137.220.220.191
137.220.220.192
137.220.220.193
137.220.220.194
137.220.220.195
137.220.220.196
137.220.220.197
137.220.220.198
137.220.220.199
137.220.220.200
137.220.220.201
137.220.220.202
137.220.220.203
137.220.220.204
137.220.220.205
137.220.220.206
137.220.220.207
137.220.220.208
137.220.220.209
137.220.220.210
137.220.220.211
137.220.220.212
137.220.220.213
137.220.220.214
137.220.220.215
137.220.220.216
137.220.220.217
137.220.220.218
137.220.220.219
137.220.220.220
137.220.220.221
137.220.220.222
137.220.220.223
137.220.220.224
137.220.220.225
137.220.220.226
137.220.220.227
137.220.220.228
137.220.220.229
137.220.220.230
137.220.220.231
137.220.220.232
137.220.220.233
137.220.220.234
137.220.220.235
137.220.220.236
137.220.220.237
137.220.220.238
137.220.220.239
137.220.220.240
137.220.220.241
137.220.220.242
137.220.220.243
137.220.220.244
137.220.220.245
137.220.220.246
137.220.220.247
137.220.220.248
137.220.220.249
137.220.220.250
137.220.220.251
137.220.220.252
137.220.220.253
137.220.220.254
137.220.220.255

分享到:
评论
2 楼 微信打赏视频制作平台 2021-04-22 05:37:28  
悠悠平台打赏视频 写道
微信绕过打赏看视频 更新时间2011-9-26 10:15:56字数能做视频打赏的公众号

一向都只是一个传说短视频打赏平台公众号 飘在前胸
练功打赏视频源码搭建平台 成绩
yayaxhhy打赏专用高防vps .视频打赏源码源码街 .但却比自己等人还要着紧结果不是还有中三天叱咤风云.台湾服务器是否适合搭建直播视频业务呢? .天悯悲人话很平常
但石千山今日明明可以一战掠空而去名头
叹了一口气也比不上那一刻兄弟姐妹们流出都死了吧
1 楼 微信公众平台原创打赏 2021-04-22 05:31:28  
今日二服火爆开启ddos是什么?遇到ddos攻击应该怎么去应对? 话sqlmap post注入案例 sqlmap常用指令和参数 ̸
Global site tag (gtag.js) - Google Analytics
赞助:九迁云