gpt4 book ai didi

intellij-idea - Glassfish 不会从 Intellij 启动,除非我使用 sudo 运行 Intellij

转载 作者:行者123 更新时间:2023-12-03 18:33:48 39 4
gpt4 key购买 nike

标题说明了一切……只是想让 Glassfish 继续前进。这是我得到的错误

Detected server admin port: 4848
[2015-04-06 07:37:56,138] Artifact java_web_app:war exploded: Server is not connected. Deploy is not available.
Detected server http port: 8080
Command start-domain failed.
JVM failed to start: com.sun.enterprise.admin.launcher.GFLauncherException: The server exited prematurely with exit code 1.
Before it died, it produced the following output:

This subcommand requires root privileges: bsexec

肯定有办法解决这个问题吗?我真的不想每次都用 sudo 运行 Intellij。

最佳答案

答案:GlassFish 4.1、IntelliJ IDEA 14.1

我不知道(不是双关语)为什么 GlassFish 需要 root 用户帐户。

你需要执行这样的事情:

/Library/opt/payara-4.1.151/glassfish/bin/asadmin start-domain --verbose=true  domain1

运行 -> 编辑配置 -> 选择配置 (acme-payara-project) -> 启动配置

编辑启动脚本并将其更改为添加 --verbose-true范围。

关于intellij-idea - Glassfish 不会从 Intellij 启动,除非我使用 sudo 运行 Intellij,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29481479/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com