Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在127.0.0.1:3000本地使用 alias local.abc.com,我在 etc/hosts 文件中添加了一个条目:
127.0.0.1:3000
local.abc.com
127.0.0.1 local.abc.com
所以我点击local.abc.com:3000并获得了请求的页面,但是有没有一种方法我不需要指定端口而只需将别名local.abc.com转换为127.0.0.1:3000?
local.abc.com:3000