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
阅读(4499) | 评论(0) | 转发(0) |