•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Infrastructure
      • iColocation
    • Compute
      • cMetal
      • cVirtual
    • Storage
      • sObject
      • sBlock
    • Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • new-colocation-header-img
      Infrastructure
      • iColocation
    • new-compute-header-img
      Compute
      • cMetal
      • cVirtual
    • new-storage-header-img
      Storage
      • sObject
      • sBlock
    • new-networking-header-img
      Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

Sudo가 호스트를 해결할 수 없습니다.

  • Home
  • Client
  • Qa Forum
  • Sudo가 호스트를 해결할 수 없습니다.

Posted By: michael | 1 Replies | Last Reply On: May 31, 2017 01:01:34

터미널이 멈췄다 -

sudo : 호스트를 확인할 수 없습니다 (없음).

 

Psychz - Nikhil

Votes: 0Posted On: May 31, 2017 01:01:34
 

터미널이 "sudo : 호스트를 확인할 수 없습니다 (none)"라고 표시되면 시스템에 호스트 이름을 제공하지 않았 음을 의미합니다. 호스트 이름은 네트워크가 식별하는 장치의 이름입니다. 호스트 이름은 "/ etc / hostname"파일에 로컬로 저장됩니다. 통신을 위해 네트워크에 매핑됩니다.


문제 해결 "sudo : 호스트를 확인할 수 없음 (없음)"

1. 터미널에서 "호스트 이름"명령을 실행하여 호스트 이름을 체크인하십시오. 할당 된 호스트 이름이 없으므로 결과는 공백입니다.

2. 시스템에 호스트 이름이 저장되어있는 "/ etc / hostname"파일을 편집하십시오. 원하는 호스트 이름을 제공하십시오. 예를 들어 호스트 이름을 "inspiron-3558"로 지정했습니다. 다음 명령을 사용하여 파일을 편집 할 수 있습니다.
(참고 : 파일을 편집하려면 루트 권한이 필요합니다.)

vi / etc / hostname 

(참고 :이 경우 "vi"편집기를 사용하여 파일을 편집하지만, 원하는 텍스트 편집기를 선택할 수 있습니다.)

3. 새 호스트 이름으로 파일을 저장했으면 "hostname"명령을 실행하여 확인하십시오. 새 호스트 이름이 화면에 표시되어야합니다.

4. "/ etc / hosts"파일을 확인하고 "/ etc / hostname"에서와 동일한 호스트 이름을 편집하십시오. "hosts"파일은 호스트 이름을 IP 주소에 매핑합니다. 따라서 파일에서 호스트 이름을 편집하는 것이 매우 중요합니다. IP 주소 "127.0.1.1"로 매핑 된 호스트 이름을 편집하십시오.

5. 파일을 변경하면 시스템이 재부팅 될 때까지 변경 사항이 적용되지 않습니다. 따라서 변경 사항을 적용하려면 시스템을 재부팅하십시오.

6. 재부팅 후 "sudo"명령이 제대로 작동하는지 확인하십시오.

Was this reply helpful?

Related topics

  • 하이브리드 클라우드 : 거의 모두 행복 만들기
  • 전용 서버 64GB RAM
  • 원격에서 로컬로의 SCP
  • 악명 높은 기록을 설정한다 - 세계 최대의 DDoS 공격을
  • Single vs Dual vs Multi-homed Network
  • SSH 서버를 시작 하시겠습니까?
  • Red Hat: Not just about Linux anymore!
  • Protocol Management - Open/Close SMTP Port
  • Object Storage vs. Block Storage: Which Is Right for Your Data?
  • Notifications - Intro
  • Node.js 웹 서버
  • Load Balancing Methods
  • Create AAAA Record
  • Common Types of Network Attacks
  • Colocation 서비스 텍사스
Copyright © 2025 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • nCDN
  • nIP Transit
  • nWavelength
Protection
  • pBackup
  • pDDoS
Company
  • About Us
  • Blog
  • Careers
  • Contact Us
  • Data Centers
  • Looking Glass
  • Network
  • Reseller
Policies
  • Acceptable Usage Policy
  • Privacy Policy
  • Service Level Agreement
  • Terms and Conditions
Support
  • Community
  • Knowledge Base
  • Open A Ticket
Get In Touch
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801