记一次nginx: [emerg] invalid IPv6 address in resolver "[fe80::1%enp3s0]" in /usr/local/tengine/conf/nginx.conf:137 的解决方法

《记一次nginx: [emerg] invalid IPv6 address in resolver

错误:

9月 10 16:57:01 localhost.localdomain systemd[1]: Starting The nginx HTTP and reverse proxy server...
9月 10 16:57:01 localhost.localdomain nginx[22334]: nginx: [emerg] invalid IPv6 address in resolver "[fe80::1%enp3s0]" in /usr/local/tengine/conf/nginx.conf:137
9月 10 16:57:01 localhost.localdomain nginx[22334]: nginx: configuration file /usr/local/tengine/conf/nginx.conf test failed
9月 10 16:57:01 localhost.localdomain systemd[1]: nginx.service: control process exited, code=exited status=1
9月 10 16:57:01 localhost.localdomain systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
9月 10 16:57:01 localhost.localdomain systemd[1]: Unit nginx.service entered failed state.
9月 10 16:57:01 localhost.localdomain systemd[1]: nginx.service failed.

解决

vi /etc/resolv.conf
注释掉:  nameserver fe80::1%enp3s0

心得体会 :前前后后花了一个小时找解决资料 ,真TM晕 ,到底是那个HD软件写入这个文件的,气死,博主还奇怪,好端端的服务怎么就重启不了,晕死,以此为记!

点赞

发表评论

电子邮件地址不会被公开。 必填项已用*标注