如何重命名MAMP Web服务器? [英] How do I rename MAMP web server?

查看:56
本文介绍了如何重命名MAMP Web服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以将我的MAMP服务器地址从localhost更改为其他名称吗?还是我将localhost保留为名称?

Is there any way to change my MAMP server address from localhost to anything else, or am I stuck with localhost as the name?

推荐答案

localhost 是可解析为本地计算机的主机名.

localhost is a hostname that resolves to your local computer.

如果您在本地计算机上运行Web服务器,则 localhost 将解析为该服务.

If you're running a webserver on your local computer, localhost will resolve to that service.

在任何其他计算机上, localhost 不会解析到您的Web服务器,而是解析到该特定计算机.

On any other computer, localhost will not resolve to your webserver, but to that specific computer.

如果要添加其他解析到本地计算机的主机名,则可以编辑 hosts 文件,并添加IP地址 127.0.0.1 的条目.
请注意,这也将仅在您的本地计算机上起作用.

If you want to add another hostname that resolves to your local computer, you can edit the hosts file and add an entry for the IP address 127.0.0.1.
Note that that will also only work on your local computer.

这篇关于如何重命名MAMP Web服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