以不同用户身份在 Eclipse 中运行 Tomcat
我正在 Windows 7 上运行 Eclipse Indigo EE,以我的身份登录。我现在在 eclipse 中运行 Tomcat(在服务器视图下),但它在我的用户下运行。我想以不同的用户身份运行它。我该如何实现这一目标?我不想将其作为 Windows 服务或在 Eclipse 之外运行,我想继续通过 Eclipse 来管理它,这使得调试、关闭、启动对我来说变得更加简单。
有什么想法如何进行设置或者是否可能?
谢谢
I am running Eclipse Indigo EE on Windows 7, logged in as me.. I have Tomcat running within eclipse right now (under Servers view) but it's running under my user. I'd like to run it as a different user. How do I go about achieving that? I don't want to run it as a Windows service or outside of Eclipse, I want to continue to manage it through Eclipse which makes debugging, shutting down, starting up a lot simpler for me.
Any ideas how to go about setting that up or if it's even possible?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找不到以其他用户身份启动 Tomcat 服务器的方法。而您可以通过以不同用户身份打开 eclipse 来实现此目的。以下是同一“打开”命令提示符的步骤
使用预期的用户名和 eclipse exe 的位置运行以下命令
runas /user:domainName\userName C:\eclipse-jee-mars-R-win32-x86_64\eclipse\eclipse.exe
谢谢,
萨比尔
I could not find a way to start the Tomcat server as a different user. Whereas you can achieve this by opening eclipse as a different user. Following are the steps for the same
Run following command with intended user name and eclipse exe's location
runas /user:domainName\userName C:\eclipse-jee-mars-R-win32-x86_64\eclipse\eclipse.exe
Thanks,
Sabeer