7 常见问题

cnblogs-DOC

1.服务器环境

2.安装Redis
3.安装Zookeeper
4.安装MPush
5.安装Alloc服务
6.完整测试
7.常见问题

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

原文地址:https://www.cnblogs.com/endv/p/6439332.html