웹 프론트엔드 JS 튜토리얼 JS_javascript 기술을 사용하여 IP, MAC 및 호스트 이름을 얻는 5가지 방법

JS_javascript 기술을 사용하여 IP, MAC 및 호스트 이름을 얻는 5가지 방법

May 16, 2016 pm 05:15 PM
호스트 이름

오늘 저는 클라이언트 IP를 얻기 위해 JS(javascript) 작은 프로그램을 작업 중입니다. 온라인으로 검색한 결과 현재 시스템과 브라우저에서는 그 중 많은 것이 유효하지 않다는 것을 발견했습니다. Chrome과 FireFox에서는 직접적으로는 거의 불가능합니다. ActiveX를 사용하여 JS 스크립트 등을 얻습니다. 다음 코드는 모든 Windows NT5.0 이상의 시스템에서 테스트되고 전달되었습니다. 코드는 다음과 같습니다.

방법 1(IE 및 클라이언트의 IE에서만 플랫폼을 통해 ActiveX를 실행할 수 있습니다. XP, SERVER03, 2000):
클라이언트 IP를 가져옵니다.

코드 복사 코드는 다음과 같습니다.

HEAD>
GetLocalIP

IP 가져오기:
클라이언트가 인터넷에 연결되어 있는 경우 네트워크에서 클라이언트의 IP를 가져옵니다.


head>

클라이언트 IP를 얻기 위한 JavaScript(Sina 인터페이스 사용)< /title> <br></head> <br><body> <br><script type="text/javascript" src="http://counter.sina.com.cn/ip/" 문자 집합 ="gb2312" ></script> <!--인터페이스 데이터 가져오기, 문자 세트에 주의 --><br><script type="text/javascript"> "IP 주소:" ILData [0] "<br />") //인터페이스 데이터에 IP 주소 출력<br>document.writeln("주소 유형:" ILData[1] "<br / >"); // 인터페이스 데이터의 IP 주소 유형을 출력<br>document.writeln("Address type:" ILData[2] "<br />"); //시/도 출력 인터페이스 데이터의 IP 주소<br> document.writeln("Address type:" ILData[3] "<br />") //인터페이스 데이터의 IP 주소 출력<br>document.writeln ("주소 유형: " ILData[4] " <br />") //출력 인터페이스 데이터의 IP 주소 연산자 <br></script> <br></body> ></html> <br><br> <br>방법 3(IE 및 클라이언트 IE에서만 ActiveX 실행 허용): <br>VBS 스크립트를 호출하여 컴퓨터 이름 가져오기(모르는 사람도 있음) 컴퓨터 이름이 무엇인지 간단히 설명하면 사용 중인 사용자 이름 대신 이 컴퓨터의 실제 이름과 로그인에 사용한 사용자 이름이라는 것입니다. <br><br> </div> <br><br>코드 복사<br><div class="codetitle"> <span> 코드는 다음과 같습니다.<a style="CURSOR: pointer" data="15147" class="copybut" id="copybut15147" onclick="doCopy('code15147')"><u> </u><HTML> HEAD> </a><title>WMI 스크립팅 HTML
<script>var WshShell =new ActiveXObject( "WScript.Shell"); <div class="codebody" id="code15147">document.write("컴퓨터 이름 = " WshShell.ExpandEnvironmentStrings("%COMPUTERNAME%") "<br/>") <BR>document.write("로그인 사용자 이름 = " WshShell .ExpandEnvironmentStrings("%USERNAME%") "<br/>"); <BR></script>




방법 4(IE에만 해당되고 클라이언트의 IE에서는 ActiveX 실행이 허용됨):
컴퓨터 이름, 로그인한 사용자 이름 및 도메인 이름을 가져옵니다(도메인에 가입한 경우 컴퓨터가 어느 도메인인지 표시). 안에).




코드 복사

