Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7345943
  • 博文数量: 1763
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16217
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1763)

文章存档

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: 系统运维

2019-04-26 13:36:04

yum install centos-release-SCL scl-utils-build scl-utils -y
yum list|grep devtoolset
yum install devtoolset-6-gcc devtoolset-6-gcc-c++ devtoolset-6-gdb

yum install libunwind-devel -y
git clone 
cd gperftools
scl enable devtoolset-6 bash  #?è??C++11
./autogen.sh
./configure
make
make install
exit
cd ..

git clone
cd grpc
git submodule init
git submodule update --init  #过程相当长
scl enable devtoolset-6 bash
cmake .
#make run_dep_checks
make install
cd ..

git clone
cd SkyAPM-php-sdk
/usr/local/php7/bin/phpize
./configure --with-php-config=/usr/local/php7/bin/php-config
make
make install


scl enable devtoolset-6 bash
cd src/report
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
make
cp report_client /usr/bin

vi php.ini
; Loading extensions in PHP
extension=skywalking.so
; enable skywalking
skywalking.enable = 1
; Set skyWalking collector version
skywalking.version = 6
; Set app code e.g. MyProjectName
skywalking.app_code = MyProjectName
; Set skyWalking collector grpc address
skywalking.grpc =192.168.10.5:11800
; Set log path
skywalking.log_path = /tmp
; Set http header version
skywalking.header_version = 2

#运行
report_client 192.168.10.5:11800 /tmp



阅读(4405) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~