• 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

  • 相关阅读:
    Atitit. 查找linux 项目源码位置
    Atitit.用户权限服务 登录退出功能
    Atitit.js javascript的rpc框架选型
    Atitit.php  nginx页面空白 并返回500的解决
    Atitit .linux 取回root 密码q99
    Atitit.报名模块的管理
    Atitit.基于时间戳的农历日历历法日期计算
    Atitit.excel导出 功能解决方案 php java C#.net版总集合.doc
    我的博客开通了
    (转)列举ASP.NET 页面之间传递值的几种方式
  • 原文地址:https://www.cnblogs.com/sq892246139/p/7400186.html
Copyright © 2020-2023  润新知