1313- Make
1414- Protoc
1515
16- For Debian-base OS:
16+ ## Install dependencies
17+
18+ ### For Debian-base OS
1719
1820``` shell
19- sudo apt install gcc make llvm-dev libclang-dev clang protobuf-compiler
21+ sudo apt install gcc make llvm-13- dev libclang-13- dev protobuf-c -compiler
2022```
2123
22- ### Install Rust globally
23-
24- * Refer to < https://forge.rust-lang.org/infra/other-installation-methods.html#standalone-installers > .*
25-
26- For linux x86_64 user:
24+ ### For Alpine Linux
2725
2826``` shell
29- wget https://static.rust-lang.org/dist/rust-1.65.0-x86_64-unknown-linux-gnu.tar.gz
30- tar zxvf rust-1.65.0-x86_64-unknown-linux-gnu.tar.gz
31- cd rust-1.65.0-x86_64-unknown-linux-gnu
32- ./install.sh
27+ apk add gcc make musl-dev llvm15-dev clang15-dev protobuf-c-compiler
3328```
3429
30+ ## Install Rust globally
31+
32+ The officially recommended way to install Rust is via [ ` rustup ` ] ( https://www.rust-lang.org/tools/install ) .
33+
34+ But because the source code toolchain is override by ` rust-toolchain.toml ` ,
35+ so if you don't need multi version Rust, we recommend to install Rust by these
36+ way:
37+
38+ 1 . Install through OS package manager (The Rust version in the source must be >= 1.65).
39+
40+ 2 . Through [ standalone installers] ( https://forge.rust-lang.org/infra/other-installation-methods.html#standalone-installers ) .
41+
42+ For linux x86_64 user:
43+
44+ ``` shell
45+ wget https://static.rust-lang.org/dist/rust-1.65.0-x86_64-unknown-linux-gnu.tar.gz
46+ tar zxvf rust-1.65.0-x86_64-unknown-linux-gnu.tar.gz
47+ cd rust-1.65.0-x86_64-unknown-linux-gnu
48+ ./install.sh
49+ ```
50+
51+ 3 . Through ` rustup ` but set ` default-toolchain ` to none.
52+
53+ ``` shell
54+ curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none
55+ ```
56+
3557## Install
3658
59+ > If you compile ` skywalking_agent ` in Alpine Linux, you have to disable ` crt-static ` , otherwise
60+ > the problem will be throw: "the libclang shared library at /usr/lib/libclang.so.15.0.7 could not
61+ > be opened: Dynamic loading not supported".
62+ >
63+ > You can disable ` crt-static ` by environment variable:
64+ >
65+ > ``` shell
66+ > export RUSTFLAGS=" -C target-feature=-crt-static"
67+ > ` ` `
68+
3769# ## Install from pecl.net
3870
3971` ` ` shell script
4072pecl install skywalking_agent
4173```
4274
43- ### install from the source codes
75+ ### Install from the source codes
4476
4577``` shell script
4678git clone --recursive https://github.com/apache/skywalking-php.git
5284make install
5385```
5486
55- ## Configure php.ini
87+ ## Configure
88+
89+ Configure skywalking agent in your ` php.ini ` .
5690
5791``` ini
5892[skywalking_agent]
@@ -72,35 +106,6 @@ skywalking_agent.server_addr = 127.0.0.1:11800
72106
73107; Application service name.
74108skywalking_agent.service_name = hello-skywalking
75-
76- ; Skywalking version.
77- skywalking_agent.skywalking_version = 8
78-
79- ; Skywalking authentication token, let it empty if the backend isn't enabled.
80- ; skywalking_agent.authentication =
81-
82- ; Skywalking worker threads, 0 will auto set as the cpu core size, default is 0.
83- ; skywalking_agent.worker_threads = 3
84-
85- ; Skywalking agent runtime directory, default is /tmp/skywalking-agent.
86- ; skywalking_agent.runtime_dir = /tmp/skywalking-agent
87-
88- ; Wether to enable tls for gPRC, default is false.
89- ; skywalking_agent.enable_tls = Off
90-
91- ; The gRPC SSL trusted ca file.
92- ; skywalking_agent.ssl_trusted_ca_path =
93-
94- ; The private key file. Enable mTLS when ssl_key_path and ssl_cert_chain_path exist.
95- ; skywalking_agent.ssl_key_path =
96-
97- ; The certificate file. Enable mTLS when ssl_key_path and ssl_cert_chain_path exist.
98- ; skywalking_agent.ssl_cert_chain_path =
99-
100- ; Agent heartbeat report period. Unit, second. Default is 30.
101- ; skywalking_agent.heartbeat_period = 30
102-
103- ; The agent sends the instance properties to the backend every
104- ; heartbeat_period * properties_report_period_factor seconds. Default is 10.
105- ; skywalking_agent.properties_report_period_factor = 10
106109```
110+
111+ Refer to the Configuration section for more configuration items.
0 commit comments