我正在尝试将jboss绑定到默认127.0.0.1以外的外部IP地址,但我收到错误而无法使用。
我想要绑定的IP地址是有效且可访问的,我已经使用ping进行了测试。我尝试修改standalone.conf或修改standalone.xml,并尝试接近-b xxx.xxx.236.237但每次都出现相同的错误。
请帮助。感谢。
------- tried setting bind address in standalone.conf
JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address.management=xxx.xxx.236.237"
JAVA_OPTS="$%JAVA_OPTS -Djboss.bind.address=xxx.xxx.236.237"
---- tried starting service with binding address
standalone.sh -b xxx.xxx.236.237
---tried below changes in standalone.xml
<interface name="public">
<inet-address value="${jboss.bind.address:xxx.xxx.236.237}"/>
</interface>
But i am able to bind it to 0.0.0.0 which i dont want to. i want to bind to specific ip.
18:18:15,122 INFO [org.jboss.remoting] JBoss Remoting版本3.2.3.GA 18:18:15,142 ERROR [org.jboss.msc.service.fail] MSC00001:无法在服务jboss.network.public中启动服务jboss.network.public:org.jboss.msc.service.StartException:JBAS015810:未能解析接口公共 在org.jboss.as.server.services.net.NetworkInterfaceService.start(NetworkInterfaceService.java:97)[jboss-as-server-7.1.1.Final.jar:7.1.1.Final] at org.jboss.msc.service.ServiceControllerImpl $ StartTask.startService(ServiceControllerImpl.java:1811)[jboss-msc-1.0.2.GA.jar:1.0.2.GA] at org.jboss.msc.service.ServiceControllerImpl $ StartTask.run(ServiceControllerImpl.java:1746)[jboss-msc-1.0.2.GA.jar:1.0.2.GA] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[rt.jar:1.7.0_95] at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)[rt.jar:1.7.0_95] 在java.lang.Thread.run(Thread.java:745)[rt.jar:1.7.0_95]
答案 0 :(得分:0)
您只能在YOUR(运行JBOSS的主机)主机网络接口的一个或所有(0.0.0.0)IP地址上绑定进程
要查看网络接口的IP地址。
在linux下看到:
ifconfig -a
或
ip addr show