简体   繁体   English

java.net.BindException:启动Wiser SMTP服务器时拒绝权限

[英]java.net.BindException: Permission denied when starting Wiser SMTP Server

I'm on Mac using Java and try to start Wiser SMTP server within a test, but keep getting: 我在使用Java的Mac上,尝试在测试中启动Wiser SMTP服务器,但一直得到:

java.net.BindException: Permission denied

I use the following Wiser initialisation: 我使用以下Wiser初始化:

import org.subethamail.wiser.Wiser;

public void start() {
    wiser.start();
  }

There were suggestions on the internet to run it as a root user, which I'm not sure is applicable here... 互联网上有一些建议以root用户身份运行它,我不确定这里是否适用...

For Mac users port numbers up to 1024 are reserved for root users. 对于Mac用户,最多可为root用户保留1024个端口号。 Initialise Wiser by assigning a port number over 1024 at first: 首先通过分配1024以上的端口号来初始化Wiser:

public void start() {
    wiser.setPort(1025);
    wiser.start();
  }

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.net.BindException:权限被拒绝为root - java.net.BindException: Permission denied as root Openshift-java.net.BindException:权限被拒绝 - Openshift - java.net.BindException: Permission denied java.net.BindException:绑定失败:EACCES(权限被拒绝)TCP Server - java.net.BindException: bind failed: EACCES (Permission denied) TCP Server java.net.BindException:在 Mac OSX 上创建 ServerSocket 时权限被拒绝 - java.net.BindException: Permission denied when creating a ServerSocket on Mac OSX java.net.BindException:绑定失败:尝试为UDP连接创建DatagramSocket时EACCES(权限被拒绝) - java.net.BindException: bind failed: EACCES (Permission denied) when trying to create DatagramSocket for UDP connection Tomcat 未启动(抛出 java.net.BindException: ) - Tomcat not starting (throwing java.net.BindException: ) 抛出java.net.BindException的单独线程中的ServerSocket:绑定失败:Android上的EACCES(权限被拒绝) - ServerSocket in seperate thread throwing java.net.BindException: bind failed: EACCES (Permission denied) on Android Eclipse:初始化端点java.net.BindException时出错:权限被拒绝:443 - Eclipse: Error initializing endpoint java.net.BindException: Permission denied:443 启动Apache OFBiz时出错:“java.net.BindException:Address in in use” - Error when starting Apache OFBiz: “java.net.BindException: Address already in use” NameNode:java.net.BindException - NameNode: java.net.BindException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM