zoukankan      html  css  js  c++  java
  • centos6.5安装systemstap

    http://mysql.taobao.org/monthly/2016/01/05/

    大牛们使用systemstap进行了NB的操作,自己试试

    =====================

    将 CentOS-Debuginfo.repo 中的 enabled=0 改为 enabled=1

    安装epel yum源,这个应该是不需要的,不过我一般都会安装上

    # cat epel.repo 
    [epel]
    name=Extra Packages for Enterprise Linux 6 - $basearch
    #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
    failovermethod=priority
    enabled=1
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

    [epel-debuginfo]
    name=Extra Packages for Enterprise Linux 6 - $basearch - Debug
    #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
    failovermethod=priority
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    gpgcheck=1

    [epel-source]
    name=Extra Packages for Enterprise Linux 6 - $basearch - Source
    #baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
    failovermethod=priority
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    gpgcheck=1

    # cat epel-testing.repo
    [epel-testing]
    name=Extra Packages for Enterprise Linux 6 - Testing - $basearch
    #baseurl=http://download.fedoraproject.org/pub/epel/testing/6/$basearch
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-epel6&arch=$basearch
    failovermethod=priority
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

    [epel-testing-debuginfo]
    name=Extra Packages for Enterprise Linux 6 - Testing - $basearch - Debug
    #baseurl=http://download.fedoraproject.org/pub/epel/testing/6/$basearch/debug
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel6&arch=$basearch
    failovermethod=priority
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    gpgcheck=1

    [epel-testing-source]
    name=Extra Packages for Enterprise Linux 6 - Testing - $basearch - Source
    #baseurl=http://download.fedoraproject.org/pub/epel/testing/6/SRPMS
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel6&arch=$basearch
    failovermethod=priority
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
    gpgcheck=1

    # yum install systemtap systemtap-runtime

    安装systemtap会安装kernel-devel-2.6.32-696.6.3.el6.x86_64

    但是centos6.5的内核版本是2.6.32-431,所以需要删除kernel-devel-2.6.32-696.6.3.el6.x86_64

    # rpm -e kernel-devel-2.6.32-696.6.3.el6.x86_64 --nodeps

    还需要安装 kernel-debuginfo-2.6.32-431.el6.x86_64.rpm, kernel-devel-2.6.32-431.el6.x86_64.rpm, kernel-debuginfo-common-x86_64-2.6.32-431.el6.x86_64.rpm等

    可以从  http://debuginfo.centos.org/6/x86_64/ ,http://rpm.pbone.net/index.php3/stat/4/idpl/24668468/dir/scientific_linux_6/com/kernel-debuginfo-2.6.32-431.el6.x86_64.rpm.html下载相关文件

    安装完成后,测试一下

    # stap -e 'probe begin { log("hello world") exit() }'
    hello world

    aaa

  • 相关阅读:
    半条命2引擎:Source 关于Multiplayer Networking
    关于毕设3DGPSR程序bug修改
    My 2D SketchBased 3D Shape Retrieval
    Manifold Harmonics Transform BY ARPACK++
    c语言错误代码
    C语言system函数用法
    win7下开启梦幻桌面
    Win7与xp双系统的安装
    C 语言中的控制结构
    Win7下安装xp虚拟机
  • 原文地址:https://www.cnblogs.com/sq892246139/p/7400186.html
Copyright © 2011-2022 走看看