hosts 添加主机和ip映射

背景:在服务器搭建环境时,迁移项目后,停止服务出现以下问题。

原因:项目停止或启动找不到映射名称或服务。 
解决:修改hosts文件。hosts文件地址 /etc/hosts         添加主机和ip映射

原文地址:https://www.cnblogs.com/Steven5007/p/10694563.html