解析一些域但是错误?

时间:2017-11-05 04:48:43

标签: mysql linux wordpress localhost hosts

我想安装mysql。 我的命令:

[root@qinyouyi ~]# service mysqld start
Initializing MySQL database:  Neither host '`qinyouyi`' nor '`localhost`' could be looked up with /usr/bin/resolveip
Please configure the 'hostname' command to return a correct hostname.
If you want to solve this at a later stage, restart this script with the --force option
[FAILED]

2.所以,我试试这个:

[root@qinyouyi ~]# resolveip www.baidu.com
Segmentation fault (core dumped)

那么,如何解决这个问题呢?

1 个答案:

答案 0 :(得分:0)

检查/etc/hosts并查看127.0.0.1 localhost。一旦你设置它,它应该工作。