如何的IntelliJ连接到远程服务器wildfly(How to connect Intellij

2019-10-20 06:43发布

我有一个远程服务器上的清洁wildfly 8.1安装。 请注意,此远程服务器是无业游民创建的虚拟盒服务器。

现在,我想用一个远程JBoss服务器连接的IntelliJ。

首先我创建了一个虚拟用户,用用户名/密码:JBoss的/ JBoss的

[root@localhost bin]# ./add-user.sh 

What type of user do you wish to add? 
 a) Management User (mgmt-users.properties) 
 b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : jboss
Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file.
 - The password should not be one of the following restricted values {root, admin, administrator}
 - The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
 - The password should be different from the username
Password : 
JBAS015269: Password must have at least 8 characters!
Are you sure you want to use the password entered yes/no? yes
Re-enter Password : 
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[  ]: 
About to add user 'jboss' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'jboss' to file '/opt/wildfly-8.1.0.Final/standalone/configuration/mgmt-users.properties'
Added user 'jboss' to file '/opt/wildfly-8.1.0.Final/domain/configuration/mgmt-users.properties'
Added user 'jboss' with groups  to file '/opt/wildfly-8.1.0.Final/standalone/configuration/mgmt-groups.properties'
Added user 'jboss' with groups  to file '/opt/wildfly-8.1.0.Final/domain/configuration/mgmt-groups.properties'
Is this new user going to be used for one AS process to connect to another AS process? 
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.
yes/no? yes
To represent the user add the following to the server-identities definition <secret value="amJvc3M=" />

然后我用下面的命令启动wildfly服务器:

./standalone.sh -bmanagement=192.168.33.10 -b 192.168.33.10

这些都是在我的IntelliJ远程JBoss服务器设置:

Jboss server settings:
Management Port: 9999
username: jboss
password: jboss

remote connection settings:
host: 192.169.33.10
port: 9999

但我得到以下错误:

Error running mythings-vagrant
Unable to connect to the 192.168.33.10:9999, reason:
com.intellij.javaee.process.common.WrappedException: java.io.IOException: java.net.ConnectException: JBAS012174: Could not connect to remote://192.168.33.10:9999. The connection failed

Answer 1:

WildFly现在使用的端口为9990它的默认管理端口。 有一些发行说明有关口缩小。



Answer 2:

我想找到这个问题的答案也。 只好转回到Eclipse由于与IDEA管理Wildfly服务器的难度。



Answer 3:

检查你在远程机器上的防火墙,我可以部署到Azure中的虚拟机删除与的IntelliJ(当我想)没有问题。



文章来源: How to connect Intellij to a remote wildfly server