<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>일상다반사(日常茶飯事) &amp;gt; 스터디 &amp;gt; Server &amp;amp; OS</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server</link>
<language>ko</language>
<description>Server &amp;amp; OS (2025-02-14 11:49:49)</description>

<item>
<title>윈도우11 자동로그인 설정 (netplwiz)</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1395</link>
<description><![CDATA[<p>1. 로컬계정 전환</p><p>- 설정 앱 열기</p><p>작업 표시줄에서 윈도우 아이콘 클릭 → "설정" 검색 후 실행</p><p><br /></p><p>- 계정 메뉴로 이동</p><p>"설정" 창에서 계정 항목 선택</p><p><br /></p><p>- 로컬 계정으로 전환</p><p>"사용자 정보" 메뉴에서 대신 로컬 계정으로 로그인 클릭</p><p>현재 마이크로소프트 계정 암호 입력 후 "다음" 선택</p><p>새로운 로컬 계정 사용자명 입력 (암호는 입력하지 않고 그대로 둠)</p><p>"다음" → "로그아웃 및 마침" 클릭</p><p><br /></p><p>2. 레지스트리 수정 (regedit)</p><p>Win + R 키를 눌러 "실행" 창을 띄운 뒤 regedit 입력 후 Enter</p><div><br /></div><p>컴퓨터\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\<b><span style="color:rgb(255,0,0);">Windows NT</span></b>\CurrentVersion\PasswordLess\Device</p><p>DevicePasswordLessBuildVersion 값을 1로 수정</p><p><br /></p><p>3. Win + R 키를 눌러 "실행" 창을 띄운 뒤 netplwiz 입력 후 Enter</p><p>"사용자 계정" 창이 뜨면 사용자 이름과 암호를 입력해야 이 컴퓨터를 사용할 수 있음 체크 해제</p><p>자동 로그인 암호 입력</p><p><br /></p><p><br /></p><p><br /></p><p>---------------------------------------------------</p><p>위 방법으로 안될 경우</p><p><br /></p><p>? 해결 방법 2: Winlogon 키 수동 생성하기</p><p>Winlogon 키가 없다면 직접 만들 수 있습니다.</p><p><br /></p><p>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\<b><span style="color:rgb(255,0,0);">Windows NT</span></b>\CurrentVersion으로 이동합니다.</p><p><br /></p><p>오른쪽 빈 공간에서 마우스 우클릭 → 새로 만들기 → 키(K) 선택 후 이름을 Winlogon으로 입력합니다.</p><p><br /></p><p>Winlogon 키를 선택한 상태에서 오른쪽 빈 공간을 우클릭하고 **새로 만들기 → 문자열 값(S)**을 선택하여 아래 값을 추가합니다.</p><p><br /></p><p>이름: AutoAdminLogon → 값: 1</p><p>이름: DefaultUserName → 값: 로컬 계정 이름 입력</p><p>이름: DefaultPassword → 값: 로그인 암호 입력 (없으면 생략 가능)</p><p>레지스트리 편집기를 닫고 PC를 재부팅합니다.</p><p><br /></p><p>----------------------------------------------------------------------------</p><p><br /></p><p>윈도우 11에서 디스플레이가 꺼졌다가 다시 사용할 때 암호 입력을 하지 않으려면 아래 설정을 변경하면 됩니다.</p><p><br /></p><p>설정 &gt; 계정 &gt; 로그인 옵션 &gt; 추가 설정 </p><p>Windows를 사용하지 않을 경우 언제 다시 로그인해야 합니까?</p><p>안 함으로 설정</p>]]></description>
<dc:creator>최고관리자</dc:creator>
<dc:date>2025-02-14T11:49:49+09:00</dc:date>
</item>


<item>
<title>윈도우11 설치시 로그인 건너뛰기  “OOBE\BYPASSNRO”</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1394</link>
<description><![CDATA[<p class="se-text-paragraph se-text-paragraph-align-" style="border:0px;font-size:11px;line-height:1.8;font-family:'se-nanumgothic', arial, '나눔고딕', nanumgothic, sans-serif, Meiryo;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(247,247,247);"><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">윈도우11 재설치시 </span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;color:rgb(255,0,16);"><span style="font-weight:700;background-color:inherit;font-family:inherit;">로그인 건너뛰기</span></span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">는 다음의 순서대로 하세요!</span></p><p class="se-text-paragraph se-text-paragraph-align-" style="border:0px;font-size:11px;line-height:1.8;font-family:'se-nanumgothic', arial, '나눔고딕', nanumgothic, sans-serif, Meiryo;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(247,247,247);"><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">​</span></p><p class="se-text-paragraph se-text-paragraph-align-" style="border:0px;font-size:11px;line-height:1.8;font-family:'se-nanumgothic', arial, '나눔고딕', nanumgothic, sans-serif, Meiryo;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(247,247,247);"><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">1. 윈도우11 설치중 </span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;color:rgb(255,0,16);">인터넷 연결을 해제</span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">한다.</span></p><p class="se-text-paragraph se-text-paragraph-align-" style="border:0px;font-size:11px;line-height:1.8;font-family:'se-nanumgothic', arial, '나눔고딕', nanumgothic, sans-serif, Meiryo;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(247,247,247);"><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">2. 인터넷 연결창이 뜬다면 </span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;color:rgb(255,0,16);">단축키 ‘SHIFT + F10’ </span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">을 누른다.</span></p><p class="se-text-paragraph se-text-paragraph-align-" style="border:0px;font-size:11px;line-height:1.8;font-family:'se-nanumgothic', arial, '나눔고딕', nanumgothic, sans-serif, Meiryo;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(247,247,247);"><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">3. 명령프롬트창이 뜨게 되며, 다음과 같은 명령어를 입력한다.</span></p><p class="se-text-paragraph se-text-paragraph-align-" style="border:0px;font-size:11px;line-height:1.8;font-family:'se-nanumgothic', arial, '나눔고딕', nanumgothic, sans-serif, Meiryo;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(247,247,247);"><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">4.</span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;color:rgb(255,0,16);"><span style="font-weight:700;background-color:inherit;font-family:inherit;"> “OOBE\BYPASSNRO” </span></span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">입력하고 엔터를 합니다.</span></p><p class="se-text-paragraph se-text-paragraph-align-" style="border:0px;font-size:11px;line-height:1.8;font-family:'se-nanumgothic', arial, '나눔고딕', nanumgothic, sans-serif, Meiryo;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(247,247,247);"><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">5. 재부팅이 되고 윈도우 11 설치 화면이 나오게 됩니다.</span></p><p class="se-text-paragraph se-text-paragraph-align-" style="border:0px;font-size:11px;line-height:1.8;font-family:'se-nanumgothic', arial, '나눔고딕', nanumgothic, sans-serif, Meiryo;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(247,247,247);"><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">6. 윈도우11 설치중 </span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;color:rgb(0,122,166);">인터넷연결없음 항목</span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">에서</span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;color:rgb(255,0,16);"> ‘제한된 설치로 계속’</span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;"> 으로 윈도우 11 설치 가능</span></p><p class="se-text-paragraph se-text-paragraph-align-" style="border:0px;font-size:11px;line-height:1.8;font-family:'se-nanumgothic', arial, '나눔고딕', nanumgothic, sans-serif, Meiryo;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(247,247,247);"><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">​</span></p><p class="se-text-paragraph se-text-paragraph-align-" style="border:0px;font-size:11px;line-height:1.8;font-family:'se-nanumgothic', arial, '나눔고딕', nanumgothic, sans-serif, Meiryo;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(247,247,247);"><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">위의 6가지를 순서대로 입력 하면 </span><span class="se-fs-fs16 se-ff-nanummaruburi se-style-unset" style="margin:0px;padding:0px;border:0px;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;"><span style="font-weight:700;background-color:inherit;font-family:inherit;">윈도우11 오프라인계정</span></span><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;">으로 계정을 생성하여 볼 수 있습니다.</span></p><p class="se-text-paragraph se-text-paragraph-align-" style="border:0px;font-size:11px;line-height:1.8;font-family:'se-nanumgothic', arial, '나눔고딕', nanumgothic, sans-serif, Meiryo;vertical-align:baseline;color:rgb(51,51,51);background-color:rgb(247,247,247);"><span class="se-fs-fs16 se-ff-nanummaruburi" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-size:16px;font-family:'se-nanummaruburi', arial, nanummaruburi, sans-serif;vertical-align:baseline;color:rgb(0,116,51);"><span style="font-weight:700;background-color:inherit;font-family:inherit;">“OOBE\BYPASSNRO”</span></span></p>]]></description>
<dc:creator>최고관리자</dc:creator>
<dc:date>2025-02-12T17:26:00+09:00</dc:date>
</item>


