6
6
7
7
## Requirements
8
8
9
- - GCC
9
+ - GCC / Clang
10
10
- Rustc 1.65+
11
11
- Cargo
12
12
- Libclang 9.0+
@@ -31,28 +31,17 @@ apk add gcc make musl-dev llvm15-dev clang15-dev protobuf-c-compiler
31
31
32
32
The officially recommended way to install Rust is via [ ` rustup ` ] ( https://www.rust-lang.org/tools/install ) .
33
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
- ```
34
+ > ** Notice:** 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 ` rustup ` but set ` default-toolchain ` to none.
41
+ >
42
+ > ``` shell
43
+ > curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none
44
+ > ` ` `
56
45
57
46
# # Install
58
47
@@ -86,6 +75,12 @@ make install
86
75
87
76
## Configure
88
77
78
+ For scenarios where php-fpm runs in the foreground (` php-fpm -F ` ), or where a PHP script starts
79
+ a single Swoole server, you can use the ` grpc ` reporter mode.
80
+
81
+ For scenarios where php-fpm runs as a daemon, or where a PHP script forks multiple Swoole servers,
82
+ it is recommended to use the ` standalone ` reporter mode.
83
+
89
84
Configure skywalking agent in your ` php.ini ` .
90
85
91
86
``` ini
@@ -95,6 +90,9 @@ extension = skywalking_agent.so
95
90
; Enable skywalking_agent extension or not.
96
91
skywalking_agent.enable = Off
97
92
93
+ ; Reporter type, optional values are `grpc`, `kafka` and `standalone`.
94
+ skywalking_agent.reporter_type = grpc
95
+
98
96
; Log file path.
99
97
skywalking_agent.log_file = /tmp/skywalking-agent.log
100
98
@@ -124,5 +122,6 @@ php-fpm -F -d "skywalking_agent.enable=On"
124
122
```
125
123
126
124
> ** Notice:** It is necessary to keep the ` php-fpm ` process running in the foreground
127
- > (by specifying the > ` -F ` parameter, etc.), running ` php-fpm ` as a daemon will cause the
128
- > ` skywalking-agent ` reporter process immediately exit.
125
+ > (by specifying the ` -F ` parameter, etc.), or switch to using the ` standalone ` reporter mode.
126
+ > Running ` php-fpm ` as a daemon in ` grpc ` reporter mode will cause the ` skywalking-agent ` reporter
127
+ > process immediately exit.
0 commit comments