当前位置: 首页 > 工具软件 > MPush > 使用案例 >

mPush实战笔记6常见问题

吴欣然
2023-12-01

https://github.com/mpusher

1.访问http://alloc\_ip:9999 ,输出的IP地址不正确

问题:

1)服务器存在多个网卡(包括虚拟网卡)。

2)服务器部署在公网地址后,对外提供服务。

解决方法:

mpush.conf配置文件中,增加如下配置项

mp.net.public-host-mapping {

     "源IP":"目标IP"

}

2.启动mpush失败

[root@www mpush-0.7.0]# tailf logs/mpush.log
java.lang.NoClassDefFoundError: Could not initialize class io.netty.channel.epoll.Native

如果日志中存在Could not initialize class io.netty.channel.epoll.Native这个异常

mpush.conf配置文件中,增加如下配置项

mp.core.epoll-provider=nio

 类似资料: