MongoDB Ops Manager: Fail to deploy standalone

When config a standalone in Ops Manager, I met the issue:
“Invalid config: localhost and other equivalents for ‘localhost’ are not a valid hostname”.

How to fix it?

My solution is changing hostname in /etc/hostname.
All names such as localhost, name.localdomain,… are invalid to setup Ops Manager.
Example: I change “centos7.localdomain” to “centos7”.