添加sky-php-agent启动服务
cd /usr/lib/systemd/system
vim sky-php-agent.service
[Unit] Description=The SkyWalking PHP-Agent Process Manager After=syslog.target network.target [Service] Type=simple # Modify the corresponding directory and address here ExecStart=/usr/local/bin/sky-php-agent --grpc=127.0.0.1:11800 --sky-version=8 --socket=/tmp/sky-agent.sock ExecStop=/bin/kill -SIGINT $MAINPID [Install] WantedBy=multi-user.target
启用该服务
systemctl enable sky-php-agent.service
启动
systemctl start sky-php-agent
查看状态
systemctl status sky-php-agent -l
停止
systemctl stop sky-php-agent