想要改进这个问题? Update the question所以它是on-topic堆栈溢出。
关闭 9 年前。
我可以将像 127.0.0.1
这样的 IP 地址映射到域名和端口吗?
例如,我想将 127.0.0.1
映射到 api.example.com:8000
最佳答案
不,这是不可能的。端口不是主机名的一部分,因此在 hosts
-文件中没有任何意义。
https://stackoverflow.com/questions/10729034/
相关文章:
python - `ValueError: cannot reindex from a duplic
python - 如何在 Django 中的 CharField 上添加占位符?
python - 使用 Python 向 RESTful API 发出请求
linux - 如何在 Linux 上获得整体 CPU 使用率(例如 57%)
linux - 如何永久清除 linux/ubuntu 终端或 bash 中的所有历史记录?
linux - 如何在bash中创建仅包含十六进制字符而不包含空格的文件的十六进制转储?