<item>
<title>vi editor 문자열 바꾸기(replace)</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1393</link>
<description><![CDATA[<h2 style="font-size:24px;margin-bottom:24px;color:rgba(0,0,0,0.87);line-height:1.38;">기본 치환 방법</h2><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><div class="txc-textbox" style="border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);padding:10px;"><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">:%s/foo/bar<br /></p></div><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">모든 foo라는 문자열을 'bar'로 한꺼번에 치환한다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">기본 틀은 아래와 같다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><span style="font-weight:bolder;">:%s/[원본단어]/[바꿀단어]</span></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">기본 틀에 옵션을 주면, 좀더 활용이 편리한 경우가 있다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><span style="font-weight:bolder;"><br /></span></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><span style="font-weight:bolder;">:%s/[원본단어]/[바꿀단어]</span><span style="color:rgb(255,0,0);"><span style="font-weight:bolder;">/[옵션]</span></span></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">아래에서 소개하는 방법들은 그 옵션별로, 어떤 동작을 하는지를 설명한다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><h2 style="font-size:24px;margin-bottom:24px;color:rgba(0,0,0,0.87);line-height:1.38;">대소문자 구분없이 치환 방법</h2><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><div class="txc-textbox" style="border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);padding:10px;"><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">:%s/foo/bar/i</p></div><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">foo라는 문자열 뿐만 아니라, Foo, FOo, FOO, fOo, fOO, foO, FoO 등과 같은 문자열을 'bar' 라는 문자열로 한꺼번에 치환한다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><h2 style="font-size:24px;margin-bottom:24px;color:rgba(0,0,0,0.87);line-height:1.38;">전역 치환 방법</h2><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><div class="txc-textbox" style="border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);padding:10px;"><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">:%s/foo/bar/g</p></div><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">vi의 기본적인 치환 방법을 실행하게 되면, 하나의 줄에서 가장 첫번째로 등장하는 단어만 치환한다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">예를 들어 'foofoofoofoofoofoofoofoo' 라는 문장이 있다고 가정하자.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><span style="font-weight:bolder;">:%s/foo/bar </span>를 실행하면 결과는 '<span style="color:rgb(255,0,0);"><span style="font-weight:bolder;">bar</span></span>foofoofoofoofoofoofoo' 와 같이 된다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">만약 원하는 것이, 'barbarbarbarbarbarbarbar' 와 같이 모든 'foo'가 전부 'bar'로 바뀌는 것이었다면, 지금 소개하는 '전역 치환 방법'을 적용하면 된다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><h2 style="font-size:24px;margin-bottom:24px;color:rgba(0,0,0,0.87);line-height:1.38;">interactive모드로(바꿀까요? 물어보도록) 치환 방법</h2><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><div class="txc-textbox" style="border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);padding:10px;"><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">:%s/foo/bar/c</p></div><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">위 명령에서 마지막의 'c'는 foo를 bar로 바꾸어도 좋은지 물어보도록 하는 옵션이다. vi가 바꾸려고 하는 foo에 포커스를 맞춰주기 때문에, 개발자가 직접 눈으로 보고 선택적으로 변경을 할 수 있기에 더 안전하다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);text-align:center;clear:none;float:none;"><span class="imageblock" style="width:444px;height:auto;max-width:100%;"><img src="https://t1.daumcdn.net/cfile/tistory/2701F54F59512F621D" width="444" height="115" style="border-style:none;margin:0px;height:auto;" alt="2701F54F59512F621D" /><span class="cap1" style="font-size:14px;color:rgba(0,0,0,0.54);max-width:100%;">너 'bar'로 바꿀거니?</span></span></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">이와 같이 바꿀 단어를 만나게 되면, 사용자에게 물어본다. <br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">y: 현재 focus 된 'foo'를 'bar'로 바꾸고 다음 'foo'로 건너뛰어 focus를 맞춘다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">n: 현재 focus 된 'foo'를 'bar'로 바꾸지 않고 다음 'foo'로 건너뛰어 focus를 맞춘다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">a: 더이상 묻지 않고, 모든 'foo'를 'bar'로 바꾼다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">q: 바꾸는 것을 그만 둔다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">l : 현재 focus된 'foo'를 'bar'로 바꾸고, 더이상 바꾸기를 하지 않고 그만둔다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><h2 style="font-size:24px;margin-bottom:24px;color:rgba(0,0,0,0.87);line-height:1.38;">옵션을 혼용한 치환 방법</h2><div class="txc-textbox" style="border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);padding:10px;"><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">:%s/foo/bar/gic<br /></p></div><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">만약, 전역 치환방법과 interactive모드로의 치환, 대소문자 무시한 치환을 모두 적용하고 싶다면?</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">지금 소개하는 방법과 같이 옵션을 동시에 사용할 수 있다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><h2 style="font-size:24px;margin-bottom:24px;color:rgba(0,0,0,0.87);line-height:1.38;">응용1. 경로 치환 방법</h2><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">만약 어떤 소스코드에 '/etc/file.txt' 라는게 있다고 해보자.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">그런데 이걸 '/opt/usr/data/file.txt' 라는 문자열로 바꿔야 한다면?</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><div class="txc-textbox" style="border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);padding:10px;"><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">:%s/\/etc\/file.txt/\/opt\/user\/data\/file.txt/g<br /></p></div><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">슬래쉬 '/' 문자는 특수 문자이다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">이와 같이 특수 문자앞에 필수로 붙여야하는 '\' 를 활용하면 된다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><h2 style="font-size:24px;margin-bottom:24px;color:rgba(0,0,0,0.87);line-height:1.38;">응용2. 개행문자(줄바꿈 문자)를 모두 없애기</h2><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">파일의 모든 줄바꿈 문자를 없애야 하는 상황이라면?</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">아래와 같은 방법을 적용할 수 있다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><div class="txc-textbox" style="border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);padding:10px;"><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">:%s/\n//g<br /></p></div><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br /></p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);">'\n' 라는 개행문자를 '' 공백문자로 전역치환 하는 방법이다.</p><p style="margin-bottom:28px;font-size:16px;line-height:26px;color:rgb(85,85,85);"><br style="font-family:'Noto Sans KR', Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', '맑은 고딕', 'Nanum Gothic', Dotum, '돋움', Helvetica, sans-serif;" /></p>]]></description>
<dc:creator>최고관리자</dc:creator>
<dc:date>2023-08-11T10:03:38+09:00</dc:date>
</item>


