推送服务配置
1. 安装有度服务端
先安装服务端,数据库连接目前现有的数据库,无需单独安装。安装完成后,无需导入License,直接进入下面的配置步骤。
2. 停止本机非推送服务
编辑path/config/service.ini,保留jgdns、jgpush的state值为start,其它为stop。例如:
[jgaccountd]
cmd = /bin/jgaccountd.exe
state = stop
3. 修改本机非推送服务地址
- 编辑path/config/common.cfg.ini ,除了dnsaddr,其它服务的地址值改为主服务器IP 。例如:
[default]
dnsaddr = 127.0.0.1:7004
msqaddr = main_ip:7020
rcaaddr = main_ip:7034
statis_addr = main_ip:7026
statis_addr_http = main_ip:7016
- 编辑path/config/svrlist.ini ,把jgaccount、jgauth、jginfo、jgmsg、jgrca、jgstate、jgstatisc的info.host值改为主服务器IP,并添加参数info.virtual = true 。例如:
[jgaccountd]
info.host = main_ip
info.virtual = true
4. 重启服务生效
- Windows系统:
打开系统服务,找到youdu_service服务,右键重启即可。
- Linux系统:
systemctl restart youdu_service