如何在Aptana 3.0中将端口从8020更改为80
当我在 Firefox 上从 aptana 运行文件时(我单击 Aptana 上的绿色小播放按钮),我在 Firefox 上收到此链接:
http://127.0.0.1:8020/MyAccount/index.php
但这不会显示任何内容。如果我将端口更改为 80 或者像这样删除它:
http://127.0.0.1/MyAccount/index .php
然后一切正常 - 问题是 - 我如何“告诉”Aptana 转到我拥有的新链接(以便我可以看到该文件)以及通常的问题是什么。
我如果可以帮助解决问题,请使用 wamp 服务器。
When I run my file from aptana on firefox (I click the little green play button on Aptana) I get this link on my firefox:
http://127.0.0.1:8020/MyAccount/index.php
but that doesn't displays anything. If I change the port to 80 or just delete it like this:
http://127.0.0.1/MyAccount/index.php
then all works - the question is - how do I "tell" Aptana to go to the new link I have (so I can see the file) and what is generally the problem.
I use wamp server if that can help solving the problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
转到菜单“运行”>“运行配置”。
进入后,转到“网络浏览器”部分,选择您喜欢的网络浏览器。在服务器部分的右侧,勾选“使用所选服务器”选项并按照说明配置您的服务器。当您输入 URL 时,请不要忘记添加 IP 地址,后跟您的项目文件夹。
希望这有帮助。
go to menu Run>Run configurations.
Once in there, go to the Web Browser section, choose your prefered web browser. On the right inside in the server section, tick the "Use selected Server" option and configure your server by following the instruction. When you enter the URL don't forget to add to the ip address followed by your project folder.
Hope this helps.
我使用 XAMMP 作为我的服务器,所以我不确定这是否适用于 WAMMP。
转到运行配置,选择 Web 浏览器,然后选择您要使用的浏览器。然后在主选项卡中找到“使用基本 URL”并单击它。输入
http://localhost/
并确保检查附加项目名称。如果您使用的是 php,请确保您的索引页面的名称是index.html 或index.php 并尝试运行它。
I use XAMMP as my server so I'm not sure if this will work with WAMMP.
Go to run configurations select Web Browser then choose which browser you want to use. Then in the main tab find use base URL and click on it. Enter
http://localhost/
and make sure that you check the append project name.Make sure that your index page's name is index.html or index.php if hou are using php and try running it.
在项目属性>您可以将预览设置指向特定的服务器。
HTH
-Rb
In the Project Properties > Preview Settings you can point to the specific server.
HTH
-Rb
更改端口:Aptana Studio 3,更改设置后需要重新启动。
首选项>Aptana Studio>Web 服务器>内置
Change Port: Aptana Studio 3, Needed restart after changing the setting.
Preferences>Aptana Studio>Web Servers>Built In