简体   繁体   English

如何使Intellij Idea开始使用sudo作为玻璃鱼?

[英]How to make Intellij Idea start glassfish as sudo?

I am trying to run a glassfish local server from Intellij Idea and have some troubles. 我试图从Intellij Idea运行一个glassfish本地服务器并遇到一些麻烦。 The server only wants to run from terminal via sudo command, and the Intellij runs by default without sudo, so how do I fix it? 服务器只想通过sudo命令从终端运行,默认情况下Intellij运行没有sudo,所以我该如何解决? Do I have to make the file to always get executed as sudo(if yes, then how) or should I set in the Idea configs to run that specific file as sudo? 我是否必须使文件始终以sudo身份执行(如果是,那么如何)或者我应该在Idea配置中将该特定文件作为sudo运行?

所有信息都包含在本指南中: “运行/调试配置:GlassFish Server”

我通过将其解压缩到我的主目录并将想法中的glassfish的位置更改为新位置来解决这个问题。

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

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