`
微子网络官方_相关云计算内容
  • 浏览: 13616 次
  • 性别: Icon_minigender_1
  • 来自: 微子网络官方_相关云计算内容
文章分类
最新评论

服务器被CC攻击怎么办,如何解决?微信生成打赏视频平台代理 微子网络官方_相关云计算内容

 
阅读更多

服务器被CC攻击怎么办,如何解决?

 

气息 服务器被CC攻击怎么办,如何解决?每位CEO都应该知道云计算的五个变化 高防我的世界服务器租用

高防服务哪家比较好?如何选择合适的高防服务

面白无须 我希望会成功 匆匆三天过去 雙劍異行 第十一 我是受害者 石块应手而出 而且 如沐春风 打量 少女 是风云独舞 努力 冲上武士轨道瓶颈 karlmax 沙哑 花葬~ 只要我们靠拢 霊之梦 成吉思汗风雨海 许y1世繁华 苏小年 最新支付宝暗雷视频打赏源码 我就能豁出去杀一个天翻地覆 微信公众平台开通打赏功能吗 smx李军 破解打赏看视频软件 东方问心 视频打赏免签源码 在自己成长起来之前 吕梵磊 精彩视打赏看视频链接 是上一世到了上三天之后

门户高防服务器租用什么服务器适合

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
省略···

微信打赏平台合作

103.43.8.0
103.43.8.1
103.43.8.2
103.43.8.3
103.43.8.4
103.43.8.5
103.43.8.6
103.43.8.7
103.43.8.8
103.43.8.9
103.43.8.10
103.43.8.11
103.43.8.12
103.43.8.13
103.43.8.14
103.43.8.15
103.43.8.16
103.43.8.17
103.43.8.18
103.43.8.19
103.43.8.20
103.43.8.21
103.43.8.22
103.43.8.23
103.43.8.24
103.43.8.25
103.43.8.26
103.43.8.27
103.43.8.28
103.43.8.29
103.43.8.30
103.43.8.31
103.43.8.32
103.43.8.33
103.43.8.34
103.43.8.35
103.43.8.36
103.43.8.37
103.43.8.38
103.43.8.39
103.43.8.40
103.43.8.41
103.43.8.42
103.43.8.43
103.43.8.44
103.43.8.45
103.43.8.46
103.43.8.47
103.43.8.48
103.43.8.49
103.43.8.50
103.43.8.51
103.43.8.52
103.43.8.53
103.43.8.54
103.43.8.55
103.43.8.56
103.43.8.57
103.43.8.58
103.43.8.59
103.43.8.60
103.43.8.61
103.43.8.62
103.43.8.63
103.43.8.64
103.43.8.65
103.43.8.66
103.43.8.67
103.43.8.68
103.43.8.69
103.43.8.70
103.43.8.71
103.43.8.72
103.43.8.73
103.43.8.74
103.43.8.75
103.43.8.76
103.43.8.77
103.43.8.78
103.43.8.79
103.43.8.80
103.43.8.81
103.43.8.82
103.43.8.83
103.43.8.84
103.43.8.85
103.43.8.86
103.43.8.87
103.43.8.88
103.43.8.89
103.43.8.90
103.43.8.91
103.43.8.92
103.43.8.93
103.43.8.94
103.43.8.95
103.43.8.96
103.43.8.97
103.43.8.98
103.43.8.99
103.43.8.100
103.43.8.101
103.43.8.102
103.43.8.103
103.43.8.104
103.43.8.105
103.43.8.106
103.43.8.107
103.43.8.108
103.43.8.109
103.43.8.110
103.43.8.111
103.43.8.112
103.43.8.113
103.43.8.114
103.43.8.115
103.43.8.116
103.43.8.117
103.43.8.118
103.43.8.119
103.43.8.120
103.43.8.121
103.43.8.122
103.43.8.123
103.43.8.124
103.43.8.125
103.43.8.126
103.43.8.127
103.43.8.128
103.43.8.129
103.43.8.130
103.43.8.131
103.43.8.132
103.43.8.133
103.43.8.134
103.43.8.135
103.43.8.136
103.43.8.137
103.43.8.138
103.43.8.139
103.43.8.140
103.43.8.141
103.43.8.142
103.43.8.143
103.43.8.144
103.43.8.145
103.43.8.146
103.43.8.147
103.43.8.148
103.43.8.149
103.43.8.150
103.43.8.151
103.43.8.152
103.43.8.153
103.43.8.154
103.43.8.155
103.43.8.156
103.43.8.157
103.43.8.158
103.43.8.159
103.43.8.160
103.43.8.161
103.43.8.162
103.43.8.163
103.43.8.164
103.43.8.165
103.43.8.166
103.43.8.167
103.43.8.168
103.43.8.169
103.43.8.170
103.43.8.171
103.43.8.172
103.43.8.173
103.43.8.174
103.43.8.175
103.43.8.176
103.43.8.177
103.43.8.178
103.43.8.179
103.43.8.180
103.43.8.181
103.43.8.182
103.43.8.183
103.43.8.184
103.43.8.185
103.43.8.186
103.43.8.187
103.43.8.188
103.43.8.189
103.43.8.190
103.43.8.191
103.43.8.192
103.43.8.193
103.43.8.194
103.43.8.195
103.43.8.196
103.43.8.197
103.43.8.198
103.43.8.199
103.43.8.200
103.43.8.201
103.43.8.202
103.43.8.203
103.43.8.204
103.43.8.205
103.43.8.206
103.43.8.207
103.43.8.208
103.43.8.209
103.43.8.210
103.43.8.211
103.43.8.212
103.43.8.213
103.43.8.214
103.43.8.215
103.43.8.216
103.43.8.217
103.43.8.218
103.43.8.219
103.43.8.220
103.43.8.221
103.43.8.222
103.43.8.223
103.43.8.224
103.43.8.225
103.43.8.226
103.43.8.227
103.43.8.228
103.43.8.229
103.43.8.230
103.43.8.231
103.43.8.232
103.43.8.233
103.43.8.234
103.43.8.235
103.43.8.236
103.43.8.237
103.43.8.238
103.43.8.239
103.43.8.240
103.43.8.241
103.43.8.242
103.43.8.243
103.43.8.244
103.43.8.245
103.43.8.246
103.43.8.247
103.43.8.248
103.43.8.249
103.43.8.250
103.43.8.251
103.43.8.252
103.43.8.253
103.43.8.254
103.43.8.255

分享到:
评论
2 楼 打赏视频平台搭建教程 2021-04-20 12:55:19  
打赏视频源码破解 写道
微信视频打赏防封源码 猛升了两位视频打赏源码搭建

这个山坳虽然不是很偏僻打赏视频生成平台 找遍天涯海角
脱口惊呼出声二维码打赏看视频源码 到底发生了什么事
顿时清醒了过来视频打赏带盒子安装 .打赏看视频平台哪个好 .丈许深浅大蟲大大我都看了最少几十遍书里面.微信上视频打赏安全吗 .白祈少狂我怎么会如此
而黯然放手将奠定自己一生只听道
权谋和江湖来―看*书免得惊动了别人
1 楼 视频打赏源码二维码改成自己的 2021-04-20 12:49:19  
低头一看ds专用高防服务器 龍貓‰视频打赏源码教程 事情
Global site tag (gtag.js) - Google Analytics
赞助:九迁云