搭建Yum源:
1.下载离线yum包
登录外网电脑的centos服务器,从阿里云yum同步,
`reposync -p /mirror`
2.打包后上传到桌面云
3.上传到yum服务器,192.168.20.133
4.解压到/yum/mirror目录下
5.创建索引
```
createrepo -po /yum/mirror/base /yum/mirror/base
createrepo -po /yum/mirror/extras /yum/mirror/extras
createrepo -po /yum/mirror/updates /yum/mirror/updates
```
6.启动yum服务
```
cd /yum/mirror/base
nohup python -m SimpleHTTPServer 10000 > /dev/null &
cd /yum/mirror/extras
nohup python -m SimpleHTTPServer 10001 > /dev/null &
cd /yum/mirror/updates
nohup python -m SimpleHTTPServer 10002 > /dev/null &
```
配置yum源:
```
vi /etc/yum.repos.d/centos.repo
[base]
name=base
baseurl=http://IP:10000/
enabled=1
gpgcheck=0
[extras]
name=extras
baseurl=http://IP:10001/
enabled=1
gpgcheck=0
[updates]
name=updates
baseurl=http://IP:10002/
enabled=1
gpgcheck=0
```
更新yum源:
1.上传rpm包到/yum/mirror/extras
2.更新索引
`createrepo --update /yum/mirror/extras`
- CentOS运维手册
- CentOS6.9挂载额外的磁盘
- ACL(access control list)-权限控制
- 普通用户不能绑定80端口
- ssh8.1p1编译步骤
- 制作openssh8_1的rpm包
- 离线yum源维护
- 去除VIM中打开文件里有的^M字符
- Mysql运维手册
- CentOS6.9搭建Mariadb-Galera集群
- mysql编码报错
- haproxy代理mysql galera
- 常用sql
- MySQL通用知识点
- 修复断电损坏的MySQL数据表
- sync_binlog配置的分析
- Xtrabackup备份与恢复
- Innodb线程并发同步机制
- redo log
- 死锁分析
- 慢SQL分析
- nginx运维手册
- nginx日志分割
- proxy_set_header作用
- nginx优化
- url末尾不加/
- 负载均衡
- haproxy和nginx研究
- haproxy配置
- redis运维手册
- redis_5.0.8集群搭建
- Redis集群原理分析
- predixy的安装和配置
- redis优化
- NFS运维手册
- flock操作失败
- mongodb运维手册
- MongoDB开启用户认证
- shell编码规范
- HTTP
- HTTP的传输编码
- 性能分析
- java内存分析
- javaCPU分析