코드는 다음과 같습니다.
HEAD> WMI 스크립팅 HTML <U><BODY> <script 언어=javascript>var wshNetwork = new ActiveXObject( "WScript.Network"); document.write("도메인 이름 = " wshNetwork.UserDomain "<br/>") document.write("컴퓨터 이름 = " wshNetwork.ComputerName "< br/> "); document.write("로그인 사용자 이름 = " wshNetwork.UserName "<br/>"); <div class="codebody" id="code54668"></script> <BR></BODY> <BR>< /HTML> <BR><BR><BR>방법 5(IE 및 클라이언트의 IE에서만 ActiveX 실행 허용): <BR>LAN IP 주소, 기기의 MAC, 기기 이름(코드 소스 네트워크)을 얻을 수 있습니다. <BR><div class="codetitle"><span><a style="CURSOR: pointer" data="36106" class="copybut" id="copybut36106" onclick="doCopy('code36106')"><U>코드 복사 코드는 다음과 같습니다.<div class="codebody" id="code36106"> <BR><html> 머리> <BR><제목></제목> <BR><몸> <BR><객체 클래스ID:76A64158-CB41-11D1-8B02-00600806D9B6" id=" locator" style="display:none;visibility:hidden"></object> <BR><object classid="CLSID:75718C9A-F029-11d1-A1AC-00C04FB6C223" id="foo" 스타일 ="display :none;visibility:hidden"></object> <BR><form name="myForm"> <BR><br/>MAC 주소:<input type="text" name=" macAddress"> <BR><br/>IP 주소: <input type="text" name="ipAddress"> <BR><br/>호스트 이름: <입력 유형 ="text " name="hostName"> <BR></body> <BR><script 언어="javascript"> >var sMacAddr =""; <BR>var sIPAddr=""; <BR>var sDNSName=""; <BR>var service = locator.ConnectServer() <BR>service.Security_.ImpersonationLevel=3; >service.InstancesOfAsync(foo, 'Win32_NetworkAdapterConfiguration'); <BR></script> <BR><script FOR="foo" EVENT="OnObjectReady(objObject,objAsyncContext)" LANGUAGE="JScript"> >if( objObject.IPEnabled != null && objObject.IPEnabled != "정의되지 않음" && objObject.IPEnabled == true){ <BR>if(objObject.IPEnabled && objObject.IPAddress(0) !=null && objObject.IPAddress( 0) ! = "정의되지 않음") <BR>sIPAddr = objObject.IPAddress(0); <BR>if(objObject.MACAddress != null &&objObject.MACAddress != "정의되지 않음") <BR>sMacAddr = objObject.MACAddress; 🎜>if (objObject.DNSHostName != null &&objObject.DNSHostName != "정의되지 않음") <BR>sDNSName = objObject.DNSHostName; <BR>} <BR></script> <BR><BR><script FOR ="foo " EVENT="OnCompleted(hResult,pErrorObject, pAsyncContext)" LANGUAGE="JScript"> <BR>myForm.macAddress.value=sMacAddr; <BR>myForm.ipAddress.value=sIPAddr; 호스트 이름.값 =sDNS이름 <BR></script></script> </div> </div> <div class="wzconShengming_sp"> <div class="bzsmdiv_sp">본 웹사이트의 성명</div> <div>본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.</div> </div> </div> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="2507867629"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <div class="AI_ToolDetails_main4sR"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5902227090019525" data-ad-slot="3653428331" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <!-- <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>인기 기사</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796785841.html" title="어 ass 신 크리드 그림자 : 조개 수수께끼 솔루션" class="phpgenera_Details_mainR4_bottom_title">어 ass 신 크리드 그림자 : 조개 수수께끼 솔루션</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796789525.html" title="Windows 11 KB5054979의 새로운 기능 및 업데이트 문제를 해결하는 방법" class="phpgenera_Details_mainR4_bottom_title">Windows 11 KB5054979의 새로운 기능 및 업데이트 문제를 해결하는 방법</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>2 몇 주 전</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796785857.html" title="Atomfall에서 크레인 제어 키 카드를 찾을 수 있습니다" class="phpgenera_Details_mainR4_bottom_title">Atomfall에서 크레인 제어 키 카드를 찾을 수 있습니다</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796783009.html" title="어 ass 신 크리드 섀도우 - 대장장이를 찾고 무기 및 갑옷 커스터마 화 잠금 해제 방법" class="phpgenera_Details_mainR4_bottom_title">어 ass 신 크리드 섀도우 - 대장장이를 찾고 무기 및 갑옷 커스터마 화 잠금 해제 방법</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>1 몇 달 전</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796784440.html" title="<s> : 데드 레일 - 모든 도전을 완료하는 방법" class="phpgenera_Details_mainR4_bottom_title"><s> : 데드 레일 - 모든 도전을 완료하는 방법</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By DDD</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ko/article.html">더보기</a> </div> </div> </div> --> <div class="phpgenera_Details_mainR3"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>핫 AI 도구</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title"> <h3>Undresser.AI Undress</h3> </a> <p>사실적인 누드 사진을 만들기 위한 AI 기반 앱</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title"> <h3>AI Clothes Remover</h3> </a> <p>사진에서 옷을 제거하는 온라인 AI 도구입니다.</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_title"> <h3>Undress AI Tool</h3> </a> <p>무료로 이미지를 벗다</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_title"> <h3>Clothoff.io</h3> </a> <p>AI 옷 제거제</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173414504068133.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Video Face Swap" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/ai/video-swap" title="Video Face Swap" class="phpmain_tab2_mids_title"> <h3>Video Face Swap</h3> </a> <p>완전히 무료인 AI 얼굴 교환 도구를 사용하여 모든 비디오의 얼굴을 쉽게 바꾸세요!</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ko/ai">더보기</a> </div> </div> </div> <script src="https://sw.php.cn/hezuo/cac1399ab368127f9b113b14eb3316d0.js" type="text/javascript"></script> <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>인기 기사</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796785841.html" title="어 ass 신 크리드 그림자 : 조개 수수께끼 솔루션" class="phpgenera_Details_mainR4_bottom_title">어 ass 신 크리드 그림자 : 조개 수수께끼 솔루션</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796789525.html" title="Windows 11 KB5054979의 새로운 기능 및 업데이트 문제를 해결하는 방법" class="phpgenera_Details_mainR4_bottom_title">Windows 11 KB5054979의 새로운 기능 및 업데이트 문제를 해결하는 방법</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>2 몇 주 전</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796785857.html" title="Atomfall에서 크레인 제어 키 카드를 찾을 수 있습니다" class="phpgenera_Details_mainR4_bottom_title">Atomfall에서 크레인 제어 키 카드를 찾을 수 있습니다</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796783009.html" title="어 ass 신 크리드 섀도우 - 대장장이를 찾고 무기 및 갑옷 커스터마 화 잠금 해제 방법" class="phpgenera_Details_mainR4_bottom_title">어 ass 신 크리드 섀도우 - 대장장이를 찾고 무기 및 갑옷 커스터마 화 잠금 해제 방법</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>1 몇 달 전</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/1796784440.html" title="<s> : 데드 레일 - 모든 도전을 완료하는 방법" class="phpgenera_Details_mainR4_bottom_title"><s> : 데드 레일 - 모든 도전을 완료하는 방법</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 몇 주 전</span> <span>By DDD</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ko/article.html">더보기</a> </div> </div> </div> <div class="phpgenera_Details_mainR3"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>뜨거운 도구</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/toolset/development-tools/92" title="메모장++7.3.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="메모장++7.3.1" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/toolset/development-tools/92" title="메모장++7.3.1" class="phpmain_tab2_mids_title"> <h3>메모장++7.3.1</h3> </a> <p>사용하기 쉬운 무료 코드 편집기</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/toolset/development-tools/93" title="SublimeText3 중국어 버전" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 중국어 버전" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/toolset/development-tools/93" title="SublimeText3 중국어 버전" class="phpmain_tab2_mids_title"> <h3>SublimeText3 중국어 버전</h3> </a> <p>중국어 버전, 사용하기 매우 쉽습니다.</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/toolset/development-tools/121" title="스튜디오 13.0.1 보내기" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="스튜디오 13.0.1 보내기" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/toolset/development-tools/121" title="스튜디오 13.0.1 보내기" class="phpmain_tab2_mids_title"> <h3>스튜디오 13.0.1 보내기</h3> </a> <p>강력한 PHP 통합 개발 환경</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/toolset/development-tools/469" title="드림위버 CS6" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="드림위버 CS6" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/toolset/development-tools/469" title="드림위버 CS6" class="phpmain_tab2_mids_title"> <h3>드림위버 CS6</h3> </a> <p>시각적 웹 개발 도구</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/ko/toolset/development-tools/500" title="SublimeText3 Mac 버전" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac 버전" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/ko/toolset/development-tools/500" title="SublimeText3 Mac 버전" class="phpmain_tab2_mids_title"> <h3>SublimeText3 Mac 버전</h3> </a> <p>신 수준의 코드 편집 소프트웨어(SublimeText3)</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ko/ai">더보기</a> </div> </div> </div> <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>뜨거운 주제</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/gmailyxdlrkzn" title="Gmail 이메일의 로그인 입구는 어디에 있나요?" class="phpgenera_Details_mainR4_bottom_title">Gmail 이메일의 로그인 입구는 어디에 있나요?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>7622</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>15</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/cakephp-tutor" title="Cakephp 튜토리얼" class="phpgenera_Details_mainR4_bottom_title">Cakephp 튜토리얼</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1389</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>52</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/steamdzhmcssmgs" title="Steam의 계정 이름 형식은 무엇입니까?" class="phpgenera_Details_mainR4_bottom_title">Steam의 계정 이름 형식은 무엇입니까?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>89</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>11</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/winactivationkeyper" title="Win11 활성화 키 영구" class="phpgenera_Details_mainR4_bottom_title">Win11 활성화 키 영구</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>70</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>19</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/ko/faq/newyorktimesdailybrief" title="NYT 연결 힌트와 답변" class="phpgenera_Details_mainR4_bottom_title">NYT 연결 힌트와 답변</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>31</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>138</span> </div> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/ko/faq/zt">더보기</a> </div> </div> </div> </div> </div> <div class="Article_Details_main2"> <div class="phpgenera_Details_mainL4"> <div class="phpmain1_2_top"> <a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img src="/static/imghw/index2_title2.png" alt="" /></a> </div> <div class="phpgenera_Details_mainL4_info"> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/699958.html" title="Mac 컴퓨터 이름, 호스트 이름, Bonjour 이름을 쉽게 사용자화하는 3가지 팁" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/465/014/170969882583090.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Mac 컴퓨터 이름, 호스트 이름, Bonjour 이름을 쉽게 사용자화하는 3가지 팁" /> </a> <a href="https://www.php.cn/ko/faq/699958.html" title="Mac 컴퓨터 이름, 호스트 이름, Bonjour 이름을 쉽게 사용자화하는 3가지 팁" class="phphistorical_Version2_mids_title">Mac 컴퓨터 이름, 호스트 이름, Bonjour 이름을 쉽게 사용자화하는 3가지 팁</a> <span class="Articlelist_txts_time">Mar 06, 2024 pm 12:20 PM</span> <p class="Articlelist_txts_p">많은 Mac 사용자는 장치의 기본 이름을 유지하는 경향이 있으며 변경을 고려하지 않을 수도 있습니다. 많은 사람들이 초기 설정에서 "Johnny's MacBook Air" 또는 간단히 "iMac"과 같은 이름을 고수하는 것을 선택합니다. Mac의 이름을 변경하는 방법을 배우는 것은 특히 여러 장치를 사용하는 경우 장치를 빠르게 구별하고 관리하는 데 도움이 되므로 매우 유용한 기술입니다. 다음으로 macOS 시스템에서 컴퓨터 이름, 호스트 이름, Bonjour 이름(로컬 호스트 이름)을 변경하는 방법을 단계별로 알려드리겠습니다. Mac 이름을 변경해야 하는 이유는 무엇입니까? Mac의 이름을 변경하면 개성을 보여줄 수 있을 뿐만 아니라 사용자 경험을 개선하는 데에도 도움이 됩니다. Mac을 개인화하세요. 기본 이름이 마음에 들지 않을 수 있으므로 원하는 이름으로 변경하세요.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/694959.html" title="MySQL 호스트 이름의 역할 및 설정 방법" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/000/164/170926417061129.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="MySQL 호스트 이름의 역할 및 설정 방법" /> </a> <a href="https://www.php.cn/ko/faq/694959.html" title="MySQL 호스트 이름의 역할 및 설정 방법" class="phphistorical_Version2_mids_title">MySQL 호스트 이름의 역할 및 설정 방법</a> <span class="Articlelist_txts_time">Mar 01, 2024 am 11:36 AM</span> <p class="Articlelist_txts_p">MySQL 호스트 이름의 역할 및 설정 방법 MySQL은 다양한 웹 사이트 및 애플리케이션에서 널리 사용되는 인기 있는 오픈 소스 데이터베이스 관리 시스템입니다. MySQL 데이터베이스에서 호스트 이름은 데이터베이스에 연결하는 호스트 또는 클라이언트를 식별하는 데 사용됩니다. 호스트 이름은 액세스 권한 부여, 연결 소스 식별, 액세스 권한 제어 등을 포함하여 MySQL에서 다양한 용도로 사용됩니다. 이 문서에서는 MySQL 호스트 이름의 역할과 호스트 설정 방법을 소개합니다.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/695001.html" title="MySQL 호스트 이름의 의미에 대한 자세한 설명" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/465/014/170926579117427.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="MySQL 호스트 이름의 의미에 대한 자세한 설명" /> </a> <a href="https://www.php.cn/ko/faq/695001.html" title="MySQL 호스트 이름의 의미에 대한 자세한 설명" class="phphistorical_Version2_mids_title">MySQL 호스트 이름의 의미에 대한 자세한 설명</a> <span class="Articlelist_txts_time">Mar 01, 2024 pm 12:03 PM</span> <p class="Articlelist_txts_p">MySQL 호스트 이름의 의미 및 구체적인 사용법 MySQL은 다양한 웹 애플리케이션에서 널리 사용되는 인기 있는 오픈 소스 관계형 데이터베이스 관리 시스템입니다. MySQL에서 호스트 이름은 데이터베이스 서버에 연결된 호스트의 이름을 지정하는 데 사용되는 중요한 개념입니다. 이번 글에서는 MySQL 호스트네임의 의미와 실제 개발에서 어떻게 활용하는지 자세히 설명하겠습니다. MySQL 호스트 이름의 의미: MySQL에서 호스트 이름은 허용되는 연결을 지정하는 데 사용됩니다.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/709017.html" title="Linux 호스트 이름의 의미와 설정 팁에 대한 심층적인 이해" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/887/227/171046638547534.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Linux 호스트 이름의 의미와 설정 팁에 대한 심층적인 이해" /> </a> <a href="https://www.php.cn/ko/faq/709017.html" title="Linux 호스트 이름의 의미와 설정 팁에 대한 심층적인 이해" class="phphistorical_Version2_mids_title">Linux 호스트 이름의 의미와 설정 팁에 대한 심층적인 이해</a> <span class="Articlelist_txts_time">Mar 15, 2024 am 09:33 AM</span> <p class="Articlelist_txts_p">호스트 이름은 Linux 시스템에서 중요한 식별자로, 네트워크에서 컴퓨터의 ID와 위치를 식별합니다. 호스트 이름을 올바르게 설정하면 시스템 관리의 효율성과 네트워크 통신의 안정성을 향상시키는 데 도움이 될 수 있습니다. 이 기사에서는 Linux 호스트 이름의 의미, 설정 팁 및 일부 특정 코드 예제를 자세히 살펴보겠습니다. 1. 호스트 이름의 의미 Linux 시스템에서 호스트 이름은 네트워크에서 컴퓨터의 고유 ID를 식별하는 데 사용됩니다. 호스트 이름은 일반적으로 다음 형식의 호스트 이름과 도메인 이름으로 구성됩니다. 호스트 이름.도메인호스트 이름 작업</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/709083.html" title="Linux 호스트 이름의 역할 및 설정 방법" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/465/014/171046836434885.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Linux 호스트 이름의 역할 및 설정 방법" /> </a> <a href="https://www.php.cn/ko/faq/709083.html" title="Linux 호스트 이름의 역할 및 설정 방법" class="phphistorical_Version2_mids_title">Linux 호스트 이름의 역할 및 설정 방법</a> <span class="Articlelist_txts_time">Mar 15, 2024 am 10:06 AM</span> <p class="Articlelist_txts_p">Linux 호스트 이름의 역할 및 설정 방법 Linux 시스템에서 호스트 이름은 사용자가 서로 다른 호스트 간의 네트워크 연결을 식별하고 관리하는 데 도움이 되는 매우 중요한 식별자입니다. 호스트 이름은 일반적으로 문자, 숫자, 하이픈으로 구성되며 네트워크에서 컴퓨터를 고유하게 식별하는 데 사용됩니다. 기능: 식별: 호스트 이름은 서로 다른 컴퓨터를 식별할 수 있으므로 사용자는 서로 다른 호스트를 쉽게 구별할 수 있습니다. 네트워크 연결: 호스트 이름은 네트워크 통신에서 중요한 역할을 하며, 서로 다른 호스트가 서로를 식별하고 통신할 수 있도록 해줍니다.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/639613.html" title="ubuntu16.04에서 호스트 이름을 변경하는 방법은 무엇입니까?" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/887/227/170417989337696.png?x-oss-process=image/resize,m_fill,h_207,w_330" alt="ubuntu16.04에서 호스트 이름을 변경하는 방법은 무엇입니까?" /> </a> <a href="https://www.php.cn/ko/faq/639613.html" title="ubuntu16.04에서 호스트 이름을 변경하는 방법은 무엇입니까?" class="phphistorical_Version2_mids_title">ubuntu16.04에서 호스트 이름을 변경하는 방법은 무엇입니까?</a> <span class="Articlelist_txts_time">Jan 02, 2024 pm 03:18 PM</span> <p class="Articlelist_txts_p">Ubuntu의 호스트 이름은 기본값이지만 수정할 수도 있습니다. Ubuntu 16.04에서 호스트 이름을 변경하는 방법에 대한 튜토리얼을 살펴보겠습니다. 1. 시스템 오른쪽 상단에 있는 아이콘을 클릭하고 그림과 같이 선택합니다. 2. AboutThisComputer 버튼을 클릭하면 다음과 같은 세부 정보가 나타납니다. 장치 이름 제목 뒤에 호스트 이름이 표시됩니다. 3. 원하는 이름을 입력하고 창을 닫습니다. 4. 터미널 터미널을 다시 열면 호스트 이름이 수정됩니다. 파일 수정 방법을 붙여넣는 것이 더 빠르고 편리합니다. 터미널 /hostname에 gedit/etc를 입력하고,</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/642220.html" title="Ubuntu의 호스트 이름을 변경하는 방법은 무엇입니까? 우분투 호스트 이름 수정 가이드" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/465/014/170443244891023.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Ubuntu의 호스트 이름을 변경하는 방법은 무엇입니까? 우분투 호스트 이름 수정 가이드" /> </a> <a href="https://www.php.cn/ko/faq/642220.html" title="Ubuntu의 호스트 이름을 변경하는 방법은 무엇입니까? 우분투 호스트 이름 수정 가이드" class="phphistorical_Version2_mids_title">Ubuntu의 호스트 이름을 변경하는 방법은 무엇입니까? 우분투 호스트 이름 수정 가이드</a> <span class="Articlelist_txts_time">Jan 05, 2024 pm 01:27 PM</span> <p class="Articlelist_txts_p">1. 루트 사용자가 sudopasswdroot 명령을 실행하여 루트 사용자의 비밀번호를 설정할 수 있도록 합니다. 2. 루트 사용자로 로그인합니다. 1) /etc/hosts 파일을 편집하고 다음 줄 127.0.1.1xxxxx를 127.0.1.1newhostname으로 바꿉니다. 2) /etc/hostname 파일을 편집하고 삭제합니다. 파일의 모든 내용에 newhostname을 추가합니다.3) root 사용자를 종료하고 일반 사용자로 로그인합니다. 참고: xxxxx는 원래 호스트 이름이고 newhostname입니다. 수정하려는 호스트 이름입니다.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/ko/faq/694908.html" title="MySQL의 호스트 이름을 확인하는 방법은 무엇입니까?" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/887/227/170926219237134.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="MySQL의 호스트 이름을 확인하는 방법은 무엇입니까?" /> </a> <a href="https://www.php.cn/ko/faq/694908.html" title="MySQL의 호스트 이름을 확인하는 방법은 무엇입니까?" class="phphistorical_Version2_mids_title">MySQL의 호스트 이름을 확인하는 방법은 무엇입니까?</a> <span class="Articlelist_txts_time">Mar 01, 2024 am 11:03 AM</span> <p class="Articlelist_txts_p">MySQL의 호스트 이름을 확인하는 방법은 무엇입니까? MySQL 데이터베이스를 사용할 때 연결 작업을 수행하기 위해 MySQL 데이터베이스의 호스트 이름을 결정해야 하는 경우가 있습니다. MySQL의 호스트 이름을 결정하는 것은 실제로 복잡하지 않습니다. 다음에서는 코드 예제를 첨부하여 MySQL의 호스트 이름을 결정하는 방법을 자세히 소개합니다. 먼저, 다음과 같은 방법으로 MySQL의 호스트 이름을 확인할 수 있습니다. 구성 파일을 통해 MySQL의 호스트 이름은 일반적으로 MySQL 구성 파일에서 구성됩니다.</p> </div> </div> <a href="https://www.php.cn/ko/web-designer.html" class="phpgenera_Details_mainL4_botton"> <span>See all articles</span> <img src="/static/imghw/down_right.png" alt="" /> </a> </div> </div> </div> </main> <footer> <div class="footer"> <div class="footertop"> <img src="/static/imghw/logo.png" alt=""> <p>공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!</p> </div> <div class="footermid"> <a href="https://www.php.cn/ko/about/us.html">회사 소개</a> <a href="https://www.php.cn/ko/about/disclaimer.html">부인 성명</a> <a href="https://www.php.cn/ko/update/article_0_1.html">Sitemap</a> </div> <div class="footerbottom"> <p> © php.cn All rights reserved </p> </div> </div> </footer> <input type="hidden" id="verifycode" value="/captcha.html"> <script>layui.use(['element', 'carousel'], function () {var element = layui.element;$ = layui.jquery;var carousel = layui.carousel;carousel.render({elem: '#test1', width: '100%', height: '330px', arrow: 'always'});$.getScript('/static/js/jquery.lazyload.min.js', function () {$("img").lazyload({placeholder: "/static/images/load.jpg", effect: "fadeIn", threshold: 200, skip_invisible: false});});});</script> <script src="/static/js/common_new.js"></script> <script type="text/javascript" src="/static/js/jquery.cookie.js?1745238126"></script> <script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script> <link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all' /> <script type='text/javascript' src='/static/js/viewer.min.js?1'></script> <script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script> <script type="text/javascript" src="/static/js/global.min.js?5.5.53"></script> <script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function () { var u = "https://tongji.php.cn/"; _paq.push(['setTrackerUrl', u + 'matomo.php']); _paq.push(['setSiteId', '9']); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s); })(); </script> <script> // top layui.use(function () { var util = layui.util; util.fixbar({ on: { mouseenter: function (type) { layer.tips(type, this, { tips: 4, fixed: true, }); }, mouseleave: function (type) { layer.closeAll("tips"); }, }, }); }); document.addEventListener("DOMContentLoaded", (event) => { // 定义一个函数来处理滚动链接的点击事件 function setupScrollLink(scrollLinkId, targetElementId) { const scrollLink = document.getElementById(scrollLinkId); const targetElement = document.getElementById(targetElementId); if (scrollLink && targetElement) { scrollLink.addEventListener("click", (e) => { e.preventDefault(); // 阻止默认链接行为 targetElement.scrollIntoView({ behavior: "smooth" }); // 平滑滚动到目标元素 }); } else { console.warn( `Either scroll link with ID '${scrollLinkId}' or target element with ID '${targetElementId}' not found.` ); } } // 使用该函数设置多个滚动链接 setupScrollLink("Article_Details_main1L2s_1", "article_main_title1"); setupScrollLink("Article_Details_main1L2s_2", "article_main_title2"); setupScrollLink("Article_Details_main1L2s_3", "article_main_title3"); setupScrollLink("Article_Details_main1L2s_4", "article_main_title4"); setupScrollLink("Article_Details_main1L2s_5", "article_main_title5"); setupScrollLink("Article_Details_main1L2s_6", "article_main_title6"); // 可以继续添加更多的滚动链接设置 }); window.addEventListener("scroll", function () { var fixedElement = document.getElementById("Article_Details_main1Lmain"); var scrollTop = window.scrollY || document.documentElement.scrollTop; // 兼容不同浏览器 var clientHeight = window.innerHeight || document.documentElement.clientHeight; // 视口高度 var scrollHeight = document.documentElement.scrollHeight; // 页面总高度 // 计算距离底部的距离 var distanceToBottom = scrollHeight - scrollTop - clientHeight; // 当距离底部小于或等于300px时,取消固定定位 if (distanceToBottom <= 980) { fixedElement.classList.remove("Article_Details_main1Lmain"); fixedElement.classList.add("Article_Details_main1Lmain_relative"); } else { // 否则,保持固定定位 fixedElement.classList.remove("Article_Details_main1Lmain_relative"); fixedElement.classList.add("Article_Details_main1Lmain"); } }); </script> </body> </html>