apache james服务器开发笔记

一、问题:james-cli.sh 命令使用报错

[Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]

james3.0服务器在linux环境下搭建完成后,james-cli.sh命令默认为james-cli.sh -h localhost -p 9999,其中9999端口在/james-server-app-3.0.0/conf/jmx.properties中有配置,是连接rmi的端口号。如果修改为9998 james-cli.sh -h localhost -p 9998即可

apache james服务器开发笔记

apache james服务器开发笔记

 

 

二、问题:ProxyEmail.jar自启,无法使用james-cli.sh命令,登录linux用户,重启程序即可使用。

apache james服务器开发笔记

将james-cli.sh AddUser改为su - root -c james-cli.sh AddUser即可解决