Skip to content

Commit b0226fc

Browse files
committed
update: README.md
1 parent 633d8a7 commit b0226fc

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

README.md

+23-1
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,26 @@ swoole-cli ./pack-sfx.php ./bin/socket-log-server.phar ./bin/socket-log-linux-sf
4949

5050
## systemctl 守护
5151

52-
待补充
52+
使用 swoole-cli sfx 二进制包
53+
54+
```ini
55+
[Unit]
56+
Description=socket-log
57+
After=network.target syslog.target
58+
59+
[Service]
60+
Type=simple
61+
LimitNOFILE=655350
62+
ExecStart=/opt/socket-log/socket-log-linux-sfx --self
63+
ExecReload=/bin/kill -USR1 $MAINPID
64+
Restart=always
65+
66+
[Install]
67+
WantedBy=multi-user.target graphical.target
68+
```
69+
70+
## test
71+
72+
```bash
73+
swoole-cli-5 -dopcache.enable_cli=on -dopcache.jit_buffer_size=64M main.php -q
74+
```

0 commit comments

Comments
 (0)