阿里云的centos機(jī)器和鏡像都沒有提供debuginfo的源,而且默認(rèn)開通的centos并沒有提供yum的repo配置文件。這樣的話很多的性能調(diào)試工具,比如systemtap之類的工具基本沒辦法使用。
- 創(chuàng)建配置文件
[root@iZbp1b0n9ivu1hyf17tgsfZ ~]# cat /etc/yum.repos.d/CentOS-Debug.repo
#Debug Info
[debug]
name=CentOS-$releasever - DebugInfo
baseurl=http://debuginfo.centos.org/$releasever/$basearch/
gpgcheck=0
enabled=1
protect=1
priority=1
- 安裝kernel-debuginfo
yum --enablerepo=base-debug install -y kernel-debuginfo-$(uname -r)
- 安裝glibc
debuginfo-install glibc