推送队列配置说明
启动推送队列
- 队列服务使用
systemd
管理 - 路径为
/etc/systemd/system/renren-client-queue-push.service
[Unit]
Description=renren-client-queue-push
Requires=
After=network.target
[Service]
User=www
Group=www
Type=simple
PIDFile=/var/run/renren-client-queue-push.pid
ExecStartPre=/bin/rm -f /var/run/renren-client-queue-push.pid
ExecStart=/www/server/php/71/bin/php /www/wwwroot/##### 替换为站点路径/console queue-push/listen
Restart=always
RestartSec=3s
LimitNOFILE=65535
LimitNPROC=65535
LimitCORE=65535
[Install]
WantedBy=multi-user.target
:::caution
- PHP 路径必须正确
- console 路径必须正确
:::
相关命令
# 开机自启
systemctl enable renren-client-queue-push
# 启动服务
systemctl start renren-client-queue-push
# 查看状态
systemctl status renren-client-queue-push
# 停止服务
systemctl stop renren-client-queue-push
# 查看日志
journalctl -u renren-client-queue-push
最后修改时间: 4 个月前