<item>
<title>서버 이전시 letsencrypt 인증서 다른서버로 복사하기</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1392</link>
<description><![CDATA[<p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);">펌 : <a href="https://servedev.tistory.com/79" rel="nofollow">https://servedev.tistory.com/79</a></p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"><br /></p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);">letsencrypt 인증서 생성 후 서버를 이전 또는 이중화 하는 경우가 있을것이다.</p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);">이때 기존 생성한 인증서를 복사한 방법은 아래와 같다.</p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"> </p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);">우선 인증서가 설치된 위치로 이동한다.</p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="color:rgb(238,35,35);"><b>cd /etc/letsencrypt</b></span></p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);">이동 후 하위의 디렉토리들을 확인하고, 하위 디렉토리중 </p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);">인증서 정보, 설정 정보, 갱신정보가 있는</p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="color:rgb(238,35,35);"><b>"archarchive", "live", "renewal", "renewal-hooks" 를 복사</b></span>한다.</p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);">이때, <span style="color:rgb(238,35,35);"><u>특정 도메인만 하겠다고 하면 해당 도메인 인증서만 복사</u></span>한다.</p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"> </p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);">두번째로 <u><span style="color:rgb(238,35,35);">기존 인증서에 사용하는 계정정보(account)를 확인</span></u>해 둔다.</p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);">이 부분이 중요한데, 다른서버에서 계정정보가 다르기 때문에 타겟 서버에 이동후 인증서 파일정보에 있는 계정을 타켓서버에 맞게 변경을 해줘야 한다.</p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"> </p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="color:rgb(238,35,35);">타겟서버에서도 letsencrypt의 인증서 계정정보를 확인</span>한다.</p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="color:rgb(238,35,35);"><b>ls /etc/letsencrypt/accounts/acme-v02.api.letsencrypt.org/directory/</b></span></p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);">위와 같이 하거나, 타겟서버에서 생성된 인증서가 있다면 해당 인증서의 설정 파일을 열어 확인해도 된다.</p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"> </p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="color:rgb(238,35,35);"><b>복사한 원본</b> letsencrypt 인증서를 타겟서버에 복사</span>한다.</p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"> </p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);">마지막으로 <span style="color:rgb(238,35,35);"><b>복사한 인증서 정보에서 account 를 변경</b></span>해 준다.</p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"><b><span style="color:rgb(238,35,35);">sed -i 's/old계정/new계정/' /etc/letsencrypt/renewal/*</span></b></p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);"> </p><p style="color:rgb(51,51,51);font-family:'나눔고딕', NanumGothic, 'Apple SD Gothic Neo', '돋움', dotum, Arial, sans-serif;font-size:14px;background-color:rgb(255,255,255);">참고 url : <a href="https://community.letsencrypt.org/t/copy-etc-letsencrypt-or-regenerate-to-move/141684/3" target="_blank" style="background:transparent;color:rgb(66,139,202);" rel="nofollow noreferrer noopener">community.letsencrypt.org/t/copy-etc-letsencrypt-or-regenerate-to-move/141684/3</a></p>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2023-03-24T17:41:42+09:00</dc:date>
</item>


<item>
<title>cron MySQL restart</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1391</link>
<description><![CDATA[<h1 class="entry-title" style="margin:0px 0px 0.2em;clear:both;padding:0px;min-width:0px;line-height:1.2em;color:rgb(64,64,64);font-family:'Open Sans', sans-serif;background-color:rgb(255,255,255);">How To Auto Restart a Crashed MySQL Service with Cron</h1><div class="singlepostinfo" style="min-width:0px;color:rgb(153,153,153);margin-bottom:20px;font-family:'Open Sans', sans-serif;font-size:16px;background-color:rgb(255,255,255);">Last updated on February 13th, 2021</div><div style="min-width:0px;font-size:1.2em;color:rgb(64,64,64);font-family:'Open Sans', sans-serif;background-color:rgb(255,255,255);"><p style="margin-bottom:1em;min-width:0px;">MySQL may crash when it runs out of memory or for some other issue. In most cases, you can resolve this by simply restarting the MySQL service.</p></div><div class="entry-content" style="min-width:0px;color:rgb(64,64,64);font-family:'Open Sans', sans-serif;font-size:16px;background-color:rgb(255,255,255);"><p style="margin-bottom:1em;min-width:0px;">To see if MySQL is running or not, run:</p><div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">sudo</span> <span class="token function" style="min-width:0px;color:rgb(221,74,104);">service</span> mysql status</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">If MySQL is down, you can restart it with:</p><div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">sudo</span> <span class="token function" style="min-width:0px;color:rgb(221,74,104);">service</span> mysql restart</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">But, what if you’re away on vacation while your client’s website goes down? Surely there’s a way to automate this entire process In Linux?<br /></p>Why, yes there is! Cron is a time-based job scheduler for Linux that can run scripts in your absence.<a class="anchor" style="background-color:transparent;min-width:0px;color:rgb(51,122,183);"></a><h2 style="clear:both;margin:1em 0px;padding:1em 0px 0px;min-width:0px;font-size:1.7em;border-top:1px solid rgba(0,0,0,0.1);line-height:1.4em;">Create a Script to Auto Restart MySQL</h2><p style="margin-bottom:1em;min-width:0px;">You can configure cron to automatically check the status of the MySQL server and restart it if it crashes. Of course, this is not a permanent fix for your creaky MySQL server, but it can buy you time until you are able to investigate further.</p><p style="margin-bottom:1em;min-width:0px;">We first need to create a simple BASH script and store it in the home folder (or anywhere you want), and then instruct cron to run this BASH script once a minute.</p><p style="margin-bottom:1em;min-width:0px;">You can put this script anywhere, but in this example, we will put it in the home folder.</p><p style="margin-bottom:1em;min-width:0px;">Change directory to the home folder.</p><div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">cd</span> /home/</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">Create a new directory here called scripts.</p><div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">sudo</span> <span class="token function" style="min-width:0px;color:rgb(221,74,104);">mkdir</span> scripts</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"><br /></div></div>Change to this directory.<div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">cd</span> scripts</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">Create a new file in this directory called <code style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:14.4px;min-width:0px;line-height:22px;padding:2px 5px;background-color:rgb(237,237,237);">mysqlmon.sh</code> using the <code style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:14.4px;min-width:0px;line-height:22px;padding:2px 5px;background-color:rgb(237,237,237);">nano</code> text editor.</p><div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">sudo</span> <span class="token function" style="min-width:0px;color:rgb(221,74,104);">nano</span> mysqlmon.sh</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">Paste in the following script.</p><div class="code-wrap" style="min-width:0px;"><div class="pre-label" style="min-width:0px;background-color:rgba(0,0,0,0.1);padding:6px 5px;text-align:center;font-size:0.8em;color:rgb(154,154,154);">/home/scripts/mysqlmon.sh</div><pre class="code pre-only" style="font-family:'Courier 10 Pitch', courier, monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.6;max-width:100%;min-width:0px;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="pre-only" style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:13.5px;min-width:0px;line-height:22px;padding:0px 30px 0px 0px;">#!/bin/bash

# Check if MySQL is running
sudo service mysql status &gt; /dev/null 2&gt;&amp;1

# Restart the MySQL service if it's not running.
if [ $? != 0 ]; then
    echo -e "MySQL Service was down. Restarting now...\n"
    sudo service mysql restart
else
    echo -e "MySQL Service is running already. Nothing to do here.\n"
fi</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">Save and exit (press <code style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:14.4px;min-width:0px;line-height:22px;padding:2px 5px;background-color:rgb(237,237,237);">CTRL</code> + <code style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:14.4px;min-width:0px;line-height:22px;padding:2px 5px;background-color:rgb(237,237,237);">X</code>, press <code style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:14.4px;min-width:0px;line-height:22px;padding:2px 5px;background-color:rgb(237,237,237);">Y</code> and then press <code style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:14.4px;min-width:0px;line-height:22px;padding:2px 5px;background-color:rgb(237,237,237);">ENTER</code>)</p><p style="margin-bottom:1em;min-width:0px;">Make the script executable.</p><div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">sudo</span> <span class="token function" style="min-width:0px;color:rgb(221,74,104);">chmod</span> +x mysqlmon.sh</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><a class="anchor" style="background-color:transparent;min-width:0px;color:rgb(51,122,183);"></a><h2 style="clear:both;margin:1em 0px;padding:1em 0px 0px;min-width:0px;font-size:1.7em;border-top:1px solid rgba(0,0,0,0.1);line-height:1.4em;">Test the Script to Auto Restart MySQL</h2><p style="margin-bottom:1em;min-width:0px;">Test the script by running:</p><div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">sudo</span> ./mysqlmon.sh</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">If MySQL is up and running, you should see:</p><div class="code-wrap" style="min-width:0px;"><pre class="code pre-only" style="font-family:'Courier 10 Pitch', courier, monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.6;max-width:100%;min-width:0px;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="pre-only" style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:13.5px;min-width:0px;line-height:22px;padding:0px 30px 0px 0px;">MySQL Service is running already. Nothing to do here.</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">If you want to see what happens when the script detects if MySQL is down, stop the MySQL service, but only do this if your web server isn’t live! If your server is live but not busy, stopping and starting the MySQL server should only take a few seconds.</p><div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">sudo</span> <span class="token function" style="min-width:0px;color:rgb(221,74,104);">service</span> mysql stop</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">Now test the script again by running:</p><div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">sudo</span> ./mysqlmon.sh</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">Output:</p><div class="code-wrap" style="min-width:0px;"><pre class="code pre-only" style="font-family:'Courier 10 Pitch', courier, monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.6;max-width:100%;min-width:0px;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="pre-only" style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:13.5px;min-width:0px;line-height:22px;padding:0px 30px 0px 0px;">MySQL Service was down. Restarting now..</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"><br /></div></div>The MySQL service should be up again. You can check with:<div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">sudo</span> <span class="token function" style="min-width:0px;color:rgb(221,74,104);">service</span> mysql status</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><a class="anchor" style="background-color:transparent;min-width:0px;color:rgb(51,122,183);"></a><h2 style="clear:both;margin:1em 0px;padding:1em 0px 0px;min-width:0px;font-size:1.7em;border-top:1px solid rgba(0,0,0,0.1);line-height:1.4em;">Add the MySQL Auto Restart Script to Crontab</h2><p style="margin-bottom:1em;min-width:0px;">By adding this script to crontab, the server will check the MySQL service once a minute, and if it isn’t running, it will restart it.</p><p style="margin-bottom:1em;min-width:0px;">Open crontab (if asked to select a text editor, choose nano).</p><div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">sudo</span> <span class="token function" style="min-width:0px;color:rgb(221,74,104);">crontab</span> -e</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">In crontab, add the following line to the bottom of the file.</p><div class="code-wrap" style="min-width:0px;"><div class="pre-label" style="min-width:0px;background-color:rgba(0,0,0,0.1);padding:6px 5px;text-align:center;font-size:0.8em;color:rgb(154,154,154);">crontab</div><pre class="code pre-only" style="font-family:'Courier 10 Pitch', courier, monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.6;max-width:100%;min-width:0px;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="pre-only" style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:13.5px;min-width:0px;line-height:22px;padding:0px 30px 0px 0px;">* * * * * /home/scripts/mysqlmon.sh &gt; /dev/null 2&gt;&amp;1</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">Save and exit (press <code style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:14.4px;min-width:0px;line-height:22px;padding:2px 5px;background-color:rgb(237,237,237);">CTRL</code> + <code style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:14.4px;min-width:0px;line-height:22px;padding:2px 5px;background-color:rgb(237,237,237);">X</code>, press <code style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:14.4px;min-width:0px;line-height:22px;padding:2px 5px;background-color:rgb(237,237,237);">Y</code> and then press <code style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:14.4px;min-width:0px;line-height:22px;padding:2px 5px;background-color:rgb(237,237,237);">ENTER</code>)</p><a class="anchor" style="background-color:transparent;min-width:0px;color:rgb(51,122,183);"></a><h2 style="clear:both;margin:1em 0px;padding:1em 0px 0px;min-width:0px;font-size:1.7em;border-top:1px solid rgba(0,0,0,0.1);line-height:1.4em;">Testing Crontab</h2><p style="margin-bottom:1em;min-width:0px;">To test if crontab is running the script once a minute, you will need to stop the MySQL service temporarily.</p><div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">sudo</span> <span class="token function" style="min-width:0px;color:rgb(221,74,104);">service</span> mysql stop</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"></div></div><p style="margin-bottom:1em;min-width:0px;">You can now test if MySQL is running with the following command.</p><div class="code-wrap" style="min-width:0px;"><pre class="code language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:0.9375rem;background:rgb(237,237,237);line-height:1.5;max-width:100%;min-width:0px;color:#000000;word-spacing:normal;margin-top:0px;margin-bottom:22px;padding:0.4em 0.8em;"><code class="language-bash" style="font-family:Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;font-size:13.5px;min-width:0px;background-image:none;background-size:initial;word-spacing:normal;line-height:22px;padding:0px 30px 0px 0px;"><span class="token function" style="min-width:0px;color:rgb(221,74,104);">sudo</span> <span class="token function" style="min-width:0px;color:rgb(221,74,104);">service</span> mysql status</code></pre><div class="btn-copy-wrapper" style="min-width:0px;background-color:rgb(237,237,237);padding:0px 10px 2px 6px;"><br /></div></div><p>If MySQL is down, wait for at least a minute until the crontab runs. If after two minutes the MySQL service is still down, something has gone wrong with your cron script. Start MySQL again with <code style="font-family:monaco, consolas, 'Andale Mono', 'DejaVu Sans Mono', monospace;font-size:14.4px;min-width:0px;line-height:22px;padding:2px 5px;background-color:rgb(237,237,237);">sudo service mysql start</code>.</p><p> </p></div>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2022-05-12T15:15:05+09:00</dc:date>
</item>


<item>
<title>아파치 .htaccess https rewrite mod_rewrite 리다이렉트 리디렉션</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1390</link>
<description><![CDATA[<p>[카페24에서 성공]</p><p>RewriteEngine On </p><p>RewriteCond %{SERVER_PORT} 80 </p><p>RewriteRule ^(.*)$ <a href="https://yourdomain.com/$1" rel="nofollow">https://yourdomain.com/$1</a> [R,L]</p><p><br /></p><p><br /></p><p>--------------------------------------------------------</p><p><br /></p><p>RewriteEngine On</p><p>RewriteCond %{HTTPS} !=on</p><p>RewriteRule ^(.*)$ <a>https://%{HTTP_HOST}/$1</a> [R,L]</p><p><br /></p><p>RewriteEngine On</p><p>RewriteBase /</p><p>RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]</p><p>RewriteRule ^(.*) <a>https://%1/$1</a> [R=301,NE,L]</p><p>RewriteCond %{HTTPS} off</p><p>RewriteRule (.*) <a>https://%{HTTP_HOST}%{REQUEST_URI}</a> [R=301,L]</p><div><br /></div><p><br /></p><p><br /></p><p><br /></p><p>RewriteEngine On</p><p>RewriteCond %{HTTPS} off</p><p>RewriteRule .* <a>https://%{SERVER_NAME}%{REQUEST_URI}</a> [R,L]</p><p><br /></p><p><br /></p><p>RewriteEngine On</p><p>RewriteCond %{HTTP:X-Forwarded-Proto} =http</p><p>RewriteRule .* <a>https://%{HTTP:Host}%{REQUEST_URI}</a> [R=permanent]</p>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2021-03-10T16:08:25+09:00</dc:date>
</item>


<item>
<title>[Ubuntu] 우분투 PPA APT repository 추가/제거하기</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1389</link>
<description><![CDATA[<p><b><span style="font-size:12pt;">apt list 에 repository 추가, 제거하기</span></b></p><p><br /></p><p><b>저장소 추가하기</b></p><p>sudo add-apt-repository 저장소이름</p><p><br /></p><p>PPA를 사용할 때 쓰는 add-apt-repository 명령어가 작동하지 않으면 python-software-properties를 설치하고, 그래도 문제가 생기는 경우에는 software-properties-common을 설치하면 된다.</p><p><br /></p><p><b>저장소 삭제</b></p><p>sudo add-apt-repository --remove 저장소이름</p><p><br /></p><p>예)</p><p>add-apt-repository ppa:ondrej/php</p><p>add-apt-repository --remove ppa:ondrej/php</p><p><br /></p><p>추가/제거 후 apt update</p><p><br /></p>]]></description>
<dc:creator>최고관리자</dc:creator>
<dc:date>2020-11-04T11:08:22+09:00</dc:date>
</item>


<item>
<title>apt update apt upgrade apt dist-upgrade</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1388</link>
<description><![CDATA[<p>sudo apt-get update</p><p><br /></p><p> 업데이트할 패키지들의 목록을 최신으로 갱신한다. 실제로 패키지를 업그레이드 하는게 아니다.</p><p><br /></p><p><br /></p><p>sudo apt-get upgrade</p><p><br /></p><p> update 로 갱신된 최신 패키지들을 실제로 업그레이드 한다.</p><p><br /></p><p><br /></p><p>sudo apt-get dist-upgrade</p><p><br /></p><p> upgrade 는 의존성 체크를 하지 않고 업그레이드하지만</p><p><br /></p><p> dist-upgrade는 의존성 체크를 하면서 위의 upgrade에서 수행되지 못한 dependency 까지 설치해준다. </p>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2020-10-22T13:28:32+09:00</dc:date>
</item>


<item>
<title>Linux CPU 정보 하이퍼쓰레드 HT 기능 확인</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1387</link>
<description><![CDATA[<h2 style="font-size:1.87em;font-family:'Ubuntu Condensed', 'Noto Sans Korean';background-color:rgb(241,241,241);"><span class="mw-headline">방법 1: cpuinfo</span></h2><div class="mw-highlight mw-highlight-console" dir="ltr" style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);"><pre style="padding:10px;margin-top:5px;margin-bottom:5px;max-width:100%;border:1px solid rgb(221,221,221);font-size:12px;line-height:21.6px;font-family:'Lucida Console';background-color:rgb(250,250,250);"><span class="gp">[root@zetawiki ~]#</span> cat /proc/cpuinfo <span class="p">|</span> egrep <span class="s1">'siblings|cpu cores'</span> <span class="p">|</span> head -2
<span class="go">siblings	: 8</span>
<span class="go">cpu cores	: 4</span>
</pre></div><dl style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);"><dd>→ siblings가 cpu cores의 2배이므로 하이퍼스레딩 활성된 것임</dd></dl><h2 style="font-size:1.87em;font-family:'Ubuntu Condensed', 'Noto Sans Korean';background-color:rgb(241,241,241);"><span class="mw-headline">방법 2: dmidecode #1</span></h2><div class="mw-highlight mw-highlight-console" dir="ltr" style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);"><pre style="padding:10px;margin-top:5px;margin-bottom:5px;max-width:100%;border:1px solid rgb(221,221,221);font-size:12px;line-height:21.6px;font-family:'Lucida Console';background-color:rgb(250,250,250);"><span class="gp">[root@zetawiki ~]#</span> dmidecode -t processor <span class="p">|</span> egrep <span class="s1">'Core Count|Thread Count'</span> <span class="p">|</span> head -2
<span class="go">	Core Count: 4</span>
<span class="go">	Thread Count: 8</span>
</pre></div><dl style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);"><dd>→ Thread Count가 Core Count의 2배이므로 하이퍼스레딩 활성된 것임</dd></dl><h2 style="font-size:1.87em;font-family:'Ubuntu Condensed', 'Noto Sans Korean';background-color:rgb(241,241,241);"><span class="mw-headline">방법 3: dmidecode #2</span></h2><div class="mw-highlight mw-highlight-bash" dir="ltr" style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);"><pre style="padding:10px;margin-top:5px;margin-bottom:5px;max-width:100%;border:1px solid rgb(221,221,221);font-size:12px;line-height:21.6px;font-family:'Lucida Console';background-color:rgb(250,250,250);">dmidecode -t processor <span class="p">|</span> grep HTT
</pre></div><dl style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);"><dt>실행예시 (활성화됨)</dt></dl><div class="mw-highlight mw-highlight-console" dir="ltr" style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);"><pre style="padding:10px;margin-top:5px;margin-bottom:5px;max-width:100%;border:1px solid rgb(221,221,221);font-size:12px;line-height:21.6px;font-family:'Lucida Console';background-color:rgb(250,250,250);"><span class="gp">[root@zetawiki ~]#</span> dmidecode -t processor <span class="p">|</span> grep HTT <span class="p">|</span> head -1
<span class="go">		HTT (Hyper-threading technology)</span>
</pre></div><dl style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);"><dt>실행예시 (비활성화됨)</dt></dl><div class="mw-highlight mw-highlight-console" dir="ltr" style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);"><pre style="padding:10px;margin-top:5px;margin-bottom:5px;max-width:100%;border:1px solid rgb(221,221,221);font-size:12px;line-height:21.6px;font-family:'Lucida Console';background-color:rgb(250,250,250);"><span class="gp">[root@zetawiki2 ~]#</span> dmidecode -t processor <span class="p">|</span> grep HTT <span class="p">|</span> head -1
<span class="go">                     HTT (Multi-threading)</span></pre></div><p><br style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);" /><br style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);" /><span style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);">출처: </span><a href="https://grooveyou.tistory.com/24" style="color:rgb(0,0,0);font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);" rel="nofollow">https://grooveyou.tistory.com/24</a><span style="font-family:'Ubuntu Condensed', 'Noto Sans Korean';font-size:14px;background-color:rgb(241,241,241);"> [GrooveYOU]</span> </p><p><br /></p><p><br /></p><p><br /></p><p>전체 CPU 정보 확인</p><p><br /></p><p>cat /proc/cpuinfo</p><p>​</p><p><br /></p><p>논리 코어 수 확인</p><p><br /></p><p>grep -c processor /proc/cpuinfo</p><p>​</p><p><br /></p><p>물리 CPU 개수 확인</p><p><br /></p><p>grep "physical id" /proc/cpuinfo | sort -u | wc -l</p><p>​</p><p><br /></p><p>CPU당 물리 코어 수 확인</p><p><br /></p><p>grep "cpu cores" /proc/cpuinfo | tail -1</p>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2020-03-04T14:16:01+09:00</dc:date>
</item>


<item>
<title>Ubuntu에서 패키지 관리 간단 정리</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1386</link>
<description><![CDATA[<p>설치</p><p>apt-get install &lt;패키지&gt;</p><p><br /></p><p>재설치</p><p>apt-get –reinstall install &lt;패키지&gt;</p><p><br /></p><p>제거</p><p>apt-get remove &lt;패키지&gt;</p><p><br /></p><p>설정 파일까지 모두 제거</p><p>apt-get –purge remove &lt;패키지&gt;</p><p><br /></p><p>패키지 DB 업데이트</p><p>apt-get update</p><p><br /></p><p>패키지 업데이트 (Windows Update 같은 거)</p><p>apt-get upgrade</p><p><br /></p><p>의존성 고려 업데이트</p><p>apt-get dist-upgrade</p><p><br /></p><p>패키지 검색</p><p>apt-cache search &lt;패키지 검색 정규식&gt;</p><p><br /></p><p>패키지 정보</p><p>apt-cache show &lt;패키지&gt;</p><p><br /></p><p>모든 패키지 리스트</p><p>apt-cache pkgnames</p><p><br /></p><p>설치된 패키지 리스트</p><p>apt-mark showmanual (설치를 지시한 것)</p><p>또는</p><p>apt-mark showauto (자동으로 설치된 것)</p><p>dpkg -l</p><p>또는</p><p>dpkg –get-selections | grep install | grep -v deinstall</p><p><br /></p><p>패키지 버전 홀드 (업데이트에서 제외시키기)</p><p>apt-mark hold &lt;패키지&gt; …</p><p><br /></p><p>패키지 버전 홀드 풀기 (업데이트에 다시 포함시키기)</p><p>apt-mark unhold &lt;패키지&gt; …</p><p><br /></p><p>홀드된 패키지 보기</p><p>apt-mark showhold</p>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2019-09-16T10:03:24+09:00</dc:date>
</item>


<item>
<title>Ubuntu 18.10, relocation error, error code (127) after last updates</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1385</link>
<description><![CDATA[<p><span style="color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;background-color:rgb(255,255,255);">After the last update this happened:</span></p><pre style="margin-top:0px;margin-bottom:1em;padding:12px 8px;border:0px;line-height:inherit;font-family:Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;font-size:13px;vertical-align:baseline;width:auto;max-height:600px;background-color:rgb(239,240,241);color:rgb(36,39,41);"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;font-family:Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;vertical-align:baseline;white-space:inherit;">/usr/lib/apt/methods/http: relocation error: /usr/lib/x86_64-linux-gnu/libgnutls.so.30: symbol _idn2_punycode_decode version IDN2_0.0.0 not defined in file libidn2.so.0 with link time reference    
Reading package lists... Done    
E: Method http has died unexpectedly!
E: Sub-process http returned an error code (127)
E: Method /usr/lib/apt/methods/http did not start correctly</code></pre><p><span style="color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;background-color:rgb(255,255,255);"><br /></span></p><p><span style="color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;background-color:rgb(255,255,255);"><br /></span></p><p><span style="color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;background-color:rgb(255,255,255);">As per Launchpad bug </span><a href="https://bugs.launchpad.net/ubuntu/+source/libidn2/+bug/1843507?comments=all" style="margin:0px;padding:0px;border:0px;line-height:inherit;font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;vertical-align:baseline;color:rgba(220,70,29,0.7);background-color:rgb(255,255,255);" rel="nofollow">1843507</a><span style="color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;background-color:rgb(255,255,255);">, comment </span><a href="https://bugs.launchpad.net/ubuntu/+source/libidn2/+bug/1843507/comments/4" style="margin:0px;padding:0px;border:0px;line-height:inherit;font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;vertical-align:baseline;color:rgba(220,70,29,0.7);background-color:rgb(255,255,255);" rel="nofollow">#4</a><span style="color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;background-color:rgb(255,255,255);"> worked for me, at least temporarily.</span><span style="color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;background-color:rgb(255,255,255);"> </span></p><pre style="margin-top:0px;margin-bottom:1em;padding:12px 8px;border:0px;line-height:inherit;font-family:Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;font-size:13px;vertical-align:baseline;width:auto;max-height:600px;background-color:rgb(239,240,241);color:rgb(36,39,41);"><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;font-family:Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif;vertical-align:baseline;white-space:inherit;">$ wget http://mirrors.kernel.org/ubuntu/pool/main/libi/libidn2/libidn2-0_2.0.4-1.1build2_amd64.deb
$ sudo dpkg -i libidn2-0_2.0.4-1.1build2_amd64.deb
$ sudo apt-mark hold libidn2-0</code></pre><p><span style="color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;background-color:rgb(255,255,255);"><br /></span></p><p><span style="color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;background-color:rgb(255,255,255);"><br /></span></p><p><span style="color:rgb(36,39,41);font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:15px;background-color:rgb(255,255,255);"><br /></span></p>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2019-09-11T15:50:06+09:00</dc:date>
</item>


<item>
<title>www 없이 접속했을 때 www 붙은 주소로 바꿔주기 (.htaccess 파일 설정) [출처] www 없이 접속했을 때 www 붙은 주소로 바꿔주기 (.htaccess 파일 설정)</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1384</link>
<description><![CDATA[<p>출처 : <a href="https://carrotcarrot.blog.me/40200814640" rel="nofollow">https://carrotcarrot.blog.me/40200814640</a></p><p><br /></p><p>&lt;IfModule mod_rewrite.c&gt;</p><p>RewriteEngine on<br /></p><p>RewriteCond %{HTTP_HOST} ^wishtrend.com<br /></p><p>RewriteRule (.*) <a href="http://www.wishtrend.com/$1" rel="nofollow">http://www.wishtrend.com/$1</a> [R=301,L]<br /></p><p>&lt;/IfModule&gt;<br /></p><p><br /></p><p> </p><p><br /></p><p>이런식으로 rewrite 모듈이 있다면 htaccess 파일에 위와 같이 입력해주면</p><p>www가 없는 주소로 접속했을 경우 www가 붙은 주소로 변경해준답니다.<br /></p><p><br /></p><p> </p><p>자자, 그런데!! 여기서 끝이 아닙니다.<br /></p><p>https 와 http 두가지 모두를 쓰는 사이트를 운영하고 계신다면<br /></p><p>이제 문제가 생기죠.<br /></p><p><br /></p><p>https 로 접속했을 때도 http 도메인으로 쏴주면?</p><p>(솔루션 자체에서 http로 접속 했을 때 https로 자동 리다이렉팅을 해준다면 별로 상관이 없어요..)<br /></p><p><br /></p><p>만약 이런 기능에 의해서 문제가 발생할 수 있다면<br /></p><p>이 부분도 처리를 해줘야겠지요?<br /></p><p><br /></p><p>http는 http로 https는 https로 말이죠.<br /></p><p><br /></p><p>&lt;IfModule mod_rewrite.c&gt;<br /></p><p>RewriteEngine on<br /></p><p>RewriteCond %{HTTPS} off<br /></p><p>RewriteCond %{HTTP_HOST} ^wishtrend.com<br /></p><p>RewriteRule ^(.*)$ <a href="http://www.wishtrend.com/$1" rel="nofollow">http://www.wishtrend.com/$1</a> [R=301,L]<br /></p><p>RewriteCond %{HTTPS} on<br /></p><p>RewriteCond %{HTTP_HOST} ^wishtrend.com<br /></p><p>RewriteRule ^(.*)$ <a href="https://www.wishtrend.com/$1" rel="nofollow">https://www.wishtrend.com/$1</a> [R=301,L]<br /></p><p>&lt;/IfModule&gt;<br /></p><p><br /></p><p>이런식으로 해주면 https와 http를 구분해서 접속하게 해줄 수 있답니다.<br /></p><p><br /></p><p>* RewirteCond 문장은 모두 and 형태로 연결이 됩니다.</p><p>or로 구성하고 싶으시다면 문장 끝에 [or] 를 입력해주시면 됩니다.<br /></p><p><br /></p><p>RewriteCond %{HTTPS} off [OR]</p><p>RewriteCond %{HTTP_HOST} ^wishtrend.com<br /></p><p><br /></p><p>이렇게요.</p><p><br /></p><p><br /></p><p>자자, 그럼 여기서 팁 하나더<br /></p><p>http로 접속했을 때 무조건 https 접속하게 하거나<br /></p><p>https로 접속했을 때 http로 접속하게 하고 싶다면?<br /></p><p><br /></p><p>&lt;IfModule mod_rewrite.c&gt;<br /></p><p>RewriteEngine on<br /></p><p>RewriteCond %{HTTPS} off<br /></p><p>RewriteRule ^(.*)$ <a>https://%{SERVER_NAME}%{REQUEST_URI}</a> [R,L]<br /></p><p>&lt;/IfModule&gt;<br /></p><p><br /></p><p>이런식으로도 가능 합니다. 이러면 http로 접속 했을 때 https로 접속되겠죠?</p><p>반대로<br /></p><p><br /></p><p>&lt;IfModule mod_rewrite.c&gt;</p><p>RewriteEngine on<br /></p><p>RewriteCond %{HTTPS} on<br /></p><p>RewriteRule ^(.*)$ <a href="">http://%{SERVER_NAME}%{REQUEST_URI}</a> [R,L]<br /></p><p>&lt;/IfModule&gt;<br /></p><p><br /></p><p>이렇게 https 를 http로 접속하게 할 수도 있답니다.</p><p><br /></p><p>이건 포트 번호로 구별하는 추가 팁 입니다.<br /></p><p>80 포트(기본 포트)로 접속 했을 때 무조건 https로 변경<br /></p><p><br /></p><p>RewriteCond %{SERVER_PORT} ^80$</p><p>RewriteRule ^(.*)$ <a>https://%{SERVER_NAME}%{REQUEST_URI}</a> [R=301,L]<br /></p><p><br /></p><p><br /></p><p>-------------------------------------------------------------------------------</p><p><br /></p><p>http -&gt; http 로</p><p><br /></p><p>&lt;ifmodule mod_rewrite.c&gt;</p><p>    RewriteEngine On</p><p>    RewriteBase /</p><p>    RewriteCond %{HTTPS} off</p><p>    RewriteRule (.*) <a>https://%{HTTP_HOST}%{REQUEST_URI}</a> [R=301,L]</p><p>&lt;/ifmodule&gt;</p><p><br /></p><p>www 없애기</p><p><br /></p><p>&lt;IfModule mod_rewrite.c&gt;</p><p>    RewriteEngine On</p><p>    RewriteCond %{HTTPS} off</p><p>    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]</p><p>    RewriteRule ^(.*)$ <a href="/$1">http://%1/$1</a> [R=301,L]</p><p><br /></p><p>    RewriteCond %{HTTPS} on</p><p>    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]</p><p>    RewriteRule ^(.*)$ <a>https://%1/$1</a> [R=301,L]</p><p>&lt;/IfModule&gt;</p><p><br /></p><p><br /></p><p><br /></p><p><br /></p>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2019-05-02T15:50:31+09:00</dc:date>
</item>


<item>
<title>리눅스 apache2 자동시작 설정</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1383</link>
<description><![CDATA[<p>간단하게 아래와 같은 방법으로 설정 할 수 있습니다.</p><p><br /></p><p>Debian (Ubuntu/Linux Mint)</p><p>#apt-get install rcconf</p><p>#rcconf</p><p><br /></p><p><br /></p><p>아파치를 부팅시 시작하게 하고 싶지 않다면</p><p>#update-rc.d -f apache2 remove</p><p><br /></p><p><br /></p><p>다시 부팅시 시작하게 하고 싶다면</p><p>#update-rc.d apache2 defaults</p><p><br /></p><p><br /></p><p><br /></p><p>RedHat/Fedora/CentOS</p><p><br /></p><p>#chkconfig --add apache2</p><p>#chkconfig -- level 35 apache2 on</p><p><br /></p><p>출처: <a href="https://tkdev.tistory.com/45" rel="nofollow">https://tkdev.tistory.com/45</a> [Thinking.Dev]</p>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2019-05-02T11:58:49+09:00</dc:date>
</item>


<item>
<title>리눅스 서버의 메모리 간단 관리 방법(사용량 확인/캐시삭제/정기관리)</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1382</link>
<description><![CDATA[<p><span style="font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;color:rgb(85,90,98);"><span style="font-size:15.4px;background-color:rgb(255,255,255);">출처 : </span></span><a href="https://osasf.net/discussion/587/%EB%A6%AC%EB%88%85%EC%8A%A4-%EC%84%9C%EB%B2%84%EC%9D%98-%EB%A9%94%EB%AA%A8%EB%A6%AC-%EA%B0%84%EB%8B%A8-%EA%B4%80%EB%A6%AC-%EB%B0%A9%EB%B2%95-%EC%82%AC%EC%9A%A9%EB%9F%89-%ED%99%95%EC%9D%B8-%EC%BA%90%EC%8B%9C%EC%82%AD%EC%A0%9C-%EC%A0%95%EA%B8%B0%EA%B4%80%EB%A6%AC" rel="nofollow">https://osasf.net/discussion/587/%EB%A6%AC%EB%88%85%EC%8A%A4-%EC%84%9C%EB%B2%84%EC%9D%98-%EB%A9%94%EB%AA%A8%EB%A6%AC-%EA%B0%84%EB%8B%A8-%EA%B4%80%EB%A6%AC-%EB%B0%A9%EB%B2%95-%EC%82%AC%EC%9A%A9%EB%9F%89-%ED%99%95%EC%9D%B8-%EC%BA%90%EC%8B%9C%EC%82%AD%EC%A0%9C-%EC%A0%95%EA%B8%B0%EA%B4%80%EB%A6%AC</a></p><p><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);"><br /></span></p><p><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);">리눅스 OS(Redhat, Debian, Ubuntu 등 리눅스 기반 운영체제)가 설치된 서버에서 현재 사용 중인 메모리 사용량을 확인하고 캐시 메모리 사용량이 많은 경우 이를 비워서 시스템 효율을 높이는 방법입니다.</span><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);">명령어 기반으로 터미널에서 간단히 사용할 수 있습니다.</span><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><strong style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);">메모리 사용량 확인 명령어</strong><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);">$  free -m</span><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><strong style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);">pagecache 해제 명령어</strong><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);">$  echo 1 &gt; /proc/sys/vm/drop_caches</span><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><strong style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);">dentry 및 inode 캐시메모리 해제 명령어</strong><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);">$ echo 2 &gt; /proc/sys/vm/drop_caches</span><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><strong style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);">pagecache, dentry, inode 캐시메모리 모두 해제 시</strong><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);">$ echo 3 &gt; /proc/sys/vm/drop_caches</span><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><strong style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);">크론탭(crontab)을 사용하여 시스템이 주기적으로 메모리 관리</strong><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);">$ crontab -e</span><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><strong style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);">크론탭 편집 모드에서 아래와 같이 입력</strong><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);">0 3 * * * sync &amp;&amp; echo 3 &gt; /proc/sys/vm/drop_caches</span><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);">위의 명령어는 매일 새벽 3시에 시스템이 자동으로 전체 캐시 메모리를 비우는 명령어로 시간대는 원하는 때로 변경 가능</span><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><strong style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);">용어 참고</strong><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);">- pagecache : 파일의 입출력(I/O)의 속도와 퍼포먼스를 높이기 위해 시스템이 할당한 메모리 영역(임시 메모리 저장소). 예를 들어 어떤 경로의 파일을 한 번 읽어들이면 시스템이 해당 파일 내용을 임시메모리에 저장시키는데 이후에 해당 파일을 다시 읽을 때 이를 새로 읽어들이지 않고 이 메모리에서 바로 불러오면 디스크의 읽기/쓰기 속도가 빨라지므로 효율이 높아짐. 윈도우 OS의 페이지 파일 같은 역할.</span><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);">- dentry : directory entry의 줄임말로 예를 들어 /usr/share 같은 경로에서 usr과 share를 지칭.</span><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><br style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;line-height:inherit;background-color:rgb(255,255,255);" /><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);">- inode : 파일과 디렉토리에 관한 정보를 담고 있는 자료구조. 예를 들어 파일의 퍼미션 정보, 디스크 상의 파일의 물리적 위치, 크기, 생성된 일시 정보 등을 저장.</span> </p><p><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);"><br /></span></p><p><span style="color:rgb(85,90,98);font-family:'Open Sans', 'Segoe UI', 'Helvetica Neue', Helvetica, Raleway, Arial, sans-serif;font-size:15.4px;background-color:rgb(255,255,255);"><br /></span></p>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2019-04-26T11:32:52+09:00</dc:date>
</item>


<item>
<title>SSH 접속 세션 시간 조정</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1381</link>
<description><![CDATA[<p><br /></p><p>SSH 접속이 자주 끊겨서 고생하는 경우들이 있는데... 그에 대한 해결책을 간단히 노트해둔다.</p><p><br /></p><p>SSH 클라이언트 접속 시간 조정</p><p>sudo vi /etc/ssh/ssh_config</p><p># otehr configs 부분에 아래 내용을 주석 해제하고 숫자값을 정해준다.</p><p>ServerAliveInterval 100</p><p><br /></p><p>없으면 아래 내용 추가</p><p>Host *</p><p>ServerAliveInterval 100</p><div><br /></div><p><br /></p><p> SSHD 서버에서의 접속 시간 조정</p><p>sudo vi /etc/ssh/sshd_config</p><p>아래와 같이 주석 해제하고 값을 지정해주시면 됩니다.</p><p>ClientAliveInterval 600</p><p>TCPKeepAlive yes</p><p>ClientAliveCountMax 10</p><p>SSHD 서버 재기동이 필요합니다.</p><p>$ sudo service ssh restart</p><div><br /></div><div><br /></div><div>출처 : <a href="https://blog.hometown.co.kr/590" rel="nofollow">https://blog.hometown.co.kr/590</a></div>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2019-04-24T15:39:10+09:00</dc:date>
</item>


<item>
<title>vi, vim 환경설정 (vimrc)</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1380</link>
<description><![CDATA[<p>공통파일에 설정 (root 권한)</p><p><br /></p><p># vi /etc/vim/vimrc</p><p><br /></p><p>syntax on</p><p><br /></p><p>set nu</p><p>set tabstop=4</p><p>set autoindent</p><p>set ruler</p><p>set showcmd</p><p>set title</p><p>set wmnu</p><p>set showmatch</p><p>set nocompatible</p><p><br /></p><p><br /></p><p><br /></p><p>사용자 설정</p><p>$ vi ~/.vimrc</p><p><br /></p><p><br /></p><p>새로운 사용자에게 자동 설정</p><p><br /></p><p>새로운 유저가 생성되면 자동으로 /etc/skel 디렉토리내에 있는 파일들을 </p><p>새로운 사용자의 홈디렉토리로 복사하는 과정을 거치게 되므로, </p><p>/etc/skel에 생성된 설정파일을 넣어주면 됩니다.</p><p><br /></p><p>$ sudo cp ~/.vimrc /etc/skel/.</p><p><br /></p><p><br /></p><p>[출처] <a href="https://akal.co.kr/?p=934" rel="nofollow">https://akal.co.kr/?p=934</a></p><p><br /></p><p><br /></p><p><br /></p>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2019-01-07T15:55:56+09:00</dc:date>
</item>


<item>
<title>라즈비안 업그레이드 jessie -&gt; stretch</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1379</link>
<description><![CDATA[<p>링크</p><p><br /></p><p><a href="https://linuxconfig.org/raspbian-gnu-linux-upgrade-from-jessie-to-raspbian-stretch-9" rel="nofollow">https://linuxconfig.org/raspbian-gnu-linux-upgrade-from-jessie-to-raspbian-stretch-9</a><br /></p><p><br /></p><p><br /></p><h2 style="margin:1.5rem 0px;font-size:1.6rem;color:rgb(227,136,0);font-family:'open sans';background-color:rgb(255,255,255);">Introduction</h2><p><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">The upgrade from Raspbian Jessie to Raspbian 9 Stretch is a relatively simple procedure. However, exercise caution, as there is always a chance to break the entire system. The fewer installed 3rd-party packages and services, the more likely you are able successfully to upgrade your Raspbian Linux system. apt-get update</span></p><h2 style="margin:1.5rem 0px;font-size:1.6rem;color:rgb(227,136,0);font-family:'open sans';background-color:rgb(255,255,255);">Recommendations</h2><ul style="margin-top:1.5rem;margin-bottom:1.5rem;margin-left:1.5rem;padding:0px;font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);"><li>Remove unnecessary or obsolete packages</li><li>Make a data and configuration backup</li><li>Perform an upgrade directly using console</li><li>Installed 3rd-party software on Raspbian Stretch 9</li></ul><div class="uk-alert uk-alert-danger" style="margin-bottom:15px;padding:10px;background:rgb(255,241,240);color:rgb(216,80,48);border:1px solid rgba(216,80,48,0.3);margin-top:15px;font-family:'open sans';font-size:16px;"><span style="font-weight:700;">Warning:</span> MariaDB is now the default SQL database in Debian 9 Stretch. This introduces a new database binary data file format which is not backwards compatible with your current ( Debian 8 Jessie ) database format. During the upgrade your databases will be upgraded automatically. However, when you run into some issues during or after the upgrade, you will not be able revert back! From this reason it is important to backup all your current databases before you proceed with a Debian 9 Stretch upgrade!<br /><span style="font-weight:700;">REFERENCE</span>: <a href="https://www.debian.org/releases/stretch/i386/release-notes/ch-whats-new.en.html#mariadb-replaces-mysql" target="_blank" style="background:0px 0px;color:rgb(33,194,248);margin-bottom:0px;" rel="nofollow noreferrer noopener">debian.org</a></div><h2 style="margin:1.5rem 0px;font-size:1.6rem;color:rgb(227,136,0);font-family:'open sans';background-color:rgb(255,255,255);">Fully Upgrade Current System</h2><p><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">Start by fully upgrade your current Raspbian system before you proceed with a Stretch upgrade.</span></p><pre style="margin-top:1.7em;margin-bottom:1.7em;margin-left:0.3em;padding:0.938rem;font-size:0.9rem;font-family:menlo, monaco, monospace;background:rgb(252,252,252);line-height:1.15;border-width:1px 1px 1px 5px;border-style:solid;border-color:rgb(239,239,239) rgb(239,239,239) rgb(239,239,239) rgb(2,176,239);height:auto;"># apt-get update
# apt-get upgrade
</pre><p><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">Upgrade any held back packages:</span></p><pre style="margin-top:1.7em;margin-bottom:1.7em;margin-left:0.3em;padding:0.938rem;font-size:0.9rem;font-family:menlo, monaco, monospace;background:rgb(252,252,252);line-height:1.15;border-width:1px 1px 1px 5px;border-style:solid;border-color:rgb(239,239,239) rgb(239,239,239) rgb(239,239,239) rgb(2,176,239);height:auto;"># apt-get dist-upgrade
</pre><h2 style="margin:1.5rem 0px;font-size:1.6rem;color:rgb(227,136,0);font-family:'open sans';background-color:rgb(255,255,255);">System Check</h2><p><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">Last, chance to check for any system inconsistencies. Perform database sanity and consistency checks for partially installed, missing and obsolete packages:</span></p><pre style="margin-top:1.7em;margin-bottom:1.7em;margin-left:0.3em;padding:0.938rem;font-size:0.9rem;font-family:menlo, monaco, monospace;background:rgb(252,252,252);line-height:1.15;border-width:1px 1px 1px 5px;border-style:solid;border-color:rgb(239,239,239) rgb(239,239,239) rgb(239,239,239) rgb(2,176,239);height:auto;"># dpkg -C
</pre><p><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">If no issues are reported, check what packages are held back:</span></p><pre style="margin-top:1.7em;margin-bottom:1.7em;margin-left:0.3em;padding:0.938rem;font-size:0.9rem;font-family:menlo, monaco, monospace;background:rgb(252,252,252);line-height:1.15;border-width:1px 1px 1px 5px;border-style:solid;border-color:rgb(239,239,239) rgb(239,239,239) rgb(239,239,239) rgb(2,176,239);height:auto;"># apt-mark showhold
</pre><p><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">Packages </span><code style="font-size:0.95rem;font-family:'courier new', Courier, monospace, sans-serif;background:rgb(250,250,250);color:rgb(221,0,85);border:1px solid rgb(239,239,239);padding:2px 4px;white-space:nowrap;vertical-align:bottom;">On Hold</code><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);"> will not upgrade. </span><code style="font-size:0.95rem;font-family:'courier new', Courier, monospace, sans-serif;background:rgb(250,250,250);color:rgb(221,0,85);border:1px solid rgb(239,239,239);padding:2px 4px;white-space:nowrap;vertical-align:bottom;">On Hold</code><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);"> packages may cause inconsistencies after Stretch upgrade. Before you move to the following part, it is suggested to fix all issues provided by both above commands.</span></p><div class="moduletable" style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);"><div class="custom"><hr style="border-style:none none solid;border-bottom-color:rgb(239,239,239);height:0px;margin:1.5rem 0px;" /><ins class="adsbygoogle" style="text-align:center;height:189px;"><ins style="border:none;height:189px;margin:0px;padding:0px;width:754px;background-color:transparent;"><ins style="border:none;height:189px;margin:0px;padding:0px;width:754px;background-color:transparent;"><iframe width="754" height="189" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="max-width:100%;border-style:none;width:754px;height:189px;"></iframe></ins></ins></ins><hr style="border-style:none none solid;border-bottom-color:rgb(239,239,239);height:0px;margin:1.5rem 0px;" /></div></div><h2 style="margin:1.5rem 0px;font-size:1.6rem;color:rgb(227,136,0);font-family:'open sans';background-color:rgb(255,255,255);">Update Package Repository to Debian Stretch</h2><p><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">Next, update your </span><code style="font-size:0.95rem;font-family:'courier new', Courier, monospace, sans-serif;background:rgb(250,250,250);color:rgb(221,0,85);border:1px solid rgb(239,239,239);padding:2px 4px;white-space:nowrap;vertical-align:bottom;">/etc/apt/sources.list</code><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);"> to include new Stretch repositories.</span></p><pre style="margin-top:1.7em;margin-bottom:1.7em;margin-left:0.3em;padding:0.938rem;font-size:0.9rem;font-family:menlo, monaco, monospace;background:rgb(252,252,252);line-height:1.15;border-width:1px 1px 1px 5px;border-style:solid;border-color:rgb(239,239,239) rgb(239,239,239) rgb(239,239,239) rgb(2,176,239);height:auto;"># sed -i 's/jessie/stretch/g' /etc/apt/sources.list
</pre><p><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">The above command will replace any </span><code style="font-size:0.95rem;font-family:'courier new', Courier, monospace, sans-serif;background:rgb(250,250,250);color:rgb(221,0,85);border:1px solid rgb(239,239,239);padding:2px 4px;white-space:nowrap;vertical-align:bottom;">Jessie</code><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);"> keyword occurrence to </span><code style="font-size:0.95rem;font-family:'courier new', Courier, monospace, sans-serif;background:rgb(250,250,250);color:rgb(221,0,85);border:1px solid rgb(239,239,239);padding:2px 4px;white-space:nowrap;vertical-align:bottom;">Stretch</code><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);"> thus effectively enabling new Stretch repositories. Once your </span><code style="font-size:0.95rem;font-family:'courier new', Courier, monospace, sans-serif;background:rgb(250,250,250);color:rgb(221,0,85);border:1px solid rgb(239,239,239);padding:2px 4px;white-space:nowrap;vertical-align:bottom;">/etc/apt/sources.list</code><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);"> is updated to included </span><code style="font-size:0.95rem;font-family:'courier new', Courier, monospace, sans-serif;background:rgb(250,250,250);color:rgb(221,0,85);border:1px solid rgb(239,239,239);padding:2px 4px;white-space:nowrap;vertical-align:bottom;">Stretch</code><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);"> repositories, update your local package index with:</span></p><pre style="margin-top:1.7em;margin-bottom:1.7em;margin-left:0.3em;padding:0.938rem;font-size:0.9rem;font-family:menlo, monaco, monospace;background:rgb(252,252,252);line-height:1.15;border-width:1px 1px 1px 5px;border-style:solid;border-color:rgb(239,239,239) rgb(239,239,239) rgb(239,239,239) rgb(2,176,239);height:auto;"># apt-get update
</pre><h2 style="margin:1.5rem 0px;font-size:1.6rem;color:rgb(227,136,0);font-family:'open sans';background-color:rgb(255,255,255);">Raspbian Stretch Upgrade Simulation</h2><p><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">Used the bellow command to see what we are facing. It is a simulated dry-run thus not system changes will be implemented.</span></p><pre style="margin-top:1.7em;margin-bottom:1.7em;margin-left:0.3em;padding:0.938rem;font-size:0.9rem;font-family:menlo, monaco, monospace;background:rgb(252,252,252);line-height:1.15;border-width:1px 1px 1px 5px;border-style:solid;border-color:rgb(239,239,239) rgb(239,239,239) rgb(239,239,239) rgb(2,176,239);height:auto;"># apt-get --simulate upgrade
</pre><h2 style="margin:1.5rem 0px;font-size:1.6rem;color:rgb(227,136,0);font-family:'open sans';background-color:rgb(255,255,255);">Rasbian Stretch Upgrade</h2><p><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">We have come to the most exciting part, which is the actual Jessie upgrade to Raspbian Stretch system. During the upgrade you may be asked:</span><br style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);" /> </p><blockquote style="padding:0px 0px 0px 0.938rem;margin:0px 0px 1.5rem;border-left:5px solid rgb(239,239,239);font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);"><em>There are services installed on your system which need to be restarted when certain libraries, such as libpam, libc, and libssl, are upgraded. Since these restarts may cause interruptions of service for the system, you will normally be prompted on each upgrade for the list of services you wish to restart. You can choose this option to avoid being prompted; instead, all necessary restarts will be done for you automatically so you can avoid being asked questions on each library upgrade.</em></blockquote><p><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">Restart services during package upgrades without asking? The choice is about whether you wish the system to restart your services automatically during the system upgrade or you wish to do it manually or after the system is fully upgrade to Stretch. </span><br style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);" /><br style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);" /><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">When ready, execute the bellow commands to commence the Debian Stretch upgrade process:</span></p><pre style="margin-top:1.7em;margin-bottom:1.7em;margin-left:0.3em;padding:0.938rem;font-size:0.9rem;font-family:menlo, monaco, monospace;background:rgb(252,252,252);line-height:1.15;border-width:1px 1px 1px 5px;border-style:solid;border-color:rgb(239,239,239) rgb(239,239,239) rgb(239,239,239) rgb(2,176,239);height:auto;"># apt-get upgrade
# apt-get dist-upgrade
</pre><p><span style="font-family:'open sans';font-size:16px;background-color:rgb(255,255,255);">All done. Reboot your system.</span> </p>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2018-11-26T15:09:47+09:00</dc:date>
</item>


<item>
<title>apt-get, pip, git, pyenv proxy 설정</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1374</link>
<description><![CDATA[<p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-family:Gulim, '굴림';font-size:11pt;">사내에서 apt-get을 하려면 proxy 설정이 되어 있기 때문에 package를 받지 못하는 경우가 발생한다. 이런 경우 proxy 서버를 설정해 주어야 하는데 위치는 아래와 같다.</span> </p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-family:Gulim, '굴림';font-size:11pt;"><br /></span></p><div class="txc-textbox" style="margin:0px;padding:10px;color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);"><p><span style="font-family:Gulim, '굴림';font-size:11pt;">$&gt; vi /etc/apt/apt.conf<br /></span></p></div><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><br /></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';">만약에 해당 위치에 apt.conf가 존재하지 않는다면 그냥 새롭게 파일을 만들면 된다.</span></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';"><br /></span></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';">해당 파일을 열고 아래와 같이 입력해 주면 끝~</span></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';"><br /></span></p><div class="txc-textbox" style="margin:0px;padding:10px;color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);"><p><span style="font-size:11pt;font-family:Gulim, '굴림';">Acquire::http::proxy "proxy 서버 주소";<br /></span></p></div><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><br /></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';">추가로 git도 마찬가지로 proxy 설정을 해줘야 하는데 위치는 홈디렉토리 위치에 .gitconfig 파일을 만들고 아래와 같이 입력해 주자.</span></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';"><br /></span></p><div class="txc-textbox" style="margin:0px;padding:10px;color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);"><p><span style="font-size:11pt;font-family:Gulim, '굴림';">[http]</span></p><p style="margin-left:4em;"><span style="font-size:11pt;font-family:Gulim, '굴림';">proxy = 프록시 서버 주소</span></p><p><span style="font-size:11pt;font-family:Gulim, '굴림';">[https]    </span></p><p style="margin-left:4em;"><span style="font-size:11pt;font-family:Gulim, '굴림';">proxy = 프록시 서버 주소<br /></span></p></div><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><br /></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';">python의 pip의 경우도 proxy 설정을 해주어야 한다. 물론 pip install --proxy 프록시 서버 주소 이런식으로 매번 pip 때마다 입력해 주어도 되지만 넘나 귀찮기 때문에 ~/.bashrc에 아래와 같이 추가해 주자.</span></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';"><br /></span></p><div class="txc-textbox" style="margin:0px;padding:10px;color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);"><p><span style="font-size:11pt;font-family:Gulim, '굴림';">HTTP_PROXY=프록시 서버 주소</span></p><p><span style="font-size:11pt;font-family:Gulim, '굴림';">export HTTP_PROXY</span></p><p><span style="font-size:11pt;font-family:Gulim, '굴림';">HTTPS_PROXY=프록시 서버 주소</span></p><p><span style="font-size:11pt;font-family:Gulim, '굴림';">export HTTPS_PROXY<br /></span></p></div><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><br /></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';">해당 파일을 수정한 다음에는 source ~/.bash 명령어를 수행해야 적용이 된다.</span></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';"><br /></span></p><div class="txc-textbox" style="margin:0px;padding:10px;color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);"><p><span style="font-size:11pt;font-family:Gulim, '굴림';">$&gt; source ~/.bashrc<br /></span></p></div><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><br /></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';">물론 위와 같이 안하고 아래의 방법처럼 명령어에 proxy 옵션을 넣어줘도 된다.</span> </p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';"><br /></span></p><div class="txc-textbox" style="margin:0px;padding:10px;color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);"><p><span style="font-size:11pt;font-family:Gulim, '굴림';">$&gt; pip3 install --proxy=[프록시 서버] [패키지명]<br /></span></p></div><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><br /></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';">pyenv도 proxy 설정을 해주지 않으면 version install을 하지 못하는데 아래와 같이 실행해 주자.</span></p><p style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"><span style="font-size:11pt;font-family:Gulim, '굴림';"><br /></span></p><div class="txc-textbox" style="margin:0px;padding:10px;color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;border-style:dashed;border-width:1px;border-color:rgb(193,193,193);background-color:rgb(238,238,238);"><p><span style="font-size:11pt;font-family:Gulim, '굴림';">$&gt; https_proxy=[프록시 서버 주소] pyenv install -v [파이썬 버전]</span></p></div><p><br style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);" /><br style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);" /><span style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);">출처: </span><a href="http://yujuwon.tistory.com/entry/UBUNTU-aptget-pip-git-proxy-%EC%84%A4%EC%A0%95" style="color:rgb(51,51,51);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);" rel="nofollow">http://yujuwon.tistory.com/entry/UBUNTU-aptget-pip-git-proxy-설정</a><span style="color:rgb(102,102,102);font-family:'Noto Sans', sans-serif;font-size:14px;background-color:rgb(255,255,255);"> [Ju Factory]</span> </p>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2018-06-08T14:45:01+09:00</dc:date>
</item>


<item>
<title>라즈비안 설치시 와이파이 세팅</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1372</link>
<description><![CDATA[<h3 style="background:rgb(255,255,255);border:0px;margin:0px 0px 20px;padding:0px;vertical-align:baseline;font-weight:normal;color:rgb(85,102,119);line-height:1.2;font-size:1.5em;font-family:'Source Sans Pro', Arial, Helvetica, sans-serif;">WiFi Connection Settings</h3><p style="background:rgb(255,255,255);border:0px;margin-bottom:1.6em;vertical-align:baseline;color:rgb(153,153,170);font-family:'Source Sans Pro', Arial, Helvetica, sans-serif;font-size:16px;">Setup Wi-Fi connection without connecting any display to raspberry pi, just simply create a text file and call it wpa_supplicant.conf and place into the /boot/ folder and add following contents to this file.</p><h3 style="background:rgb(255,255,255);border:0px;margin:0px 0px 20px;padding:0px;vertical-align:baseline;font-weight:normal;color:rgb(85,102,119);line-height:1.2;font-size:1.5em;font-family:'Source Sans Pro', Arial, Helvetica, sans-serif;">Wifi Settings for Raspbian Jessie</h3><div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" style="margin:12px 0px;padding:0px;vertical-align:baseline;width:736.797px;font-family:Monaco, MonacoRegular, 'Courier New', monospace;color:rgb(153,153,170);height:auto;background:rgb(253,253,253);border-width:1px;border-style:solid;border-color:rgb(153,153,153);line-height:15px;"><div class="crayon-plain-wrap" style="background:0px center;border:0px;vertical-align:baseline;margin:0px;padding:0px;height:auto;"></div><div class="crayon-main" style="background:0px center;border:0px;margin:0px;padding:0px;vertical-align:baseline;width:734.797px;"><table class="crayon-table" style="margin-left:0px;vertical-align:baseline;background:none;border:none;margin-top:0px;margin-right:0px;margin-bottom:0px;padding:0px;border-collapse:collapse;border-spacing:0px;width:auto;table-layout:auto;"><tbody style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;"><tr class="crayon-row" style="background:0px center;border:none;margin:0px;padding:0px;vertical-align:top;"><td class="crayon-nums" style="border:0px;background:rgb(223,239,255);margin:0px;padding:0px;vertical-align:top;color:rgb(84,153,222);"><div class="crayon-nums-content" style="background:0px center;border:0px;margin:0px;padding:0px;vertical-align:baseline;white-space:nowrap;line-height:15px;"><div class="crayon-num" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;">1</div><div class="crayon-num crayon-striped-num" style="background:rgb(200,225,250);border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;color:rgb(49,124,197);">2</div><div class="crayon-num" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;">3</div><div class="crayon-num crayon-striped-num" style="background:rgb(200,225,250);border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;color:rgb(49,124,197);">4</div><div class="crayon-num" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;">5</div></div></td><td class="crayon-code" style="background:0px center;border:0px;width:716px;margin:0px;padding:0px;vertical-align:top;"><div class="crayon-pre" style="margin:0px;padding:0px;vertical-align:baseline;color:rgb(0,0,0);white-space:pre;background:none;border:none;line-height:15px;"><div class="crayon-line" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;"><span class="crayon-i" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;">network</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-sy" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(51,51,51);">{</span></div><div class="crayon-line crayon-striped-line" style="border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;background:rgb(247,247,247);"><span class="crayon-h" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">     </span><span class="crayon-i" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;">ssid</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-s" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,128,0);">"MyWifi"</span></div><div class="crayon-line" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;"><span class="crayon-h" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">     </span><span class="crayon-i" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;">psk</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-s" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,128,0);">"Qdhdhd123654"</span></div><div class="crayon-line crayon-striped-line" style="border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;background:rgb(247,247,247);"><span class="crayon-h" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">     </span><span class="crayon-i" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;">key_mgmt</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-r" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(128,0,128);">WPA-PSK</span></div><div class="crayon-line" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;"><span class="crayon-sy" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(51,51,51);">}</span></div></div></td></tr></tbody></table></div></div><h3 style="background:rgb(255,255,255);border:0px;margin:0px 0px 20px;padding:0px;vertical-align:baseline;font-weight:normal;color:rgb(85,102,119);line-height:1.2;font-size:1.5em;font-family:'Source Sans Pro', Arial, Helvetica, sans-serif;">WiFi Settings for Raspbian Stretch</h3><p style="background:rgb(255,255,255);border:0px;margin-bottom:1.6em;vertical-align:baseline;color:rgb(153,153,170);font-family:'Source Sans Pro', Arial, Helvetica, sans-serif;font-size:16px;">Make sure you change country code to yours (Thanks to @Clumpton for sharing this)</p><div class="crayon-syntax crayon-theme-classic crayon-font-monaco crayon-os-pc print-yes notranslate" style="margin:12px 0px;padding:0px;vertical-align:baseline;width:736.797px;font-family:Monaco, MonacoRegular, 'Courier New', monospace;color:rgb(153,153,170);height:auto;background:rgb(253,253,253);border-width:1px;border-style:solid;border-color:rgb(153,153,153);line-height:15px;"><div class="crayon-toolbar" style="border-top:0px;border-right:0px;border-left:0px;margin:0px;padding:0px;vertical-align:baseline;width:734.797px;background:rgb(221,221,221);border-bottom:1px solid rgb(187,187,187);height:18px;line-height:18px;"><span class="crayon-title" style="background:transparent;border:0px;margin:0px;vertical-align:baseline;font-family:inherit;float:left;height:inherit;padding:0px 4px;color:rgb(51,51,51);">wpa_supplicant.conf - WiFi Settings for Raspbian Stretch</span><div class="crayon-tools" style="background:0px center;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:18px;line-height:18px;float:right;"><div class="crayon-button crayon-nums-button crayon-pressed" title="Toggle Line Numbers" style="background:rgb(188,188,188) no-repeat -24px 0px;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;line-height:15px;width:24px;color:rgb(255,255,255);float:left;"><div class="crayon-button-icon" style="background:url(&quot;../images/toolbar/buttons.png&quot;) -24px -32px;border:0px;margin:-8px 0px 0px;padding:0px;vertical-align:baseline;font-family:inherit;width:24px;height:16px;"></div></div><div class="crayon-button crayon-plain-button" title="Toggle Plain Code" style="background-position:0px center;background-size:initial;background-repeat:no-repeat;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;line-height:15px;width:24px;float:left;"><div class="crayon-button-icon" style="background:url(&quot;../images/toolbar/buttons.png&quot;) 0px -48px;border:0px;margin:-8px 0px 0px;padding:0px;vertical-align:baseline;font-family:inherit;width:24px;height:16px;"></div></div><div class="crayon-button crayon-wrap-button" title="Toggle Line Wrap" style="background-position:0px center;background-size:initial;background-repeat:no-repeat;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;line-height:15px;width:24px;float:left;"><div class="crayon-button-icon" style="background:url(&quot;../images/toolbar/buttons.png&quot;) 0px -112px;border:0px;margin:-8px 0px 0px;padding:0px;vertical-align:baseline;font-family:inherit;width:24px;height:16px;"></div></div><div class="crayon-button crayon-copy-button" title="Copy" style="background-position:0px center;background-size:initial;background-repeat:no-repeat;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;line-height:15px;width:24px;float:left;"><div class="crayon-button-icon" style="background:url(&quot;../images/toolbar/buttons.png&quot;) 0px -16px;border:0px;margin:-8px 0px 0px;padding:0px;vertical-align:baseline;font-family:inherit;width:24px;height:16px;"></div></div><div class="crayon-button crayon-popup-button" title="Open Code In New Window" style="background-position:0px center;background-size:initial;background-repeat:no-repeat;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;line-height:15px;width:24px;float:left;"><div class="crayon-button-icon" style="background:url(&quot;../images/toolbar/buttons.png&quot;) 0px 0px;border:0px;margin:-8px 0px 0px;padding:0px;vertical-align:baseline;font-family:inherit;width:24px;height:16px;"></div></div></div></div><div class="crayon-plain-wrap" style="background:0px center;border:0px;vertical-align:baseline;margin:0px;padding:0px;height:auto;"></div><div class="crayon-main" style="background:0px center;border:0px;margin:0px;padding:0px;vertical-align:baseline;width:734.797px;"><table class="crayon-table" style="margin-left:0px;vertical-align:baseline;background:none;border:none;margin-top:0px;margin-right:0px;margin-bottom:0px;padding:0px;border-collapse:collapse;border-spacing:0px;width:auto;table-layout:auto;"><tbody style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;"><tr class="crayon-row" style="background:0px center;border:none;margin:0px;padding:0px;vertical-align:top;"><td class="crayon-nums" style="border:0px;background:rgb(223,239,255);margin:0px;padding:0px;vertical-align:top;color:rgb(84,153,222);"><div class="crayon-nums-content" style="background:0px center;border:0px;margin:0px;padding:0px;vertical-align:baseline;white-space:nowrap;line-height:15px;"><div class="crayon-num" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;">1</div><div class="crayon-num crayon-striped-num" style="background:rgb(200,225,250);border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;color:rgb(49,124,197);">2</div><div class="crayon-num" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;">3</div><div class="crayon-num crayon-striped-num" style="background:rgb(200,225,250);border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;color:rgb(49,124,197);">4</div><div class="crayon-num" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;">5</div><div class="crayon-num crayon-striped-num" style="background:rgb(200,225,250);border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;color:rgb(49,124,197);">6</div><div class="crayon-num" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;">7</div><div class="crayon-num crayon-striped-num" style="background:rgb(200,225,250);border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;color:rgb(49,124,197);">8</div><div class="crayon-num" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;text-align:center;height:inherit;">9</div></div></td><td class="crayon-code" style="background:0px center;border:0px;width:716px;margin:0px;padding:0px;vertical-align:top;"><div class="crayon-pre" style="margin:0px;padding:0px;vertical-align:baseline;color:rgb(0,0,0);white-space:pre;background:none;border:none;line-height:15px;"><div class="crayon-line" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;"><span class="crayon-v" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,45,122);">ctrl_interface</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-v" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,45,122);">DIR</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">/</span><span class="crayon-t" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(128,0,128);">var</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">/</span><span class="crayon-v" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,45,122);">run</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">/</span><span class="crayon-e" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,78,208);">wpa_supplicant </span><span class="crayon-v" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,45,122);">GROUP</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-e" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,78,208);">netdev</span></div><div class="crayon-line crayon-striped-line" style="border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;background:rgb(247,247,247);"><span class="crayon-v" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,45,122);">update_config</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-cn" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(206,0,0);">1</span></div><div class="crayon-line" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;"><span class="crayon-v" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,45,122);">country</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-e" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,78,208);">US</span></div><div class="crayon-line crayon-striped-line" style="border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;background:rgb(247,247,247);"> </div><div class="crayon-line" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;"><span class="crayon-v" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,45,122);">network</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-sy" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(51,51,51);">{</span></div><div class="crayon-line crayon-striped-line" style="border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;background:rgb(247,247,247);"><span class="crayon-h" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">     </span><span class="crayon-v" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,45,122);">ssid</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-s" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,128,0);">"MyWifi"</span></div><div class="crayon-line" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;"><span class="crayon-h" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">     </span><span class="crayon-v" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,45,122);">psk</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-s" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,128,0);">"Qdhdhd123654"</span></div><div class="crayon-line crayon-striped-line" style="border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;background:rgb(247,247,247);"><span class="crayon-h" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">     </span><span class="crayon-v" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,45,122);">key_mgmt</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">=</span><span class="crayon-v" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,45,122);">WPA</span><span class="crayon-o" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(0,111,224);">-</span><span class="crayon-i" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;">PSK</span></div><div class="crayon-line" style="background:0px center;border:0px;margin:0px;padding:0px 5px;vertical-align:baseline;font-family:inherit;height:inherit;"><span class="crayon-sy" style="background:transparent;border:0px;margin:0px;padding:0px;vertical-align:baseline;font-family:inherit;height:inherit;color:rgb(51,51,51);">}</span></div></div></td></tr></tbody></table></div></div>]]></description>
<dc:creator>nuno</dc:creator>
<dc:date>2018-05-23T13:17:39+09:00</dc:date>
</item>


<item>
<title>apache2 iframe 허용 / 금지</title>
<link>http://nuno21.net/bbs/board.php?bo_table=server&amp;amp;wr_id=1371</link>
<description><![CDATA[<p><span style="font-family:'Malgun Gothic', Helvetica, 'Apple SD Gothic Neo', Arial, sans-serif;color:rgb(68,68,68);"><span style="font-size:14px;background-color:rgb(255,255,255);">/etc/apache2/conf-available/security.conf 에서</span></span></p><p><span style="font-family:'Malgun Gothic', Helvetica, 'Apple SD Gothic Neo', Arial, sans-serif;color:rgb(68,68,68);"><span style="font-size:14px;background-color:rgb(255,255,255);"><br /></span></span></p><p><span style="font-family:'Malgun Gothic', Helvetica, 'Apple SD Gothic Neo', Arial, sans-serif;color:rgb(68,68,68);"><span style="font-size:14px;background-color:rgb(255,255,255);">아래 옵션 주석처리하면 iframe 허용</span></span></p><p><span style="background-color:rgb(255,255,255);font-size:14px;color:rgb(68,68,68);font-family:'Malgun Gothic', Helvetica, 'Apple SD Gothic Neo', Arial, sans-serif;">외부(다른 도메인)에서 iframe 으로 페이지를 불러올수 있다</span></p><p><span style="background-color:rgb(255,255,255);font-size:14px;color:rgb(68,68,68);font-family:'Malgun Gothic', Helvetica, 'Apple SD Gothic Neo', Arial, sans-serif;">Header set X-Frame-Options: "sameorigin"</span> </p>]]></description>
<dc:creator>최고관리자</dc:creator>
<dc:date>2018-03-15T14:34:34+09:00</dc:date>
</item>

</channel>
</rss>
