1.用yum安装软件报错

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os
error was 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'
# 这种错误是因为网络问题,没有配置/etc/resolv.conf,在这个文件里写入nameserver 8.8.8.8即可.

2.在CentOS6上配置Base源

# 备份你的原镜像文件,出错后还可以恢复
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
# 下载新的CentOS-Base.repo到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo yum makecache # 生成缓存
yum clean all # 清除缓存
chkconfig NetworkManager off
service NetworkManager stop

3.在CentOS6上配置EPEL源

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
yum repolist # 验证是否成功
# 如果出错,就编辑vi epel.repo,取消baseurl的注释,将mirrorlist行注释,就差不多了. # Centos7同理
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

4.CentOS6关停iptables

iptables -F
/etc/init.d/iptables save
chkconfig iptables off
service iptables stop

5.hping3解决编译报错问题

在安装完gcc后,编译报错,需要编辑bytesex.h文件,添加一行
vim bytesex.h
#if defined(__i386__) \
|| defined(__x86_64__) \
|| defined(__alpha__) \ # hping3命令用法详解:http://www.searu.org/16384.html
# hping3命令:http://man.linuxde.net/hping3
# hping的使用方式:http://blog.csdn.net/lhl_blog/article/details/19572631
# iftop的安装和简单使用:https://www.cnblogs.com/chaichuan/p/4442610.htm
hping3命令

来自: http://man.linuxde.net/hping3

hping3命令

来自: http://man.linuxde.net/hping3

最新文章

  1. nginx tomcat session丢失的问题
  2. Qt 之 数字钟
  3. 10分钟学习pandas
  4. 混合App 框架选型
  5. Js调用Java方法并互相传参
  6. 固态硬盘寿命实测让你直观SSD寿命!--转
  7. java之内的工具分享,附带下载链接,方便以后自己寻找
  8. 什么是RST包,什么是三次握手,什么是四次握手 ---请进
  9. 2D客户端+微端技术总结
  10. 用 javascript 判断 IE 版本号
  11. ef code first
  12. 【2017-06-06】Ajax完整结构、三级联动的制作
  13. createjs 小游戏开发实战
  14. kubernetes controller 实现
  15. Android音频焦点处理相关的方法
  16. Python+自动化测试框架的设计编写
  17. c#利用ApplicationContext类 同时启动双窗体的实现
  18. git 服务器搭建及提交代码检查
  19. Arcengine 在SDE创建数据集提示应用程序未获得创建或修改此类型数据的方案的许可
  20. ascii码值

热门文章

  1. MongoDB在java中的使用
  2. java在线聊天项目 swt可视化窗口Design 重新设计聊天窗口
  3. java在线聊天项目0.2版本 制作客户端窗体,使用swing(用户界面开发工具包)和awt(抽象窗口工具包) BorderLayout布局与GridLayout布局不同之处 JPanel设置大小
  4. 移动网页端HTML5 meta便签
  5. CentOS 7 编译 mysql 8.0.12
  6. 网络设备之ospf2
  7. [转载] Python数据类型知识点全解
  8. LCD驱动分析(二)帧缓冲设备作为平台设备
  9. 组队赛Day1第一场 GYM 101350A - Sherlock Bones (DP)
  10. sql语句中的join连接(左连接、右连接、全连接、内连接)