简体   繁体   English

在JBoss EAP 6.0.1中更改端口号

[英]Change port number in JBoss EAP 6.0.1

Can anyone tell me where can I find the default port number for JBoss EAP 6.0.1 and how I can change it? 谁能告诉我在哪里可以找到JBoss EAP 6.0.1的默认端口号以及如何更改它? If there is a file I can edit, I would much prefer that than change it in Eclipse or something. 如果有一个我可以编辑的文件,我宁愿在Eclipse或其他东西中更改它。

我猜你在谈论HTTP的端口,默认为8080.你可以在JBOSS_HOME/standalone/configuration/standalone.xml文件中更改它。

I know you mentioned you'd rather not use Eclipse, but in case you or anybody else may want to try, here's a simple alternative method to configure it through Eclipse: 我知道你提到过你不想使用Eclipse,但是如果你或其他任何人想要尝试,这里有一个简单的替代方法来通过Eclipse配置它:

  1. Click on the 'Server' View 单击“服务器”视图
  2. Expand the instance of JBoss you wish to run on (eg JBoss AS 7.1) 展开您希望运行的JBoss实例(例如JBoss AS 7.1)
  3. Expand XML Configuration 展开XML配置
  4. Expand Ports 展开端口
  5. Right click on JBoss Web 右键单击JBoss Web
  6. Select 'Change Value', and change the port number (eg 8082) 选择“更改值”,然后更改端口号(例如8082)

jboss eclipse更改端口号

After that you can simply right click on your project, select 'Run As', then 'Run on Server' (choose the Server you just configured), click 'Next' or 'Finish', and your project should open in a new browser on that port (ie localhost:8082/html5demo/) 之后,您只需右键单击您的项目,选择“运行方式”,然后选择“在服务器上运行”(选择刚刚配置的服务器),单击“下一步”或“完成”,您的项目应在新的浏览器中打开在该端口上(即localhost:8082 / html5demo /)

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM