Rate This Document
Findability
Accuracy
Completeness
Readability

resolv.conf File Missing When Starting Tengine

Symptom

resolv.conf file is reported missing when starting Tengine. The message"'/etc/resolv.conf' failed (2: No such file or directory)" is displayed.

Key Process and Cause Analysis

The resolv.conf file is missing.

Conclusion and Solution

  1. Create a resolv.conf file.
    1
    vim /etc/resolv.conf
    
  2. Press i to enter the insert mode and add the following content to the file:
    1
    2
    3
    # Generated by NetworkManager
    nameserver 114.114.114.114
    nameserver 8.8.8.8
    
  3. Press Esc, type :wq!, and press Enter to save the file and exit.