<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>에몽이</title>
    <link>https://emong.tistory.com/</link>
    <description></description>
    <language>ko</language>
    <pubDate>Mon, 29 Jun 2026 10:13:00 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>ian_hodge</managingEditor>
    <item>
      <title>Airbnb의 eslint를 IntelliJ에 적용하기</title>
      <link>https://emong.tistory.com/242</link>
      <description>&lt;p&gt;안녕하세요? 이번 시간엔 airbnb의 eslint를 IntelliJ에 적용하는 예제를 진행해보려고 합니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;모든 코드는&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://github.com/jojoldu/blog-code/tree/master/airbnb-eslint-setting&quot;&gt;Github&lt;/a&gt;에 있기 때문에 함께 보시면 더 이해하기 쉬우실 것 같습니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;(공부한 내용을 정리하는&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://github.com/jojoldu/blog-code&quot;&gt;Github&lt;/a&gt;와 세미나+책 후기를 정리하는&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://github.com/jojoldu/review&quot;&gt;Github&lt;/a&gt;, 이 모든 내용을 담고 있는&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://jojoldu.tistory.com/&quot;&gt;블로그&lt;/a&gt;가 있습니다. )&lt;/p&gt;
&lt;h2 id=&quot;들어가며&quot;&gt;들어가며&lt;/h2&gt;
&lt;p&gt;팀내에서 프론트엔드 코딩 컨벤션을 정하자는 이야기가 나왔습니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;구성원 모두가 백엔드 개발자이며, 메인 언어가 되는 Java를 다들 최근에 시작하셔서(기존엔 ASP, PHP) Java &amp;amp; 백엔드 학습으로도 시간이 부족하기에 프론트엔드 쪽은 거의 등한시 하고 있었습니다.&lt;/p&gt;
&lt;p&gt;그러다 최근에 큰 프로젝트가 끝나고 회고 시간에&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;백엔드 코드에 비해 프론트엔드 코드가 컨벤션없이 작성되어 퀄리티가 상대적으로 너무 떨어진다&lt;/b&gt;는 이야기가 나왔습니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;(물론 저희는 백엔드 개발자이고, Java 개발자로 전환하는 과정속에서 JS까지 잘하길 바라면 욕심일수도 있습니다.)&lt;/p&gt;
&lt;p&gt;그래도 JS 컨벤션은 필요하다 생각하다가&amp;nbsp;프론트엔드 스타일 가이드는&amp;nbsp;Airbnb가 잘되어있음을 알게되었습니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;Airbnb eslint를 IntelliJ에 적용하여 지속적으로 기존 프로젝트를 개선하고, 자연스레 좋은 코딩 스타일을 익히는것을 목표로 하여 환경설정방법을 작성합니다.&lt;/p&gt;
&lt;h2 id=&quot;본론&quot;&gt;본론&lt;/h2&gt;
&lt;p&gt;먼저 현재 프로젝트에&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.npmjs.com/package/eslint&quot;&gt;eslint&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;npm 패키지를 설치합니다.&lt;/p&gt;
&lt;p&gt;npm install --save-dev eslint&lt;/p&gt;
&lt;p&gt;설치가 완료되시면 프로젝트내 node_modules아래에 eslint가 생성되었는지 확인합니다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/mqTnz/btquQwW1ji0/Mjf9kQZWkag6aDQhCcfRE1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/mqTnz/btquQwW1ji0/Mjf9kQZWkag6aDQhCcfRE1/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/mqTnz/btquQwW1ji0/Mjf9kQZWkag6aDQhCcfRE1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FmqTnz%2FbtquQwW1ji0%2FMjf9kQZWkag6aDQhCcfRE1%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;그리고&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;ESLint 플러그인&lt;/b&gt;을 설치합니다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/KqlAt/btquPMeWAZH/mQk3hnxmlihE6svPH4OMDK/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/KqlAt/btquPMeWAZH/mQk3hnxmlihE6svPH4OMDK/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/KqlAt/btquPMeWAZH/mQk3hnxmlihE6svPH4OMDK/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FKqlAt%2FbtquPMeWAZH%2FmQk3hnxmlihE6svPH4OMDK%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;(File &amp;gt; Settings &amp;gt; Plugins &amp;gt; Browse repositories... &amp;gt; Search: eslint &amp;gt; Install &amp;gt; IDEA Restart)&lt;/p&gt;
&lt;p&gt;재시작 되어 설치가 완료되면 플러그인 설정을 진행합니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;(맥OS 기준)&lt;span&gt;&amp;nbsp;&lt;/span&gt;command+shift+a로&lt;span&gt;&amp;nbsp;&lt;/span&gt;Code Quality Tools를 검색하여 설정창을 오픈합니다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/cMYx5U/btquSiwJB40/gHLWbEjjaubFlrxvERAMrK/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/cMYx5U/btquSiwJB40/gHLWbEjjaubFlrxvERAMrK/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/cMYx5U/btquSiwJB40/gHLWbEjjaubFlrxvERAMrK/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcMYx5U%2FbtquSiwJB40%2FgHLWbEjjaubFlrxvERAMrK%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;해당 설정창에서 ESLint -&amp;gt; Enable 체크 -&amp;gt; node 위치 지정, (좀전에 설치한) ESLint npm 패키지 위치 지정&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;보통은 Enable 체크하면 IntelliJ가 직접 필요한 파일들의 위치를 자동으로 찾아줍니다.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/wgq6m/btquOpx1pWV/TnB2mEU8LmdqAH05wevwkk/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/wgq6m/btquOpx1pWV/TnB2mEU8LmdqAH05wevwkk/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/wgq6m/btquOpx1pWV/TnB2mEU8LmdqAH05wevwkk/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fwgq6m%2FbtquOpx1pWV%2FTnB2mEU8LmdqAH05wevwkk%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;IntelliJ 관련 설정은 이게 끝입니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;이제는 airbnb eslint 설정을 진행하겠습니다.&lt;/p&gt;
&lt;p&gt;먼저 airbnb-eslint와 관련된 eslint 기타 플러그인들을 설치하겠습니다.&lt;/p&gt;
&lt;p&gt;npm install --save-dev eslint-plugin-import npm install --save-dev eslint-plugin-react npm install eslint-plugin-jsx-a11y@5.1.1 --save-dev&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;현재 (2017.10.03) eslint-config-airbnb의 버전인 15.1.0 에서는 eslint-plugin-jsx-a11y 5.1.1 버전이 필요한데 eslint-plugin-jsx-a11y가 현재 6.x.x 버전이 되어서 5.1.1 버전을 강제로 지정해서 install 합니다.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;설치가 완료되셨으면 바로&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://www.npmjs.com/package/eslint-config-airbnb&quot;&gt;eslint-config-airbnb&lt;/a&gt;를 설치하겠습니다.&lt;/p&gt;
&lt;p&gt;npm install --save-dev eslint-config-airbnb&lt;/p&gt;
&lt;p&gt;설치가 완료되셨으면 실제 프로젝트에 적용해보겠습니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;프로젝트 내부에&lt;span&gt;&amp;nbsp;&lt;/span&gt;.eslintrc&lt;span&gt;&amp;nbsp;&lt;/span&gt;파일을 하나 생성합니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;그리고 아래와 같이 airbnb 옵션을 추가합니다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/bkpdWX/btquOqwUS03/YKuYDMiDM6GnUXiiVmbk3k/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/bkpdWX/btquOqwUS03/YKuYDMiDM6GnUXiiVmbk3k/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/bkpdWX/btquOqwUS03/YKuYDMiDM6GnUXiiVmbk3k/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbkpdWX%2FbtquOqwUS03%2FYKuYDMiDM6GnUXiiVmbk3k%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;ES6와 Node 환경을 적용하기 위해 추가 설정도 포함합니다.&lt;/p&gt;
&lt;p&gt;{ &lt;span&gt;&quot;env&quot;&lt;/span&gt;: { &lt;span&gt;&quot;node&quot;&lt;/span&gt;: &lt;span&gt;true&lt;/span&gt;, &lt;span&gt;&quot;es6&quot;&lt;/span&gt;: &lt;span&gt;true&lt;/span&gt; }, &lt;span&gt;&quot;extends&quot;&lt;/span&gt;: &lt;span&gt;&quot;airbnb&quot;&lt;/span&gt; }&lt;/p&gt;
&lt;p&gt;이렇게 하면 설정은 끝이났습니다!&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;실제로 간단하게 테스트를 해보겠습니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;test.js파일을 생성해서 아래의 코드를 작성하겠습니다.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;// bad&lt;/span&gt; &lt;span&gt;const&lt;/span&gt; bad = &lt;span&gt;&lt;span&gt;function&lt;/span&gt; () &lt;/span&gt;{ &lt;span&gt;console&lt;/span&gt;.log(&lt;span&gt;'bad'&lt;/span&gt;); }; &lt;span&gt;// good&lt;/span&gt; &lt;span&gt;&lt;span&gt;function&lt;/span&gt; &lt;span&gt;good&lt;/span&gt;() &lt;/span&gt;{ &lt;span&gt;console&lt;/span&gt;.log(&lt;span&gt;'good'&lt;/span&gt;); } &lt;span&gt;console&lt;/span&gt;.log(bad()); &lt;span&gt;console&lt;/span&gt;.log(good());&lt;/p&gt;
&lt;p&gt;이렇게 작성해보면 IntelliJ에서 수많은 Warn 메세지가 등장합니다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/Elrgs/btquP22UFIV/ZdaYSze0PXauOEptLPGiL0/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/Elrgs/btquP22UFIV/ZdaYSze0PXauOEptLPGiL0/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/Elrgs/btquP22UFIV/ZdaYSze0PXauOEptLPGiL0/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FElrgs%2FbtquP22UFIV%2FZdaYSze0PXauOEptLPGiL0%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;첫번째 메세지는 함수 선언 방식에 대한 메세지입니다.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Airbnb ESLint에선 함수 선언문 보다 함수표현식을 권장합니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;콜스텍에서 좀더 쉽게 찾을 수 있으며, 호이스팅의 혼란을 줄이며 애로우함수(자바의 람다)로 대체해서 사용할수 있다는 등의 장점이 있기 때문입니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;참고:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://firejune.com/1794/Airbnb%EC%9D%98+ES6+%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8+%EC%8A%A4%ED%83%80%EC%9D%BC+%EA%B0%80%EC%9D%B4%EB%93%9C#functions&quot;&gt;Airbnb ES6 스타일 가이드(번역)&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;2번째 메세지는&lt;span&gt;&amp;nbsp;&lt;/span&gt;console.log&lt;span&gt;&amp;nbsp;&lt;/span&gt;사용을 자제하라는 메세지입니다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/cGpsUE/btquR1vd1ug/sG1DUbXbhYRpqfPOkp7IDk/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/cGpsUE/btquR1vd1ug/sG1DUbXbhYRpqfPOkp7IDk/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/cGpsUE/btquR1vd1ug/sG1DUbXbhYRpqfPOkp7IDk/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcGpsUE%2FbtquR1vd1ug%2FsG1DUbXbhYRpqfPOkp7IDk%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;브라우저에서 실행되도록 설계된 JavaScript에서는 콘솔에서 메서드를 사용하지 않는 것이 좋습니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;이러한 메시지는 디버깅 목적으로 간주되므로 클라이언트에 제공하기에 적합하지 않습니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;일반적으로 콘솔을 사용하는 호출은 프로덕션으로 푸시되기 전에 제거되어야합니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;참고:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://eslint.org/docs/rules/no-console&quot;&gt;ESLint 공식 문서&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;기타 등등 수많은 권장 가이드라인이 IntelliJ에 노출되는 것을 확인할 수 있습니다.&lt;/p&gt;
&lt;p&gt;혹시나 ESLint외에 IntelliJ에서 ES6 문법을 허용하지 않는 경우가 있습니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;이럴 경우 아래와 같이 Preferences -&amp;gt; Javascript -&amp;gt; Javascript Language version을 ECMAScript6로 선택하시면 됩니다.&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/lyrg7/btquOqwUSYA/MK1lgFx56nlrZABSwp5UI1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/lyrg7/btquOqwUSYA/MK1lgFx56nlrZABSwp5UI1/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/lyrg7/btquOqwUSYA/MK1lgFx56nlrZABSwp5UI1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Flyrg7%2FbtquOqwUSYA%2FMK1lgFx56nlrZABSwp5UI1%2Fimg.png&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;추가적으로 필요한 옵션이 있으시거나, 본인 팀만의 JS 스타일로 변경하고 싶으시다면&lt;span&gt;&amp;nbsp;&lt;/span&gt;.eslintrc&lt;span&gt;&amp;nbsp;&lt;/span&gt;에 옵션을 주어 편하게 변경할 수 있습니다.&lt;/p&gt;
&lt;h2 id=&quot;마무리&quot;&gt;마무리&lt;/h2&gt;
&lt;p&gt;이번 포스팅은 백엔드 개발자분들을 위해 간단하게 작성한 ESLint 내용입니다.&lt;/p&gt;
&lt;p&gt;프론트엔드 개발자분들이나 혹은 좀 더 자세한 내용을 알고 싶으신 분들은&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://subicura.com/2016/07/11/coding-convention.html&quot;&gt;subicura님의 블로그&lt;/a&gt;를 꼭 참고하세요!&lt;/p&gt;
&lt;p&gt;너무 빡빡한 Lint 옵션은 생산성을 저하시키지만, 중구난방의 코드 스타일을 개선하고 싶다면 조금은 빡빡하게 해도 되지 않을까 싶습니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;추석연휴가 지나고 조금씩 팀내에 적용하면서 새로 알게된 점이나 문제점들을 발견하면 계속 공유하겠습니다!&lt;/p&gt;
&lt;p&gt;다들 추석연휴 잘보내세요!&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;끝까지 읽어주셔서 고맙습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;출처 :&amp;nbsp;&lt;a href=&quot;https://jojoldu.tistory.com/230&quot;&gt;https://jojoldu.tistory.com/230&lt;/a&gt;&lt;/p&gt;</description>
      <category>Backend/nodejs</category>
      <author>ian_hodge</author>
      <guid isPermaLink="true">https://emong.tistory.com/242</guid>
      <comments>https://emong.tistory.com/242#entry242comment</comments>
      <pubDate>Fri, 26 Apr 2019 17:02:18 +0900</pubDate>
    </item>
    <item>
      <title>git stash</title>
      <link>https://emong.tistory.com/241</link>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;a href=&quot;https://opentutorials.org/module/2676&quot;&gt;생활코딩-git&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;수업을 듣고 중요 내용을 정리합니다.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id=&quot;git-stash&quot;&gt;git stash&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;다른 브랜치로 checkout을 해야 하는데 아직 현재 브랜치에서 작업이 끝나지 않은 경우는 커밋을 하기가 애매합니다. 이런 경우 stash를 이용하면 작업중이던 파일을 임시로 저장해두고 현재 브랜치의 상태를 마지막 커밋의 상태로 초기화 할 수 있습니다. 그 후에 다른 브랜치로 이동하고 작업을 끝낸 후에 작업 중이던 브랜치로 복귀한 후에 이전에 작업하던 내용을 복원할 수 있습니다. 여기서는 이 기능에 대해서 알아봅니다.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;git-stash-의-기능&quot;&gt;git stash 의 기능&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;stash : 감추다, 숨겨두다&lt;/li&gt;
&lt;li&gt;branch를 이용하여 활발하게 작업을 하다보면, branch 작업이 완료되지 않은 상태에서 다른 branch 로 checkout 해야 하는 상황이 발생한다.&lt;/li&gt;
&lt;li&gt;이럴때 아직 작업중인 파일을 commit을 하기도 곤란하고, commit을 하지 않으면 checkout이 어려운 상황이 발생한다.&lt;/li&gt;
&lt;li&gt;그런 경우에&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;stash를 사용하여 작업중인 파일을 숨겨둘 수 있다.&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;예시-1---문제상황&quot;&gt;예시 1 - 문제상황&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;# master 브랜치&lt;/span&gt; ❯ vim f1.txt &lt;span&gt;# 파일 내용 수정&lt;/span&gt; ❯ git add f1.txt ❯ git commit &lt;span&gt;-m&lt;/span&gt; 1 &lt;span&gt;# exp 브랜치&lt;/span&gt; ❯ git checkout &lt;span&gt;-b&lt;/span&gt; exp &lt;span&gt;# exp 브랜치를 만들고 체크아웃&lt;/span&gt; ❯ vim f1.txt &lt;span&gt;# 파일 내용 수정후, add commit을 진행하지 않고 master로 체크아웃&lt;/span&gt; &lt;span&gt;# master 브랜치&lt;/span&gt; ❯ git checkout master ❯ git status On branch master Changes not staged &lt;span&gt;for &lt;/span&gt;commit: &lt;span&gt;(&lt;/span&gt;use &lt;span&gt;&quot;git add &amp;lt;file&amp;gt;...&quot;&lt;/span&gt; to update what will be committed&lt;span&gt;)&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;use &lt;span&gt;&quot;git checkout -- &amp;lt;file&amp;gt;...&quot;&lt;/span&gt; to discard changes &lt;span&gt;in &lt;/span&gt;working directory&lt;span&gt;)&lt;/span&gt; modified: f1.txt &lt;span&gt;# exp 브랜치에서 수정중인 내용이 master에도 영향을 미침&lt;/span&gt;&lt;/p&gt;
&lt;h2 id=&quot;예시-2---git-stash-활용&quot;&gt;예시 2 - git stash 활용&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;아직 파일의 수정이 끝나지 않아서 commit 하기가 곤란하고, 다른 branch로 checkout을 하기도 곤란한 상황을 처리할 때 git stash를 사용&lt;/li&gt;
&lt;li&gt;git stash 명령은 최소한&lt;span&gt;&amp;nbsp;&lt;/span&gt;버전관리가 되고 있는 파일에 대해서만&lt;span&gt;&amp;nbsp;&lt;/span&gt;수행이 가능하다. (= git add를 통해서 트래킹 중인 파일)&lt;/li&gt;
&lt;li&gt;WIP(working in process)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;# exp 브랜치&lt;/span&gt; ❯ git stash Saved working directory and index state WIP on exp: ba5adba 1 HEAD is now at ba5adba 1 ❯ git status On branch exp nothing to commit, working tree clean &lt;span&gt;# master 브랜치&lt;/span&gt; ❯ git checkout master ❯ git status On branch master nothing to commit, working tree clean&lt;/p&gt;
&lt;h2 id=&quot;예시-3---git-stash-apply-활용&quot;&gt;예시 3 - git stash apply 활용&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;git stash 를 통해서 숨겼던 수정중 파일의 상태를 원상태로 복구&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;❯ git stash apply On branch exp Changes not staged &lt;span&gt;for &lt;/span&gt;commit: &lt;span&gt;(&lt;/span&gt;use &lt;span&gt;&quot;git add &amp;lt;file&amp;gt;...&quot;&lt;/span&gt; to update what will be committed&lt;span&gt;)&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;use &lt;span&gt;&quot;git checkout -- &amp;lt;file&amp;gt;...&quot;&lt;/span&gt; to discard changes &lt;span&gt;in &lt;/span&gt;working directory&lt;span&gt;)&lt;/span&gt; modified: f1.txt no changes added to commit &lt;span&gt;(&lt;/span&gt;use &lt;span&gt;&quot;git add&quot;&lt;/span&gt; and/or &lt;span&gt;&quot;git commit -a&quot;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;git reset &amp;ndash;hard를 통해서 가장 최신 commit 상태로 working space 상태를 변경한다. (commit 하지 않은 수정중인 파일 내용을 삭제)&lt;/li&gt;
&lt;li&gt;git stash apply 를 통해서 수정 내용을 복구할 수 있다.&lt;/li&gt;
&lt;li&gt;stash list에 나오는 리스트는 명시적으로 삭제하지 않는 이상, 항상 살아있다.&lt;/li&gt;
&lt;li&gt;git stash drop을 통해 최신 stash 삭제가 가능하다.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;❯ git reset &lt;span&gt;--hard&lt;/span&gt; HEAD &lt;span&gt;# 최신 commit으로 reset (변경중인 파일 내용 삭제)&lt;/span&gt; ❯ git stash list stash@&lt;span&gt;{&lt;/span&gt;0&lt;span&gt;}&lt;/span&gt;: WIP on exp: ba5adba 1 &lt;span&gt;# 가장 최신의 stash 내용&lt;/span&gt; stash@&lt;span&gt;{&lt;/span&gt;1&lt;span&gt;}&lt;/span&gt;: WIP on exp: ba5adba 1 stash@&lt;span&gt;{&lt;/span&gt;2&lt;span&gt;}&lt;/span&gt;: WIP on exp: ba5adba 1 ❯ git stash apply &lt;span&gt;# 가장 최신의 stash 내용으로 다시 복원&lt;/span&gt; On branch exp Changes not staged &lt;span&gt;for &lt;/span&gt;commit: &lt;span&gt;(&lt;/span&gt;use &lt;span&gt;&quot;git add &amp;lt;file&amp;gt;...&quot;&lt;/span&gt; to update what will be committed&lt;span&gt;)&lt;/span&gt; &lt;span&gt;(&lt;/span&gt;use &lt;span&gt;&quot;git checkout -- &amp;lt;file&amp;gt;...&quot;&lt;/span&gt; to discard changes &lt;span&gt;in &lt;/span&gt;working directory&lt;span&gt;)&lt;/span&gt; modified: f1.txt ❯ git stash drop &lt;span&gt;# 가장 최신 stash 삭제&lt;/span&gt; ❯ git stash apply&lt;span&gt;;&lt;/span&gt; git stash drop&lt;span&gt;;&lt;/span&gt; &lt;span&gt;# stash 복원 및 삭제&lt;/span&gt; ❯ git stash pop &lt;span&gt;# stash 복원 및 삭제 (상기명령 동일)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;출처 :&amp;nbsp;&lt;a href=&quot;https://wayhome25.github.io/git/2017/04/05/git-05-stash/&quot;&gt;https://wayhome25.github.io/git/2017/04/05/git-05-stash/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <category>기타/git</category>
      <author>ian_hodge</author>
      <guid isPermaLink="true">https://emong.tistory.com/241</guid>
      <comments>https://emong.tistory.com/241#entry241comment</comments>
      <pubDate>Tue, 9 Apr 2019 16:13:26 +0900</pubDate>
    </item>
    <item>
      <title>git branch</title>
      <link>https://emong.tistory.com/240</link>
      <description>&lt;h1&gt;Branch 목록 보기&lt;/h1&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;로컬 저장소의 Branch 목록 보기&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;a href=&quot;https://www.tuwlab.com/ece/22216#&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;git branch&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;원격 저장소의 Branch 목록 보기&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;a href=&quot;https://www.tuwlab.com/ece/22216#&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;git branch -r&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;모든 Branch 목록 보기&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;a href=&quot;https://www.tuwlab.com/ece/22216#&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;git branch -a&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h1&gt;Branch 관리하기&lt;/h1&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;현재 위치에서 새로운 Branch 생성하기&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;a href=&quot;https://www.tuwlab.com/ece/22216#&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;git branch {생성할 Branch 이름}&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;다른 Branch로 이동하기&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;a href=&quot;https://www.tuwlab.com/ece/22216#&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;git checkout {이동할 Branch 이름}&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;'다른 Branch로 이동한다'는 것은 현재 작업 디렉토리의 소스코드 상태를 해당 Branch의 상태로 모두 바꾼다는 것을 의미합니다. 따라서, Branch를 이동할 때마다 디렉토리 내에 있는 (추적중인) 파일들이 시시각각 변하게 됩니다.&lt;/p&gt;
&lt;p&gt;시스템 입장에서는 파일들을 수정하고 새로 쓰거나 삭제하는 작업과 같이 때문에, Commit하지 않은 작업 내용이 있다면 Checkout을 할 수 없습니다. 작업 중에 다른 Branch의 상태를 보기 위해 임시로 Checkout하려면 Commit을 하거나 stash 명령을 이용해 작업 내용을 임시 저장한 뒤 Checkout 해야 합니다.&lt;/p&gt;
&lt;p&gt;이동할 Branch 이름 대신 Commit ID를 입력하면 해당 Commit이 작성된 직후의 소스코드 상태로도 이동할 수 있습니다. 이는 Commit ID가 Branch별로 관리되는 것이 아닌, 하나의 GIT 저장소 전체 안에서 유일하도록 관리되기 때문에 가능한 것입니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Branch 이름 변경하기&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;a href=&quot;https://www.tuwlab.com/ece/22216#&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;git branch -m {기존 Branch 이름} {새로운 Branch 이름}&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Branch 삭제하기&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;&lt;a href=&quot;https://www.tuwlab.com/ece/22216#&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;git branch -d {삭제할 Branch 이름}&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h1&gt;원격 저장소의 Branch 관리하기&lt;/h1&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;원격 저장소의 Branch 삭제하기&lt;/h3&gt;
&lt;p&gt;특이하지만, 원격 저장소의 Branch를 삭제하는 명령은 다름 아닌 push 명령입니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href=&quot;https://www.tuwlab.com/ece/22216#&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;git push --delete {원격 저장소 별칭} {원격 Branch 이름}&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;예를 들어, origin 원격 저장소에 있는 'test'라는 이름의 Branch를 삭제하려면 다음과 같이 입력하면 됩니다.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href=&quot;https://www.tuwlab.com/ece/22216#&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;git push --delete origin test&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;원격 저장소의 특정 Branch를 로컬 저장소의 새로운 Branch로 가져오기&lt;/h2&gt;
&lt;p&gt;이는 GIT을 활용한 협업 프로젝트에서 심심치 않게 자주 하게 되는 작업입니다.&lt;/p&gt;
&lt;p&gt;예를 들어, 원격 저장소에 Push를 시도했는데 Reject당한 경우 원격 저장소의 대상 Branch를 로컬 저장소의 임시 Branch로 가져온 뒤, 병합이나 재정렬을 하고 다시 Push를 하는 순서로 작업을 진행합니다.&lt;/p&gt;
&lt;p&gt;다음 세 명령어는 함께 묶어서 자주 사용되므로 눈여겨 봐 두면 언젠가 유용하게 활용할 수 있을 것입니다.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href=&quot;https://www.tuwlab.com/ece/22216#&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;git checkout -b {새로운 로컬 Branch 이름} {원격 저장소 별칭}/{원격 Branch 이름}&lt;/p&gt;
&lt;p&gt;git checkout {새로운 로컬 Branch 이름}&lt;/p&gt;
&lt;p&gt;git pull origin {원격 Branch 이름}&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;이 명령어 세트의 사용 예시와 무엇을 하는지에 대한 설명은 다음과 같습니다.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href=&quot;https://www.tuwlab.com/ece/22216#&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;git checkout -b temp origin/master&lt;/p&gt;
&lt;p&gt;git checkout temp&lt;/p&gt;
&lt;p&gt;git pull origin master&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;첫 번째 줄에서는 origin 저장소의 master Branch를 로컬 저장소로 가져오되, temp라는 이름의 새로운 Branch를 생성하여 가져옵니다. 다음 줄에서는 로컬 저장소의 temp Branch로 이동하고, 마지막 줄에서는 원격 저장소의 최신 변경사항을 가져와 현재 Branch인 temp에 반영합니다.&lt;/p&gt;
&lt;p&gt;마지막 줄에서 Pull을 하는 이유는 checkout -b 명령을 수행할 때 대상 Branch를 과거에 이미 가져온 기록이 있을 경우 원격 저장소에서 가져오는 것이 아닌, Cache된 정보를 가져오기 때문입니다.&lt;/p&gt;</description>
      <category>기타/git</category>
      <author>ian_hodge</author>
      <guid isPermaLink="true">https://emong.tistory.com/240</guid>
      <comments>https://emong.tistory.com/240#entry240comment</comments>
      <pubDate>Tue, 9 Apr 2019 16:13:01 +0900</pubDate>
    </item>
    <item>
      <title>ubuntu permission setting</title>
      <link>https://emong.tistory.com/239</link>
      <description>&lt;p&gt;리눅스는 여러사용자가 들어와 사용하는 멀티유저 시스템이지요.. 왜냐면 리눅스는 서버용으로 만들어진 운영체제이기때문입니다..&lt;/p&gt;
&lt;p&gt;그런데 한가지 문제가 발생합니다.&lt;/p&gt;
&lt;p&gt;여러 사용자가 들어오면 서버에 올려진 비밀자료 열람과 그것을 변조,수정,삭제를 할 우려가 높아집니다..&lt;/p&gt;
&lt;p&gt;그리고 그 비밀자료는 일부 사용자에게만 공개하는 것이였습니다. 하지만 모든사용자들이 다 볼 수 있겠죠.. 왜냐면 여러사람들이 사용하는 컴퓨터이기때문이지요..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;이 문제가 극복하기위해 리눅스에 한가지 기능을 추가합니다.&lt;/p&gt;
&lt;p&gt;바로 퍼미션(권한)이라는 기능을 추가했습니다.. 퍼미션은 말그대로 시스템에서 유지되는 권한기능입니다..&lt;/p&gt;
&lt;p&gt;&lt;span&gt;참고로 윈도우도&amp;nbsp;&lt;/span&gt;&lt;span&gt;퍼미션기능이 있긴하지만,&lt;/span&gt;&lt;span&gt;&amp;nbsp;여러사용자들이 들어오는&amp;nbsp;&lt;/span&gt;&lt;span&gt;서버용이 아니기에&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;리눅스&lt;/span&gt;&lt;span&gt;처럼&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;활성화되어있지않습니다..&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;이 기능으로 사용자들은 자신한테 읽기퍼미션이 부여된 파일만 읽을 수 있고,쓰기&lt;span&gt;퍼미션이 부여된 파일만 쓰기와 수정이 가능하고, 실행퍼미션&lt;/span&gt;&lt;span&gt;이 부여된 파일만 실행이 가능하게 됩니다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;이로써 비밀자료는 퍼미션이 부여된 사용자들에게만 공개할 수 있게 되었습니다..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;그리고 &quot;&lt;span&gt;이 파일은 누구꺼지?&lt;/span&gt;&quot;라는 문제에서 소유자 개념도 생겨납니다.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;앞에서 리눅스는 여러사용자들이 공동으로 사용하는 운영체제라고 말했습니다..&lt;/p&gt;
&lt;p&gt;그러면 &quot;&lt;span&gt;이 파일은 내가 만들었어.. 그래서 내꺼야.. , 아니! 니가 만들었지만, 내가 대부분 수정했어.. 그래서 내꺼야&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&quot;라는 분쟁이 발생합니다.. 왜냐면 혼자쓰는 게 아니라 여러사람들이 같이 사용하는 컴퓨터이잖아요.&lt;/p&gt;
&lt;p&gt;그래서 리눅스에서 &quot;이건 니꺼다&quot;라고 정해줍니다.. 리눅스 曰 &quot;&lt;span&gt;이 파일은 니가 만들었으니, 니가 소유자, 즉 이 파일의 주인이야!!&lt;/span&gt;&quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span&gt;1) 파일정보 보기&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;일단, 퍼미션 조정하려면 파일에 부여된 퍼미션부터 봐야겠지요?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;400&quot; height=&quot;91&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/6Hb8Z/btqufy9jOSp/ycCF6RwYCMXkDQSqsmuMBK/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/6Hb8Z/btqufy9jOSp/ycCF6RwYCMXkDQSqsmuMBK/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/6Hb8Z/btqufy9jOSp/ycCF6RwYCMXkDQSqsmuMBK/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F6Hb8Z%2Fbtqufy9jOSp%2FycCF6RwYCMXkDQSqsmuMBK%2Fimg.png&quot; width=&quot;400&quot; height=&quot;91&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;먼저 &quot;ls -al&quot; 명령어는 다들 아시죠? 앞에서 배웠습니다. 현재위치에 있는 파일들을 자세히보여주는 명령입니다.&lt;/p&gt;
&lt;p&gt;그리고 자세히 보면 맨 뒤부분은 파일이름이 표시된다는 건 아시겠나요?&lt;/p&gt;
&lt;p&gt;그치만, 앞부분에 있는 &quot;drwxr-xr ~~ 머시기&quot; 이건 도대체 뭔지 모르겠네요..;;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;차근차근 봅시다..&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;d&lt;/span&gt;rwxr-xr-x&lt;/span&gt;&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;2&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span&gt;root&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;span&gt;root&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;span&gt;4096&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Apr 22 16:59&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;conory&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;파일Type&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;퍼미션정보&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;링크수&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;소유자&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;소유그룹&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;용량&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;생성날짜&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;파일이름&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;파일 Type :&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&quot;&lt;b&gt;d&lt;/b&gt;&quot; -&amp;gt; 디렉토리 , &quot;&lt;b&gt;l&lt;/b&gt;&quot; -&amp;gt; 링크파일 , &quot;&lt;b&gt;-&lt;/b&gt;&quot; -&amp;gt; 일반파일 등등..&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;퍼미션정보&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;: 해당 파일에 어떠한 퍼미션이 부여되어있는 지 표시!&lt;/li&gt;
&lt;li&gt;&lt;span&gt;링크수&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;: 해당 파일이 링크된 수! 링크는 윈도우의 &quot;바로가기&quot;와 같습니다. &quot;&lt;b&gt;in [대상파일] [링크파일]&lt;/b&gt;&quot; 명령으로 링크파일을 만듭니다.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;소유자&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;: 해당 파일의 소유자이름! (누구껀지?)&lt;/li&gt;
&lt;li&gt;&lt;span&gt;소유그룹&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;: 해당 파일을 소유한 그룹이름! 특별한 변경이 없을 경우 소유자가 속한 그룹이 소유그룹으로 지정됩니다.&lt;/li&gt;
&lt;li&gt;&lt;span&gt;용량&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;: 파일의 용량!&lt;/li&gt;
&lt;li&gt;&lt;span&gt;생성날짜&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;: 파일이 생성된 날짜!&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;파일이름&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;: 파일이름이죠!&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;이제 퍼미션정보를 봐야겠지요.. 윗부분에서 보셔서 아시겠지만, 앞에서 두번째부터 아홉번째까지가 바로 퍼미션정보입니다.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span style=&quot;color: #ffffff;&quot;&gt;rwxr-xr-x&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;i&gt;&quot;근데 이게 퍼미션 정보라고요??.. 와이리 못생겨노?&quot;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;일단은 알아두어야 할게 있는 데요.. 퍼미션 종류에는 3가지가 있습니다.. 그리고 퍼미션의 사용자 지정에도 3가지가 구요..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;* 퍼미션 종류 ,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ffffff;&quot;&gt;() 괄호에 있는 것이 해당 퍼미션 기호&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;읽기&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;( r )&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;: 파일의 읽기권한&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;쓰기&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;( w )&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;: 파일의 쓰기권한&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;실행&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;( x )&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;: 파일의 실행권한&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;* 퍼미션의 사용자지정&lt;/b&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;소유자 : 소유자에 대한 퍼미션지정&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;그룹 : 소유그룹에 대한 퍼미션지정&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;공개 : 모든사용자들에 대한 퍼미션지정&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;그럼 퍼미션 정보를 볼까요?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span style=&quot;color: #ffffff;&quot;&gt;rwxr-xr-x&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&quot;&lt;i&gt;r &amp;nbsp;w &amp;nbsp;x가 왠지 낮익어요..&lt;/i&gt;&quot; 하는 분 계신가요??&amp;nbsp;&lt;/p&gt;
&lt;p&gt;네.. 맞아요.. 위에서 봤던 퍼미션 기호이지요..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;그런데 기호의 종류는 ( r &amp;nbsp;w &amp;nbsp;x ) &amp;nbsp;3개인데.. 퍼미션정보에는 총9개가 표시되네요.. 뭔지?&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;일단 세자리씩 끊어봅시다.. ( rwx &amp;nbsp;r-x &amp;nbsp;r-x ) 이제 감이오나요?&lt;/p&gt;
&lt;p&gt;바로!!&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ffffff;&quot;&gt;&quot;&lt;b&gt;소유자 :&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;rwx ,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;그룹 :&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;r-x ,&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;공개 :&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;r-x&quot;&amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;이런 얘기지요.. ㅎㅎ (이때&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ffffff;&quot;&gt;'-'&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;기호는 그 퍼미션은 없다는 기호입니다.)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;해석해보면 &quot;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ffffff;&quot;&gt;이 파일에 대해서 소유자는 읽기(r),쓰기(w),실행(x)을 허용하고,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #ffffff;&quot;&gt;파일의 소유그룹에 속하고 있는 사용자들은 읽기(r),실행(x)만 허용하고,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color: #ffffff;&quot;&gt;이외에 나머지 모든 사용자들도&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #ffffff;&quot;&gt;읽기(r),실행(x)만&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;color: #ffffff;&quot;&gt;&amp;nbsp;허용한다.&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;b&gt;2) 퍼미션 변경하기&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;파일이 생성될때 기본적인 퍼미션이 부여됩니다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;하지만, 퍼미션을 변경하고 싶을 때가 있습니다. (가령 이 파일을 모두에게 공개한다거나 하는...)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;퍼미션 변경에는 여러가지 방법이 있지만, 여기서는 가장 쉬운방법으로 배워보도록 합시다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;바로 &quot;&lt;/span&gt;chmod&lt;span&gt;&quot; 명령을 사용하면 아주 손쉽게 퍼미션을 변경할 수 있습니다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;chmod [변경될 퍼미션값] [변경할 파일]&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;여기서&amp;nbsp;&lt;/span&gt;[퍼미션값]&lt;span&gt;을 지정해 줘야하는 데요..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;퍼미션값을 구하는 방법은 다음과 같습니다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;각 퍼미션 기호를 숫자로 변환 합니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #ffffff;&quot;&gt;( r = 4 , w = 2 , x = 1 )&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;예) r &amp;nbsp;- &amp;nbsp;x 인 경우 4 &amp;nbsp;0 &amp;nbsp;1&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;변환한 숫자를 합산합니다.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;예) 4 &amp;nbsp;0 &amp;nbsp;1 인 경우 &amp;nbsp;4+0+1 = 5&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;이런식으로&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;하나의 퍼미션&lt;/b&gt;을 숫자값으로 변환하면 됩니다..&lt;/p&gt;
&lt;p&gt;예)&amp;nbsp;&lt;span&gt;rwxr-xr-x 이면&amp;nbsp;&lt;/span&gt;&lt;span&gt;rwx &amp;nbsp;r-x &amp;nbsp;r-x 세자리씩 끊고, 4+2+1 &amp;nbsp;| 4+0+1 | 4+0+1 &amp;nbsp;숫자변환 뒤 합산하면&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;&quot;755&quot;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;라는 퍼미션값이 나옵니다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;그래서 &quot;&amp;nbsp;&lt;/span&gt;&lt;b&gt;chmod 755 conory.text&lt;/b&gt;&lt;span&gt;&amp;nbsp;&quot; 명령을 실행하면 conory.text 파일이 755에 해당되는 퍼미션으로 변경됩니다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;그리고 디렉토리도 이 방법으로&amp;nbsp;&lt;span&gt;퍼미션을&amp;nbsp;&lt;/span&gt;&lt;span&gt;변경할 수 있습니다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;디렉토리의 경우 &quot;&lt;span style=&quot;color: #000000;&quot;&gt;-R&lt;/span&gt;&quot; 옵션을 사용하면 하위 디렉토리의 모든 디렉토리및 파일의 퍼미션이 변경됩니다.&lt;/p&gt;
&lt;p&gt;예) &quot;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;chmod -R 777 conory&lt;/b&gt;&lt;span&gt;&amp;nbsp;&quot; conory 디렉토리의 하위에 위치한 모든 파일및 디렉토리 퍼미션이 777로 변경됩니다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;b&gt;3) 소유자 변경하기&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;파일의 소유자 양도를 해야 될 경우 소유자 변경을 할 수 있습니다.&lt;/p&gt;
&lt;p&gt;아래 명령으로 손쉽게 변경할 수 있습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;chown [변경할 소유자] [변경할 파일]&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;이 명령으로 소유자뿐만 아니라 소유그룹도 변경할 수 있습니다.&lt;/p&gt;
&lt;p&gt;[변경할 소유자]란에 &quot;&lt;span style=&quot;color: #ffffff;&quot;&gt;.그룹이름&lt;/span&gt;&quot; 형식으로 입력하면 됩니다. &quot; .conory &quot;&lt;/p&gt;
&lt;p&gt;예를 들어 conory.text의 소유자를 &quot;conory&quot;로, 소유그룹을 &quot;conory2&quot;로 동시에 변경할 경우 &quot;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;chown conory.conory2&amp;nbsp;&lt;span&gt;conory.text&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span&gt;&quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span&gt;* 실습&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;conroy.text이란 파일을 만들어 퍼미션을 rwxrwxrwx(777)로 변경하고, 소유자및 소유그룹을 &quot;conory&quot;로 변경해봅시다.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;단, conory라는 사용자계정이 생성되어 있어야겠지요..&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;701&quot; height=&quot;457&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/cvkPmZ/btqudT7nfSX/yWVOiod1pWQHJmChifGtJ0/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/cvkPmZ/btqudT7nfSX/yWVOiod1pWQHJmChifGtJ0/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/cvkPmZ/btqudT7nfSX/yWVOiod1pWQHJmChifGtJ0/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcvkPmZ%2FbtqudT7nfSX%2FyWVOiod1pWQHJmChifGtJ0%2Fimg.png&quot; width=&quot;701&quot; height=&quot;457&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;출처 :&amp;nbsp;&lt;a href=&quot;https://conory.com/blog/19194&quot;&gt;https://conory.com/blog/19194&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <category>Backend</category>
      <author>ian_hodge</author>
      <guid isPermaLink="true">https://emong.tistory.com/239</guid>
      <comments>https://emong.tistory.com/239#entry239comment</comments>
      <pubDate>Tue, 9 Apr 2019 16:09:23 +0900</pubDate>
    </item>
    <item>
      <title>리눅스 Symbolic Link - 심볼링릭크 소개와 사용법</title>
      <link>https://emong.tistory.com/238</link>
      <description>&lt;p&gt;&lt;b&gt;&lt;span&gt;리눅스 Symbolic Link - 심볼링릭크 소개와 사용법&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;hr class=&quot;tx-hr-border-2&quot; style=&quot;box-sizing: content-box; height: 7px; margin-top: 20px; margin-bottom: 20px; border-width: 1px 0px 3px; border-style: solid none; border-color: black; border-image: initial; color: #000000; font-family: NanumBarunGothic; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; display: block;&quot; /&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;820&quot; height=&quot;364&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/baLWmR/btqtWi0sPnd/XKPXtDOm5grCdofJ1p9mWK/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/baLWmR/btqtWi0sPnd/XKPXtDOm5grCdofJ1p9mWK/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/baLWmR/btqtWi0sPnd/XKPXtDOm5grCdofJ1p9mWK/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbaLWmR%2FbtqtWi0sPnd%2FXKPXtDOm5grCdofJ1p9mWK%2Fimg.png&quot; width=&quot;820&quot; height=&quot;364&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;심볼링크와 하드링크의 소개에 앞서 리눅스의 파일링크에 대해서 먼저 숙지 하여야합니다 우선 리눅스의 파일링크의 대해서 설명하겠습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot; width=&quot;963&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;span&gt;&lt;b&gt;&amp;nbsp;&lt;span style=&quot;color: #ffffff;&quot;&gt;파일링크 이해하기&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;파일링크는 리눅스 말고도 윈도우상에서 굉장이 많이 쓰입니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;820&quot; height=&quot;481&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/n89hP/btqtWY8j1NJ/kiHI7w0akEgeRQeCnRTRbk/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/n89hP/btqtWY8j1NJ/kiHI7w0akEgeRQeCnRTRbk/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/n89hP/btqtWY8j1NJ/kiHI7w0akEgeRQeCnRTRbk/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fn89hP%2FbtqtWY8j1NJ%2FkiHI7w0akEgeRQeCnRTRbk%2Fimg.png&quot; width=&quot;820&quot; height=&quot;481&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;위 캡쳐내용은 저의 바탕화면 입니다..;;&lt;/p&gt;
&lt;p&gt;우선 예로 많이들 쓰시는 크롬(Chrome)로 비유해 보겠습니다&lt;/p&gt;
&lt;p&gt;바탕화면에 있는 크롬은 원본파일일까요?? No 다른 분께서도 당연하게 생각하시겠지만&amp;nbsp;원본파일이 아닙니다 더 자세하게 확인하기위해서 바탕화면의 있는 크롬을 속성으로 들어가 확인해 보겠습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;422&quot; height=&quot;583&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/cOiTpD/btqtYs8m8sx/zzj6GDlNR3S2fur430Pp8K/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/cOiTpD/btqtYs8m8sx/zzj6GDlNR3S2fur430Pp8K/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/cOiTpD/btqtYs8m8sx/zzj6GDlNR3S2fur430Pp8K/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcOiTpD%2FbtqtYs8m8sx%2Fzzj6GDlNR3S2fur430Pp8K%2Fimg.png&quot; width=&quot;422&quot; height=&quot;583&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;바탕화면에 있는 크롬의 속성으로 들어가 확인하시면 .lnk(바로가기)라는 확장자를 사용합니다 결국 바탕화면에 있는 파일은 원본파일이 아닌 설치된 크롬의 실행파일과 연결되어 있다는것을 예상 할 수 있습니다. 더 자세히 확인하기 위해서 상단탭의 바로가기를 선택해 보겠습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;422&quot; height=&quot;581&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/bn3y2O/btqtW0rrk84/Vu7mC5p5noOTKVKia8ydF0/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/bn3y2O/btqtW0rrk84/Vu7mC5p5noOTKVKia8ydF0/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/bn3y2O/btqtW0rrk84/Vu7mC5p5noOTKVKia8ydF0/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fbn3y2O%2FbtqtW0rrk84%2FVu7mC5p5noOTKVKia8ydF0%2Fimg.png&quot; width=&quot;422&quot; height=&quot;581&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;바탕화면에 있는 크롬의 속성으로 들어가 확인하시면 .lnk(바로가기)라는 확장자를 사용합니다 결국 바탕화면에 있는 파일은 원본파일이 아닌 설치된 크롬의 실행파일과 연결되어 있다는것을 예상 할 수 있습니다. 더 자세히 확인하기 위해서 상단탭의 바로가기를 선택해 보겠습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;바로가기 탭의 들어선택후 대상과 시작위치를 확인하면 크롬이 설치된 경로로 잡혀있을것입니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;설치된 경로 : &quot;C:\Program Files (x86)\Google\Chrome\Application\chrome.exe&quot;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;위의 설치된 경로를 보시면 바탕화면의 있는 크롬은 원본 실행파일의 연결을 해준것이라고 생각하시면 됩니다. 만약 이런 파일링크가 없다면 우리는 일일이 파일경로를 다 외워서 파일을 찾은 후 실행을 시켜야 될것입니다.&lt;/p&gt;
&lt;p&gt;하지만 우리는 파일링크가 있어 바탕화면 혹은 작업표시줄등등을 &amp;nbsp;편한곳에 만들어 파일링크(바로가기)를 연결하여 아주 편리하게 사용하고 있는 것입니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;그런데 리눅스 또한 이와 비슷한 파일링크방식이 있습니다 그것이&amp;nbsp;&lt;span style=&quot;color: #000000;&quot;&gt;심볼릭&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;링크와 하드링크&lt;/span&gt;입니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot; width=&quot;963&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;span&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;심볼릭 링크(Symbolic Link)란?&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;심볼릭 링크(Symbolic Link)란?&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;심볼링 링크는 단순히 원본파일을 가리키도록 링크만 연결 시켜둔 것으로 위에서 설명한 윈도우에서의 바로가기파일이라고 생각하시면 됩니다. 또한 원본파일만 가리키기만 하고 있으므로 원본파일의 크기와 무관하며 원본파일이 삭제되어 존재하지 않을 경우에 빨간색으로 깜빡거리면서 링크파일의 원본파일이 없다는 것을 알려줍니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span style=&quot;color: #000000;&quot;&gt;[리눅스 심볼릭 링크의 정리]&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;1. 원본파일을 가르키도록 링크 시켜주는 것입니다.(바로기가 파일)&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;2. 원본파일의 크기과 무관 합니다.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;3. 원본파일 삭제하여도 링크파일이 깜박거리면서 원본이 없다고 알려줍니다.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot; width=&quot;963&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;span&gt;&lt;b&gt;&amp;nbsp;&lt;span style=&quot;color: #ffffff;&quot;&gt;심볼릭 링크 사용법&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;사용법 : ln [옵션] [원본파일] [대상파일]&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span&gt;[ln 명령어 옵션&lt;/span&gt;&lt;span&gt;]&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-b : 링크파일 생성시에 대상파일이 이미 존재하면 백업파일을 만든 후에 링크파일을 생성합니다.&lt;/p&gt;
&lt;p&gt;-d : 디렉토리에 대한 하드링크파일생성을 가능하게 합니다.&lt;/p&gt;
&lt;p&gt;-f : 대상파일이 존재할 경우에 대상파일을 지우고 링크파일을 생성합니다.&lt;/p&gt;
&lt;p&gt;-i : 대상파일이 존재할 경우에 대상파일을 지울건인가를 확인요청합니다.&lt;/p&gt;
&lt;p&gt;-t : 링크파일을 생성할 디렉토리를 지정합니다.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;-s : 심볼릭링크 생성&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ln명령어 사용시거의 대부분 -s 옵션을 사용하게 됩니다.&lt;/p&gt;
&lt;p&gt;이제 ln명령어를 사용하여 전 심볼릭 링크로 연결할 디렉토리와 파일을&amp;nbsp;생성 후&amp;nbsp;다른파일의 심볼릭 링크롤 걸어보겠습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;심볼릭 링크로 연결할 파일 생성&lt;/b&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;p&gt;4&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;[root@web /]# mkdir /tmp/Symblic/&lt;/p&gt;
&lt;p&gt;[root@web /]# echo &quot;Symblic Link&quot; &amp;gt; /tmp/Symblic/link&lt;/p&gt;
&lt;p&gt;[root@web /]# cat /tmp/Symblic/link&lt;/p&gt;
&lt;p&gt;Symblic Link&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;심볼릭 링크 설정&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;사용법 : ln -s [원본파일이 이름] [심볼릭크 이름]&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;[root@web tmp]# ln -s /tmp/Symblic/link Symblic_Link&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;위의 명령어는 심볼릭&amp;nbsp;링크 옵션을 주어 link파일을 Symblic_Link파일로 심볼릭링크(바로가기)파일을 생성하는과정입니다. 이제 생성했으니 생성한 심볼릭 링크 파일을 확인해보겠습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;642&quot; height=&quot;346&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/blJjBL/btqtWhtI7SN/PTGcl0pCiZcn4rVDEMGxw1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/blJjBL/btqtWhtI7SN/PTGcl0pCiZcn4rVDEMGxw1/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/blJjBL/btqtWhtI7SN/PTGcl0pCiZcn4rVDEMGxw1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FblJjBL%2FbtqtWhtI7SN%2FPTGcl0pCiZcn4rVDEMGxw1%2Fimg.png&quot; width=&quot;642&quot; height=&quot;346&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;위 캡쳐 화면에서 우선 좌측의 빨간박스 부분을 보시면 &quot;l&quot;로 표시된 것을 확인 하실수 있습니다 심볼릭 링크를 걸게 되면 &quot;l&quot;로 표시됩니다 또 우측의 Symblic_Link파일이 연두색?이며 화살표로 &amp;nbsp;/tmp/Sybmlic/link를 바라보고 있다고 나오는것을 확인할 수 있습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;이번에는 심볼릭파일의&amp;nbsp;/tmp/Sybmlic/link(원본파일)을 삭제 후 심볼릭링크의 파일을 확인해 보겠습니다.&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;641&quot; height=&quot;345&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/b5016R/btqtYud2fav/tOx4kUK50Q01KDdhcIGCkK/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/b5016R/btqtYud2fav/tOx4kUK50Q01KDdhcIGCkK/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/b5016R/btqtYud2fav/tOx4kUK50Q01KDdhcIGCkK/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb5016R%2FbtqtYud2fav%2FtOx4kUK50Q01KDdhcIGCkK%2Fimg.png&quot; width=&quot;641&quot; height=&quot;345&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;심볼릭링크의 원본파일을 삭제했을 경우 심볼릭링크의 파일색깔이 빨간색으로 변하며 원본파일의 경로는 빨간색 블록으로 깜빡거리면서 원본파일이 없다는것을 표시하게 됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;◆ TIP&amp;nbsp;&lt;/p&gt;
&lt;p&gt;파일 이름이 변경되어도 위의 캡쳐화면처럼 나오게되며 또한 파일이 삭제파일을 동일한 이름으로 새롭게 생성시에 다시 활용할수 있습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;출처 :&amp;nbsp;&lt;a href=&quot;https://server-talk.tistory.com/140&quot;&gt;https://server-talk.tistory.com/140&lt;/a&gt;&lt;/p&gt;</description>
      <category>Backend</category>
      <author>ian_hodge</author>
      <guid isPermaLink="true">https://emong.tistory.com/238</guid>
      <comments>https://emong.tistory.com/238#entry238comment</comments>
      <pubDate>Fri, 29 Mar 2019 17:44:30 +0900</pubDate>
    </item>
    <item>
      <title>mongodb 사용자 관리</title>
      <link>https://emong.tistory.com/237</link>
      <description>&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;MongoDB 설치후 데이터베이스 위치, 로그, 인증 등에 관련한 서버 구성과 설정을 정리한다.&lt;/span&gt;&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; orphans: 3; widows: 3; margin: 2em 1em 2em 0px; padding-left: 1em; padding-right: 1em; font-style: italic; border-left-width: 0.25em; border-left-color: rgb(122, 130, 136); transition: all 0.2s ease-in-out 0s; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 20px;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; transition: all 0.2s ease-in-out 0s; font-size: 1em;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;MongoDB 2.6 과 MongoDB Community Edition 3.x 버전을 사용했다.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;h2 id=&quot;mongodb-접근제어&quot; style=&quot;box-sizing: border-box; margin: 0.3em 0px; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 1.953em; transition: all 0.2s ease-in-out 0s; padding-bottom: 0.5em; border-bottom: 1px solid rgb(242, 243, 243); color: rgb(73, 78, 82);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongoDB 접근제어&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongoDB 는 설치과정 중에 인증과 관련해 설정하는 부분이 없어서 설치 후 누구나 DB에&amp;nbsp;접속 할 수 있다. 인증을 추가해 데이터베이스 관리자와 데이터베이스 사용자로 구분해서 이용하고, 각 데이터베이스의 사용자는 허가된 역할(Role)을 가지고 데이터베이스에 접근 가능하도록 구성한다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;여기서는 다음 두 가지를 다루고 있다.&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; orphans: 3; widows: 3; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 20px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; margin-bottom: 0.5em; font-size: 1em;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(1) 데이터베이스 관리자 추가&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; margin-bottom: 0.5em; font-size: 1em;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;(2) 데이터베이스 사용자 추가&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Ubuntu/Debian 리눅스 배포본에 MongoDB 3.x 버전이 지원되지 않으면, MongoDB Community Edition 를 패키지 혹은 소스로 설치할 수 있다.&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; orphans: 3; widows: 3; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 20px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; margin-bottom: 0.5em; font-size: 1em;&quot;&gt;&lt;a href=&quot;https://blog.thinkbee.kr/linux/database/mongodb-3.4-install-armv8/&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;MongoDB Community Edition 3.4 on Armv8&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; margin-bottom: 0.5em; font-size: 1em;&quot;&gt;&lt;a href=&quot;https://blog.thinkbee.kr/linux/database/mongodb-3.6-install/&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;MongoDB Community Edition 3.6&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 id=&quot;데이터베이스-관리자&quot; style=&quot;box-sizing: border-box; margin: 2em 0px 0.5em; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 1.563em; color: rgb(73, 78, 82);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;데이터베이스 관리자&lt;/span&gt;&lt;/h3&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongod가&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;비인증 모드로 실행&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;중인 상태에서,&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongo&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;클라이언트로 데이터베이스에 접속한다.접속에 성공하면&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;프롬프트가 표시된다. 그리고 접속한 후에&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;admin&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;데이터베이스로 전환한다.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;language-terminal highlighter-rouge&quot; style=&quot;box-sizing: border-box; position: relative; margin-bottom: 1em; background: rgb(38, 50, 56); color: rgb(238, 255, 255); font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; font-size: 0.75em; line-height: 1.8; border-radius: 4px;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;box-sizing: border-box; orphans: 3; widows: 3; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; overflow-x: auto; transition: all 0.2s ease-in-out 0s; width: 821px; margin-top: 0px; margin-bottom: 0px; padding: 1em;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace;&quot;&gt;&lt;span class=&quot;gp&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; use admin
&lt;/span&gt;&lt;span class=&quot;go&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;switched to db admin
&lt;/span&gt;&lt;span class=&quot;gp&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongo&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;클라이언트로 접속해 mongoDB 데이터베이스 관리자&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;admin&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;추가해서, 사용자 롤로&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;userAdminAnyDatabase&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;롤을 추가해준다.&lt;/span&gt;&lt;/p&gt;&lt;h4 id=&quot;mongodb-26-이후-관리자-계정-추가&quot; style=&quot;box-sizing: border-box; margin: 2em 0px 0.5em; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 1.25em; color: rgb(73, 78, 82);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongoDB 2.6 이후 관리자 계정 추가&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongoDB 2.6 이후는&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.createUser()&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;로 사용자를 추가한다.&amp;nbsp;&lt;/span&gt;&lt;span id=&quot;fnref:2&quot; style=&quot;box-sizing: border-box; position: relative; font-size: 15px; line-height: 0; vertical-align: baseline; top: -0.5em;&quot;&gt;&lt;a href=&quot;https://blog.thinkbee.kr/linux/database/mongodb-user-auth/#fn:2&quot; class=&quot;footnote&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;1&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;다음은 admin 데이터베이스에서 사용자를 관리하는 admin 계정을 생성하고 있다.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;language-terminal highlighter-rouge&quot; style=&quot;box-sizing: border-box; position: relative; margin-bottom: 1em; background: rgb(38, 50, 56); color: rgb(238, 255, 255); font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; font-size: 0.75em; line-height: 1.8; border-radius: 4px;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;box-sizing: border-box; orphans: 3; widows: 3; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; overflow-x: auto; transition: all 0.2s ease-in-out 0s; width: 821px; margin-top: 0px; margin-bottom: 0px; padding: 1em;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace;&quot;&gt;&lt;span class=&quot;gp&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; db.createUser&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;({&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; user:&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;'admin'&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;, 
&lt;/span&gt;&lt;span class=&quot;go&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;                   pwd:'****', 
                   roles:['userAdminAnyDatabase']
               })
Successfully added user: { &quot;user&quot; : &quot;admin&quot;, &quot;roles&quot; : [ &quot;userAdminAnyDatabase&quot; ] }
&lt;/span&gt;&lt;span class=&quot;gp&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;gp&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; db.getUsers&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; // 데이터베이스 사용자 확인
&lt;/span&gt;&lt;span class=&quot;go&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;[
    {
        &quot;_id&quot; : &quot;admin.admin&quot;,
        &quot;user&quot; : &quot;admin&quot;,
        &quot;db&quot; : &quot;admin&quot;,
        &quot;roles&quot; : [
            {
                &quot;role&quot; : &quot;userAdminAnyDatabase&quot;,
                &quot;db&quot; : &quot;admin&quot;
            }
        ]
    }
]
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;h4 id=&quot;mongodb-24-이전-관리자-계정-추가&quot; style=&quot;box-sizing: border-box; margin: 2em 0px 0.5em; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 1.25em; color: rgb(73, 78, 82);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongoDB 2.4 이전 관리자 계정 추가&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongoDB 2.4 까지는 새로운 사용자는&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.addUser()&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;로 추가한다.&lt;/span&gt;&lt;span id=&quot;fnref:1&quot; style=&quot;box-sizing: border-box; position: relative; font-size: 15px; line-height: 0; vertical-align: baseline; top: -0.5em;&quot;&gt;&lt;a href=&quot;https://blog.thinkbee.kr/linux/database/mongodb-user-auth/#fn:1&quot; class=&quot;footnote&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;2&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;language-terminal highlighter-rouge&quot; style=&quot;box-sizing: border-box; position: relative; margin-bottom: 1em; background: rgb(38, 50, 56); color: rgb(238, 255, 255); font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; font-size: 0.75em; line-height: 1.8; border-radius: 4px;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;box-sizing: border-box; orphans: 3; widows: 3; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; overflow-x: auto; transition: all 0.2s ease-in-out 0s; width: 821px; margin-top: 0px; margin-bottom: 0px; padding: 1em;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace;&quot;&gt;&lt;span class=&quot;gp&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; mongo     // mongo client 로 접속
&lt;/span&gt;&lt;span class=&quot;gp&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;use admin  // admin DB 사용
&lt;/span&gt;&lt;span class=&quot;gp&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.addUser&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; user: &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;&amp;lt;username&amp;gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;, // admin name
&lt;/span&gt;&lt;span class=&quot;gp&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;              pwd: &quot;&amp;lt;password&amp;gt;&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;,
&lt;/span&gt;&lt;span class=&quot;go&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;              roles: [ &quot;userAdminAnyDatabase&quot; ] // Database role
          } )
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;blockquote style=&quot;box-sizing: border-box; orphans: 3; widows: 3; margin: 2em 1em 2em 0px; padding-left: 1em; padding-right: 1em; font-style: italic; border-left-width: 0.25em; border-left-color: rgb(122, 130, 136); transition: all 0.2s ease-in-out 0s; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 20px;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; transition: all 0.2s ease-in-out 0s; font-size: 1em;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongoDB 2.6까지 32bit 버전을 지원하고 있다.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;관리자 계정을 만든후 MongoDB에&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongo&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;클라이언트로 인증 로그인을 한 후에 데이터베이스를 생성하고 해당 데이터베이스 사용자에 접근 권한을 추가해 준다.&lt;/span&gt;&lt;/p&gt;&lt;h3 id=&quot;데이터-베이스-생성과-롤-기반-인증&quot; style=&quot;box-sizing: border-box; margin: 2em 0px 0.5em; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 1.563em; color: rgb(73, 78, 82);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;데이터 베이스 생성과 롤 기반 인증&lt;/span&gt;&lt;/h3&gt;&lt;h4 id=&quot;관리자-로그인&quot; style=&quot;box-sizing: border-box; margin: 2em 0px 0.5em; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 1.25em; color: rgb(73, 78, 82);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;관리자 로그인&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;이제 데이터베이스 관리자 계정으로 로그인해서 사용하려는 데이터베이스를&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;use&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;로 선택하고 해당 데이터베이스 사용자를 추가해준다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongo&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;클라이언트 로그인시&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;-u &amp;lt;username&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;-p &amp;lt;password&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;와&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;--authenticationDatabase &amp;lt;database&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;를 지정해 주어야 한다.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;language-sh highlighter-rouge&quot; style=&quot;box-sizing: border-box; position: relative; margin-bottom: 1em; background: rgb(38, 50, 56); color: rgb(238, 255, 255); font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; font-size: 0.75em; line-height: 1.8; border-radius: 4px;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;box-sizing: border-box; orphans: 3; widows: 3; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; overflow-x: auto; transition: all 0.2s ease-in-out 0s; width: 821px; margin-top: 0px; margin-bottom: 0px; padding: 1em;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace;&quot;&gt;&lt;span class=&quot;nv&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;$ &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongo &lt;/span&gt;&lt;span class=&quot;nt&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;--port&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; 27017 &lt;/span&gt;&lt;span class=&quot;nt&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;-u&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;admin&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;-p&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;****&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;--authenticationDatabase&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;admin&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
MongoDB shell version v3.4.0
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.0
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;혹은 인증없이&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongo&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;클라이언트로 데이터베이스에 접속한 후에&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.auth()&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;명령을 사용할 수 있다.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;language-json highlighter-rouge&quot; style=&quot;box-sizing: border-box; position: relative; margin-bottom: 1em; background: rgb(38, 50, 56); color: rgb(238, 255, 255); font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; font-size: 0.75em; line-height: 1.8; border-radius: 4px;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;box-sizing: border-box; orphans: 3; widows: 3; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; overflow-x: auto; transition: all 0.2s ease-in-out 0s; width: 821px; margin-top: 0px; margin-bottom: 0px; padding: 1em;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace;&quot;&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;use&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;admin&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;switched&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;admin&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;db.auth(&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;admin&quot;&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;****&quot;&lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;show&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;users&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;_id&quot;&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;ObjectId(&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;5733676238ac1ddf4cf745c2&quot;&lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;user&quot;&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;admin&quot;&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;readOnly&quot;&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;pwd&quot;&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;24413999168dccff96dcc735720c85ce&quot;&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;이제 각 데이터베이스에 사용자를 생성해서 사용해서 인증한 사용자만 데이터베이스를 사용하게 할 수 있다.&lt;/span&gt;&lt;/p&gt;&lt;h3 id=&quot;database-사용자-추가&quot; style=&quot;box-sizing: border-box; margin: 2em 0px 0.5em; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 1.563em; color: rgb(73, 78, 82);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Database 사용자 추가&lt;/span&gt;&lt;/h3&gt;&lt;h4 id=&quot;mongodb-v3x-사용자-관리&quot; style=&quot;box-sizing: border-box; margin: 2em 0px 0.5em; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 1.25em; color: rgb(73, 78, 82);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongoDB v3.x 사용자 관리&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongoDB v2.6 히우는 대부분 mongoDB v3.4와 호환되는 사용자 관리 명령을 사용한다. 여기서는&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/js-user-management/&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;User Management Methods (v3.4)&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;를 참고하고 있다.&lt;/span&gt;&lt;/p&gt;&lt;table style=&quot;box-sizing: border-box; orphans: 3; widows: 3; margin-bottom: 1em; width: 821px; font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 0.75em; border-collapse: collapse; color: rgb(73, 78, 82);&quot;&gt;&lt;thead style=&quot;box-sizing: border-box; background-color: rgb(242, 243, 243); border-bottom: 2px solid rgb(182, 182, 182);&quot;&gt;&lt;tr style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; vertical-align: middle;&quot;&gt;&lt;th style=&quot;box-sizing: border-box; padding: 0.5em; text-align: left; vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Name&lt;/span&gt;&lt;/th&gt;&lt;th style=&quot;box-sizing: border-box; padding: 0.5em; text-align: left; vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Description&lt;/span&gt;&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody style=&quot;box-sizing: border-box;&quot;&gt;&lt;tr style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; vertical-align: middle;&quot;&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.auth()&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;데이터베이스에 사용자 인증&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; vertical-align: middle;&quot;&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.createUser()&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Creates a new user.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; vertical-align: middle;&quot;&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.updateUser()&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Updates user data.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; vertical-align: middle;&quot;&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.changeUserPassword()&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;사용자 패스워드 변경&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; vertical-align: middle;&quot;&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.dropAllUsers()&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;데이터베이스에 관련된 모든 사용자를 삭제한다.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; vertical-align: middle;&quot;&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.dropUser()&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;한 사용자를 삭제한다&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; vertical-align: middle;&quot;&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.grantRolesToUser()&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;롤과 권한을 사용자에 허용한다&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; vertical-align: middle;&quot;&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.revokeRolesFromUser()&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;사용자에 부여한 롤을 삭제한다&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; vertical-align: middle;&quot;&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.getUser()&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;지정한 사용자의 정보를 반환한다&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; vertical-align: middle;&quot;&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.getUsers()&lt;/span&gt;&lt;/td&gt;&lt;td style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; padding: 0.5em; border-bottom: 1px solid rgb(182, 182, 182); vertical-align: middle;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;데이터베이스에 관련된 모든 사용자의 정보를 반환한다&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h4 id=&quot;createuser&quot; style=&quot;box-sizing: border-box; margin: 2em 0px 0.5em; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 1.25em; color: rgb(73, 78, 82);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;createUser()&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.createUser()&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;는 두 개의 도큐멘트를 인자로 사용한다:&lt;/span&gt;&lt;/p&gt;&lt;blockquote style=&quot;box-sizing: border-box; orphans: 3; widows: 3; margin: 2em 1em 2em 0px; padding-left: 1em; padding-right: 1em; font-style: italic; border-left-width: 0.25em; border-left-color: rgb(122, 130, 136); transition: all 0.2s ease-in-out 0s; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 20px;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; transition: all 0.2s ease-in-out 0s; font-size: 1em;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.createUser(user, writeConcern)&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;여기서&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;user&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;도큐멘트는 아래 같은 형식을 갖는다:&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;language-json highlighter-rouge&quot; style=&quot;box-sizing: border-box; position: relative; margin-bottom: 1em; background: rgb(38, 50, 56); color: rgb(238, 255, 255); font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; font-size: 0.75em; line-height: 1.8; border-radius: 4px;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;box-sizing: border-box; orphans: 3; widows: 3; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; overflow-x: auto; transition: all 0.2s ease-in-out 0s; width: 821px; margin-top: 0px; margin-bottom: 0px; padding: 1em;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace;&quot;&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;user&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;&amp;lt;name&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;pwd&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;&amp;lt;cleartext password&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;customData&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;lt;any&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;information&amp;gt;&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;roles&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;role&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;&amp;lt;role&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;&amp;lt;database&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;&amp;lt;role&amp;gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;err&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;ul style=&quot;box-sizing: border-box; orphans: 3; widows: 3; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 20px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; margin-bottom: 0.5em; font-size: 1em;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;customData&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;: 선택적으로 추가할 정보를 담은 도큐멘트.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;다음은&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;product&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;데이터베이스로 전환해서&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;product&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;데이터베이스 사용자를 추가하고 있다.&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;customeData&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;를 주목하자.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;language-terminal highlighter-rouge&quot; style=&quot;box-sizing: border-box; position: relative; margin-bottom: 1em; background: rgb(38, 50, 56); color: rgb(238, 255, 255); font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; font-size: 0.75em; line-height: 1.8; border-radius: 4px;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;box-sizing: border-box; orphans: 3; widows: 3; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; overflow-x: auto; transition: all 0.2s ease-in-out 0s; width: 821px; margin-top: 0px; margin-bottom: 0px; padding: 1em;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace;&quot;&gt;&lt;span class=&quot;gp&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0); font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; use products
&lt;/span&gt;&lt;span class=&quot;go&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;db.createUser( { user: &quot;user1&quot;,
                 pwd: &quot;changeMe&quot;,
                 customData: { employeeId: 12345 }, // prducts 
                 roles: [ { role: &quot;clusterAdmin&quot;, db: &quot;admin&quot; },
                          { role: &quot;readAnyDatabase&quot;, db: &quot;admin&quot; },
                          &quot;readWrite&quot;] },
               { w: &quot;majority&quot; , wtimeout: 5000 } )
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;다양한 사례는&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/db.createUser/#examples&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;createUser() Exmaple&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;를 참고하자.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongoDB v2.4는 사용자 추가 방법이 조금 다르다.&lt;/span&gt;&lt;/p&gt;&lt;h4 id=&quot;mongodb-v24-사용자-추가&quot; style=&quot;box-sizing: border-box; margin: 2em 0px 0.5em; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 1.25em; color: rgb(73, 78, 82);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongoDB v2.4 사용자 추가&lt;/span&gt;&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;사용하려는 데이터베이스의 계정으로 접근제어를 추가해 주어야 한다. mongoDB 2.4 까지는 새로운 사용자는&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;db.addUser()&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;로 추가한다.&lt;/span&gt;&lt;span id=&quot;fnref:3&quot; style=&quot;box-sizing: border-box; position: relative; font-size: 15px; line-height: 0; vertical-align: baseline; top: -0.5em;&quot;&gt;&lt;a href=&quot;https://blog.thinkbee.kr/linux/database/mongodb-user-auth/#fn:3&quot; class=&quot;footnote&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;3&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;아래는 데이터베이스 관리자 계정&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;admin&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;으로 로그인해서, 필요하면 students 데이터베이스를 생성합니다. 그리고 students 데이터베이스 사용자&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;student&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;계정을 추가하고 있다.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;language-js highlighter-rouge&quot; style=&quot;box-sizing: border-box; position: relative; margin-bottom: 1em; background: rgb(38, 50, 56); color: rgb(238, 255, 255); font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; font-size: 0.75em; line-height: 1.8; border-radius: 4px;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;box-sizing: border-box; orphans: 3; widows: 3; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; overflow-x: auto; transition: all 0.2s ease-in-out 0s; width: 821px; margin-top: 0px; margin-bottom: 0px; padding: 1em;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace;&quot;&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;use&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;students&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;switched&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;to&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;students&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;addUser&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;'student'&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;'****'&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;user&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;student&quot;&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;readOnly&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;pwd&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;7a70591507db46bdd3df47a213d8922f&quot;&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;_id&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;ObjectId&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;57336a71c1ef2bed6688d296&quot;&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;auth&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;'student'&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;'012345'&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;student&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;save&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;({&lt;/span&gt;&lt;span class=&quot;na&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;'qkboo'&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;na&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;class&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;'Database'&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;na&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;grade&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s1&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;'A'&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;})&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;student&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;find&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;()&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;_id&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;ObjectId&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;57336b7d1be9091521cbeb36&quot;&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;name&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;qkboo&quot;&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;class&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;IoT&quot;&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;grade&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;A&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;이제&amp;nbsp;&lt;/span&gt;&lt;code class=&quot;highlighter-rouge&quot; style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; padding-top: 0.1rem; padding-bottom: 0.1rem; font-size: 0.75em; background: rgb(250, 250, 250); border-radius: 4px;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongo&lt;/span&gt;&lt;/code&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;클라이언트로 생성한&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;students&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;에 데이터베이스 사용자&amp;nbsp;&lt;/span&gt;&lt;em style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;student&lt;/span&gt;&lt;/em&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;로 로그인한다.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;language-sh highlighter-rouge&quot; style=&quot;box-sizing: border-box; position: relative; margin-bottom: 1em; background: rgb(38, 50, 56); color: rgb(238, 255, 255); font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; font-size: 0.75em; line-height: 1.8; border-radius: 4px;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;box-sizing: border-box; orphans: 3; widows: 3; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; overflow-x: auto; transition: all 0.2s ease-in-out 0s; width: 821px; margin-top: 0px; margin-bottom: 0px; padding: 1em;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace;&quot;&gt;&lt;span class=&quot;nv&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;$ &lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;mongo student &lt;/span&gt;&lt;span class=&quot;nt&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;-u&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; student &lt;/span&gt;&lt;span class=&quot;nt&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;-p&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;k&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;****&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
MongoDB shell version: 2.4.10
connecting to: student
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;만약 해당 데이터베이스 사용자가 아닌 계정에서 데이터베이스 접근시 다음 같이 인증되지 않은 접근으로 에러를 발생한다.&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;language-js highlighter-rouge&quot; style=&quot;box-sizing: border-box; position: relative; margin-bottom: 1em; background: rgb(38, 50, 56); color: rgb(238, 255, 255); font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; font-size: 0.75em; line-height: 1.8; border-radius: 4px;&quot;&gt;&lt;div class=&quot;highlight&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;pre class=&quot;highlight&quot; style=&quot;box-sizing: border-box; orphans: 3; widows: 3; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace; overflow-x: auto; transition: all 0.2s ease-in-out 0s; width: 821px; margin-top: 0px; margin-bottom: 0px; padding: 1em;&quot;&gt;&lt;code style=&quot;box-sizing: border-box; font-family: Monaco, Consolas, &amp;quot;Lucida Console&amp;quot;, monospace;&quot;&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;mongo&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;MongoDB&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;shell&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;mf&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;2.4&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;connecting&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;to&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;test&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;use&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;student&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;switched&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;to&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;db&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;student&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;dbs&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;Tue&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;Sep&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;27&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;23&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;45&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;mf&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;38.269&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;listDatabases&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;failed&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:{&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;ok&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;errmsg&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&quot;unauthorized&quot;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;at&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;src&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;mongo&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;shell&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;mongo&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;js&lt;/span&gt;&lt;span class=&quot;p&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;mi&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;46&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;o&quot; style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s; color: rgb(0, 0, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;h2 id=&quot;mongodb에-관련-글&quot; style=&quot;box-sizing: border-box; margin: 0.3em 0px; line-height: 1.2; font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 1.953em; transition: all 0.2s ease-in-out 0s; padding-bottom: 0.5em; border-bottom: 1px solid rgb(242, 243, 243); color: rgb(73, 78, 82);&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;MongoDB에 관련 글&lt;/span&gt;&lt;/h2&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;MongoDB Community Edition&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;시리즈:&lt;/span&gt;&lt;/p&gt;&lt;ol style=&quot;box-sizing: border-box; orphans: 3; widows: 3; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 20px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; margin-bottom: 0.5em; font-size: 1em;&quot;&gt;&lt;a href=&quot;https://blog.thinkbee.kr/linux/database/mongodb-3.4-install-armv8/&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Install MongoDB Community Edition 3.4 for Arm64&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; margin-bottom: 0.5em; font-size: 1em;&quot;&gt;&lt;a href=&quot;https://blog.thinkbee.kr/linux/database/mongodb-3.6-install/&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Install MongoDB Community Edition 3.6&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; margin-bottom: 0.5em; font-size: 1em;&quot;&gt;&lt;a href=&quot;https://blog.thinkbee.kr/linux/database/mongodb-user-auth/&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;MongoDB User Authentication&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; orphans: 3; widows: 3; transition: all 0.2s ease-in-out 0s; font-size: 20px; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box; transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;MongoDB 관련&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;/p&gt;&lt;ul style=&quot;box-sizing: border-box; orphans: 3; widows: 3; color: rgb(73, 78, 82); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 20px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; margin-bottom: 0.5em; font-size: 1em;&quot;&gt;&lt;a href=&quot;http://www.mongodb.org/display/DOCS/Tutorial&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;MongoDB Tutorial&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;footnotes&quot; style=&quot;box-sizing: border-box; color: rgb(155, 161, 166); font-family: -apple-system, BlinkMacSystemFont, Roboto, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, &amp;quot;Lucida Grande&amp;quot;, Arial, sans-serif; font-size: 20px;&quot;&gt;&lt;ol style=&quot;box-sizing: border-box; orphans: 3; widows: 3; margin-bottom: 0px; font-size: 0.75em;&quot;&gt;&lt;li id=&quot;fn:2&quot; style=&quot;box-sizing: border-box; margin-bottom: 0px; font-size: 1em;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; transition: all 0.2s ease-in-out 0s; font-size: 1em;&quot;&gt;&lt;a href=&quot;https://docs.mongodb.com/v2.6/tutorial/enable-authentication-without-bypass/&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Enable Authentication after Creating the User Administrator(v2.6)&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://blog.thinkbee.kr/linux/database/mongodb-user-auth/#fnref:2&quot; class=&quot;reversefootnote&quot; style=&quot;box-sizing: border-box; color: rgb(122, 130, 136); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;↩&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li id=&quot;fn:1&quot; style=&quot;box-sizing: border-box; margin-bottom: 0px; font-size: 1em;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; transition: all 0.2s ease-in-out 0s; font-size: 1em;&quot;&gt;&lt;a href=&quot;https://docs.mongodb.com/v2.4/tutorial/add-user-administrator/&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Add User Administrator(v2.4 )&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://blog.thinkbee.kr/linux/database/mongodb-user-auth/#fnref:1&quot; class=&quot;reversefootnote&quot; style=&quot;box-sizing: border-box; color: rgb(122, 130, 136); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;↩&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li id=&quot;fn:3&quot; style=&quot;box-sizing: border-box; margin-bottom: 0px; font-size: 1em;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 1.3em; margin-left: 0px; transition: all 0.2s ease-in-out 0s; font-size: 1em;&quot;&gt;&lt;a href=&quot;https://docs.mongodb.com/v2.4/tutorial/add-user-to-database/&quot; style=&quot;box-sizing: border-box; color: rgb(125, 194, 214); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;Add User To Database(v2.4)&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://blog.thinkbee.kr/linux/database/mongodb-user-auth/#fnref:3&quot; class=&quot;reversefootnote&quot; style=&quot;box-sizing: border-box; color: rgb(122, 130, 136); transition: all 0.2s ease-in-out 0s;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0);&quot;&gt;↩&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;출처 :&amp;nbsp;https://blog.thinkbee.kr/linux/database/mongodb-user-auth/&lt;/p&gt;</description>
      <category>DB</category>
      <author>ian_hodge</author>
      <guid isPermaLink="true">https://emong.tistory.com/237</guid>
      <comments>https://emong.tistory.com/237#entry237comment</comments>
      <pubDate>Wed, 13 Mar 2019 12:12:22 +0900</pubDate>
    </item>
    <item>
      <title>mongodb 외부접속</title>
      <link>https://emong.tistory.com/236</link>
      <description>&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;우분투에 설치한 몽고디비를 외부에서 접속하게 하려면&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;방화벽 설정 외에도&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;몽고디비 설정 파일에 들어가&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;접속 허용 아이피를 변경해주어야 합니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;기본적으로는 127.0.0.1 만 접속 가능하게 해놨습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;margin: 0px; padding: 10px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; font-size: 14px; border-style: solid; border-width: 1px; border-color: rgb(238, 238, 238); background-color: rgb(238, 238, 238);&quot;&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;$ vi /etc/mongod.conf&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;다음 명령어로 설정파일을 수정해줍시다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;margin: 0px; padding: 10px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; font-size: 14px; border-style: solid; border-width: 1px; border-color: rgb(238, 238, 238); background-color: rgb(238, 238, 238);&quot;&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;bind_ip = 127.0.0.1&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;루프백 주소로 설정이 되어 있습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;이것을&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;color: rgb(255, 0, 0); font-size: 12pt;&quot;&gt;bind_ip = 0.0.0.0&lt;/span&gt;&lt;span style=&quot;color: rgb(255, 0, 0); font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;으로 바꿔서 어디서든 외부접속이 가능하게 합니다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;혹은 특정 ip만 접속 허용하게 하고 싶으면&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;콤마(,)를 이용해서 ip 주소를 나열해주면 됩니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;설정이 끝났다면&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;margin: 0px; padding: 10px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; font-size: 14px; border-style: solid; border-width: 1px; border-color: rgb(238, 238, 238); background-color: rgb(238, 238, 238);&quot;&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;$ sudo systemctl restart mongod&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;재실행 명령어 사용하면 됩니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;그런다음 포트가 제대로 바인딩 되었는지 확인해주시면 됩니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;margin: 0px; padding: 10px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; font-size: 14px; border-style: solid; border-width: 1px; border-color: rgb(238, 238, 238); background-color: rgb(238, 238, 238);&quot;&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;$ netstat -tnlp&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;번외로 실행 중인 프로세스 확인 명령은 다음과 같습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class=&quot;txc-textbox&quot; style=&quot;margin: 0px; padding: 10px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; font-size: 14px; border-style: solid; border-width: 1px; border-color: rgb(238, 238, 238); background-color: rgb(238, 238, 238);&quot;&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;ps -ef | grep 프로세스 이름&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;몽고디비가 제대로 실행되고 있는지 확인하고 ip 설정이 제대로 되었는지 확인 하시면 됩니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;몽고디비 설치와 방화벽 설정은 이전글에 나와있습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;그리고 mysql에서는 개발툴(IDE)을 toad for mysql을 자주 사용했는데&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;mongodb는 robomongo란 녀석을 많이 쓴다더군요.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;링크 걸어둘게요. 참고하시기 바랍니당.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;a href=&quot;https://robomongo.org/download&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot; style=&quot;color: rgb(107, 172, 206);&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;https://robomongo.org/download&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;이 글을 포스팅하는데 참조한 블로그&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;margin-right: auto; margin-bottom: 28px; margin-left: auto; padding-right: 0px; padding-left: 0px; font-size: 16px; line-height: 28px; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;ul style=&quot;margin: 0px auto 32px; padding: 0px 0px 0px 10px; list-style: square; color: rgb(92, 92, 92); font-family: &amp;quot;Spoqa Han Sans&amp;quot;, sans-serif; font-size: 14px;&quot;&gt;&lt;li style=&quot;margin: 0px 0px 10px 24px; padding: 0px; list-style: disc;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;a href=&quot;http://ngee.tistory.com/372&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot; style=&quot;color: rgb(107, 172, 206);&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;http://ngee.tistory.com/372&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;margin: 0px 0px 10px 24px; padding: 0px; list-style: disc;&quot;&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;a class=&quot;vglnk&quot; href=&quot;https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_%ED%8F%AC%ED%8A%B8_%ED%94%84%EB%A1%9C%EC%84%B8%EC%8A%A4_%EB%AA%A9%EB%A1%9D_%ED%99%95%EC%9D%B8&quot; rel=&quot;nofollow&quot; style=&quot;color: rgb(107, 172, 206);&quot;&gt;https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_%ED%8F%AC%ED%8A%B8_%ED%94%84%EB%A1%9C%EC%84%B8%EC%8A%A4_%EB%AA%A9%EB%A1%9D_%ED%99%95%EC%9D%B8&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>DB</category>
      <author>ian_hodge</author>
      <guid isPermaLink="true">https://emong.tistory.com/236</guid>
      <comments>https://emong.tistory.com/236#entry236comment</comments>
      <pubDate>Tue, 12 Mar 2019 21:14:49 +0900</pubDate>
    </item>
    <item>
      <title>aws mysql 외부접속 허용</title>
      <link>https://emong.tistory.com/235</link>
      <description>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;오늘은 AWS로 만든 서버에&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;MySQL 서버 구축과 외부 접속을 허용해보도록 하겠습니다.&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;[ AWS&amp;nbsp;EC2 인스턴스 생성 방법은&amp;nbsp;&lt;a href=&quot;http://luji.tistory.com/6&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot; style=&quot;color: rgb(102, 102, 102);&quot;&gt;http://luji.tistory.com/6&lt;/a&gt;를 참조하세요. ]&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b&gt;순서&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;1. MySQL 설치&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;2. 방화벽 설정&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;3. 외부접속 허용 설정&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;4. 접속 확인&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;1. MySQL 설치&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;- 터미널에 접속했다는 전재하에 진행합니다.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;- 리눅스 명령어로 진행됩니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;▶ sudo su&lt;/span&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;▶ apt-get update&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 673px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/991A99345A511C6F25&quot; width=&quot;673&quot; height=&quot;416&quot; filename=&quot;1.PNG&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;▶ apt-get install mysql-server&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 661px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/991DB3345A511C6F26&quot; width=&quot;661&quot; height=&quot;419&quot; filename=&quot;2.PNG&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 661px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/992137345A511C7025&quot; width=&quot;661&quot; height=&quot;423&quot; filename=&quot;3.PNG&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;[ Y 입력 ]&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 662px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/991A5D345A511C7027&quot; width=&quot;662&quot; height=&quot;420&quot; filename=&quot;4.PNG&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;[ ROOT 계정 비밀번호 입력 ]&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 661px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/991B5B345A511C7126&quot; width=&quot;661&quot; height=&quot;420&quot; filename=&quot;5.PNG&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;[ 비밀번호 재입력 ]&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;▶ mysql -u root p&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;▶ (비밀번호)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 661px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/991DED345A511C7226&quot; width=&quot;661&quot; height=&quot;420&quot; filename=&quot;6.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;[ 설치완료 및 접속 화면 ]&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;2. 방화벽 설정&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;- 자신의 인스턴스에 적용된 보안그룹을 확인합니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 820px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99AB4D355A51201A2B&quot; width=&quot;820&quot; height=&quot;491&quot; filename=&quot;1.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;[ 보안 그룹 이동 ]&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 820px; height: auto; max-width: 100%;&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/99738C4B5A511F8028?download&quot; data-lightbox=&quot;lightbox&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99738C4B5A511F8028&quot; width=&quot;820&quot; height=&quot;491&quot; filename=&quot;2.PNG&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; cursor: pointer; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;[ 적용된 그룹 선택 후 편집 버튼 클릭 ]&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 820px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9975174B5A511F8126&quot; width=&quot;820&quot; height=&quot;469&quot; filename=&quot;4.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;사용자 지정 tcp 선택&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;3306 포트&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;위치 무관 선택 후 저장&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;3. 외부접속 허용 설정&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;- 터미널에 접속했다는 전재하에 진행합니다.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;- 리눅스 명령어로 진행됩니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;▶ sudo su&lt;/span&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;▶ cd /etc/mysql/mysql.conf.d&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px; font-weight: 700;&quot;&gt;▶ vi mysqld.cnf&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 18.6667px; font-weight: 700;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 662px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9927FA4F5A5123682B&quot; width=&quot;662&quot; height=&quot;420&quot; filename=&quot;1.PNG&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;bind-address 값을 0.0.0.0 으로 수정&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;vi 에디터 수정 하는 방법&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;i 키 누르면 수정&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;ctrl + c 로 명령행&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;:wq로 저장후 vi 종료&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;▶ service mysql restart&lt;/span&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;▶ mysql -u root -p&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 663px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/991E334F5A5123692D&quot; width=&quot;663&quot; height=&quot;418&quot; filename=&quot;2.jpg&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b style=&quot;font-size: 13.3333px;&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;▶&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 18.6667px;&quot;&gt;&lt;b&gt;grant all privileges on *.* to root@'%' identified by '루트계정 비밀번호';&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-size: 13.3333px;&quot;&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;4. 접속 확인&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;- mysql workbench 이용&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 820px; height: auto; max-width: 100%;&quot;&gt;&lt;span data-url=&quot;https://t1.daumcdn.net/cfile/tistory/995557435A51248530?download&quot; data-lightbox=&quot;lightbox&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/995557435A51248530&quot; width=&quot;820&quot; height=&quot;535&quot; filename=&quot;3.PNG&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; cursor: pointer; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 803px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/994CA7435A51248633&quot; width=&quot;803&quot; height=&quot;499&quot; filename=&quot;4.PNG&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; clear: none; float: none; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;border: 1px solid rgb(221, 221, 221); padding: 3px; margin: 5px 0px; display: inline-block; width: 819px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/994E75435A51248632&quot; width=&quot;819&quot; height=&quot;537&quot; filename=&quot;5.PNG&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;- 끝 -&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;color: rgb(102, 102, 102); font-family: dotum; font-size: 12px; text-align: center; padding-top: 0px !important; padding-bottom: 0px !important;&quot;&gt;출처:https://luji.tistory.com/7&lt;/p&gt;</description>
      <category>DB</category>
      <author>ian_hodge</author>
      <guid isPermaLink="true">https://emong.tistory.com/235</guid>
      <comments>https://emong.tistory.com/235#entry235comment</comments>
      <pubDate>Tue, 12 Mar 2019 20:23:07 +0900</pubDate>
    </item>
    <item>
      <title>mysql 유저 관리</title>
      <link>https://emong.tistory.com/234</link>
      <description>&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;이번 포스팅은&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;MySQL 접속 계정 관리 와&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;계정 별 권한설정 방법에 대해 알아보겠습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;본문에서 다루는 MySQL 버전은 5.6 버전이며&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;5.7 버전부터 일부 변경 된 사항이 있으므로 참고바랍니다!&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;mysql -u root -p&lt;/b&gt;&amp;nbsp;를 입력하여 MySQL&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;에 접속합니다.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 688px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/226499445843F2F510&quot; width=&quot;688&quot; height=&quot;255&quot; filename=&quot;스크린샷 2016-12-04 오후 7.41.25.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;그 다음, 스키마를 mysql 로 변경하겠습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;use mysql;&lt;/b&gt;&amp;nbsp;&amp;nbsp;를 입력합니다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;지금부턴 SQL 질의문&amp;nbsp;이기 때문에 마지막에 세미콜론(;) 을 붙여주셔야 합니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 582px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/24783E375843F3AF1B&quot; width=&quot;582&quot; height=&quot;120&quot; filename=&quot;스크린샷 2016-12-04 오후 7.43.49.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;mysql 스키마에 테이블 구성을 알아보겠습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;show tables;&amp;nbsp;&lt;/b&gt;를 입력합니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 354px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2243B4345843F40D1C&quot; width=&quot;354&quot; height=&quot;544&quot; filename=&quot;스크린샷 2016-12-04 오후 7.45.19.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;여기서 계정에 관련 된 정보를 관리하는 테이블은&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;user 테이블 입니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;select host, user, password from user;&lt;/b&gt;&amp;nbsp;를 입력하여&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;계정정보를 조회 해보겠습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;-------&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 16px;&quot;&gt;※&amp;nbsp;&lt;b&gt;확인사항&lt;/b&gt;:&amp;nbsp;&lt;b&gt;MySQL 5.7&lt;/b&gt;&amp;nbsp;부터 user 테이블에 password 컬럼이 삭제되고&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 16px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 16px;&quot;&gt;authentication_string 컬럼으로 변경.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;MySQL 5.7 Reference 참고&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://dev.mysql.com/doc/refman/5.7/en/grant-tables.html&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot; style=&quot;transition: all 0.3s ease 0s;&quot;&gt;https://dev.mysql.com/doc/refman/5.7/en/grant-tables.html&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 472px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2250D6385843F4832E&quot; width=&quot;472&quot; height=&quot;202&quot; filename=&quot;스크린샷 2016-12-04 오후 7.47.46.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;현재는 root 계정밖에 존재하지 않습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;그럼 새로운 계정을 하나 추가 해보겠습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;create user '계정아이디'&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;@localhost identified by '비밀번호&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;';&lt;/b&gt;&amp;nbsp;&amp;nbsp;를 입력합니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 578px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2416BD4E5843F6DA31&quot; width=&quot;578&quot; height=&quot;62&quot; filename=&quot;스크린샷 2016-12-04 오후 7.55.48.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;Query OK,&lt;/b&gt;&amp;nbsp;문구가 뜨면 이상없이 계정추가가 되었음 을 말합니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;제대로 추가되었는지&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;select host, user, password from user;&lt;/b&gt;&amp;nbsp;로 조회 해보겠습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 758px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/214F294A5843F76C21&quot; width=&quot;758&quot; height=&quot;216&quot; filename=&quot;스크린샷 2016-12-04 오후 8.00.11.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;정상적으로 추가되었습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;헌데 방금 만든 계정은 localhost(로컬) 에서 만 접속할 수 있습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;즉, 외부IP 에서는 접속할 수 없습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;이 경우 host 를 '%'로 해주면 외부에서의 접속을 허용한다는 설정이 됩니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;방금 전&amp;nbsp;&lt;b&gt;create user '계정아이디'@localhost identified by '비밀번호&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;';&lt;/b&gt;&amp;nbsp;&amp;nbsp;에서&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp;localhost 부분을 지우고 '%'로 변경합니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;create user '계정아이디'@'%' identified by '비밀번호';&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 498px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2573EF4E5843F8A22B&quot; width=&quot;498&quot; height=&quot;61&quot; filename=&quot;스크린샷 2016-12-04 오후 8.05.00.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;host 를 '%' 로 주면 모든 외부 IP에서 접속할 수 있습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;만약 특정 IP 대역에서만 접속하게 설정하려면 'IP대역.&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;%' &amp;nbsp;로 주면 됩니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;예) '172.168.%' &amp;nbsp;-&amp;gt; IP 가 172.168.xxx.xxx&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp; 에서만 접속 가능&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;이번엔&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp;계정을&amp;nbsp;&lt;b&gt;삭제&lt;/b&gt;하는 방법에 대해&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;알아보겠습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 669px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2222B0455843FB8702&quot; width=&quot;669&quot; height=&quot;282&quot; filename=&quot;스크린샷 2016-12-04 오후 8.17.31.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;빨간 테두리가 계정 삭제를 하는 SQL 질의 입니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;delete from user where user='dubbingLee&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;';&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;계정ID가 dubbingLee 인 아이디를 찾아서 삭제.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 413px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/22630D3D5843FBFB0C&quot; width=&quot;413&quot; height=&quot;202&quot; filename=&quot;스크린샷 2016-12-04 오후 8.20.08.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;정상적으로 삭제되었습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;아까는 특정&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;IP 일 경우 접속가능하게 제한하는 설정만 해봤는데&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;해당 계정이 특정 스키마에 만 접근할 수 있게&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp;권한을 부여할 수도 있습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;스키마 권한 제어에는&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp;SQL 명령어 중&amp;nbsp;&lt;b&gt;DCL (Data Control Language)&lt;/b&gt;&amp;nbsp;이 사용됩니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;*DCL 종류에는 GRANT 와 REVOKE 이 있습니다.&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;create schema testDB;&lt;/b&gt;&amp;nbsp;를 입력하여&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;testDB 스키마를 만든 뒤,&amp;nbsp;&lt;b&gt;use testDB;&lt;/b&gt;&amp;nbsp;를 입력하여&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;사용 스키마 변경을 하겠습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 318px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/274C69445843FD371F&quot; width=&quot;318&quot; height=&quot;95&quot; filename=&quot;스크린샷 2016-12-04 오후 8.25.18.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;그 다음,&amp;nbsp;&lt;b&gt;grant all privilege&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;s on '스키마명&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;'.'테이블명' to '&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&lt;b&gt;계정명'@'호스트' identified by '계정비밀번호' with grant option;&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;을&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;입력하여 특정 스키마의&amp;nbsp;테이블에만 접근할 수 있는 계정을 만들겠습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 823px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/267B7E425843FE0A01&quot; width=&quot;823&quot; height=&quot;48&quot; filename=&quot;스크린샷 2016-12-04 오후 8.28.03.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;위 질의문은 dubbingLee 계정을 만들고, 외부 IP에서 접속가능하며,&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp;해당 계정권한을 testDB 스키마에 모든 테이블에서 select, insert, update, delete 할 수 있게 한다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;입니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;*만약 계정에&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp;select(조회) 권한만 주고 싶다면 다음과 같이 입력하면 됩니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;grant&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;select&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp;privileges on 'DB명&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;'.'테이블명' to '&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;계정명'@'%' identified by '계정비밀번호' with grant option;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;flush privileges; 를 입력하여 권한 적용을 합니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;권한이 제대로 부여됐는지 확인 해보겠습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;show grants for '계정명&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;'@'호스트&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;';&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;를 입력합니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 774px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/23713D4E5844E4BF1F&quot; width=&quot;774&quot; height=&quot;124&quot; filename=&quot;스크린샷 2016-12-05 오후 12.52.57.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;조회한 계정의 권한이 나왔습니다.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;방금 위에서 설정한 권한이 제대로 적용된 걸 확인하였습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;계정에 부여된 권한을 제거하는 방법에 대해 알아보겠습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;revoke all on '스키마명&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;'.'테이블명' from '계정명&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;'@'호스트';&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp;를 입력합니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 439px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/240ADC425844E61328&quot; width=&quot;439&quot; height=&quot;49&quot; filename=&quot;스크린샷 2016-12-05 오후 12.58.55.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;권한이 제대로 제거됐는지 확인 해보겠습니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;show grants for '계정명&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;'@'호스트&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;';&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;&amp;nbsp;&amp;nbsp;를 입력합니다.&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;box-sizing: border-box; display: inline-block; width: 798px; height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2127F5405844E6E52C&quot; width=&quot;798&quot; height=&quot;131&quot; filename=&quot;스크린샷 2016-12-05 오후 1.02.10.png&quot; filemime=&quot;image/jpeg&quot; style=&quot;border: 0px; max-width: 100%; height: auto;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;처음에 설정한 권한이 빠진 것을 확인하였습니다.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241); text-align: center;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-size: 12pt;&quot;&gt;# 잘못된 내용이 있으면 댓글 남겨주세요~&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241);&quot;&gt;&lt;br style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241);&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241);&quot;&gt;출처:&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://2dubbing.tistory.com/13&quot; style=&quot;transition: all 0.3s ease 0s; font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241);&quot;&gt;https://2dubbing.tistory.com/13&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Ubuntu Condensed&amp;quot;, &amp;quot;Noto Sans Korean&amp;quot;; font-size: 14px; background-color: rgb(241, 241, 241);&quot;&gt;&amp;nbsp;[비실이의 개발공간]&lt;/span&gt;&lt;/p&gt;</description>
      <category>DB</category>
      <author>ian_hodge</author>
      <guid isPermaLink="true">https://emong.tistory.com/234</guid>
      <comments>https://emong.tistory.com/234#entry234comment</comments>
      <pubDate>Tue, 12 Mar 2019 20:17:28 +0900</pubDate>
    </item>
    <item>
      <title>mongoDB argeegation개념</title>
      <link>https://emong.tistory.com/233</link>
      <description>&lt;div class=&quot;cell border-box-sizing text_cell rendered&quot; style=&quot;box-sizing: border-box; padding: 4px; color: rgb(119, 119, 119); font-family: &amp;quot;News Cycle&amp;quot;, &amp;quot;Arial Narrow Bold&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;inner_cell&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;text_cell_render border-box-sizing rendered_html&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;h2 id=&quot;1.-mongoDB-aggregation-사용법-익히기&quot; style=&quot;box-sizing: border-box; font-family: Raleway, sans-serif; line-height: 28px; color: rgb(97, 97, 97); margin-top: 0px; margin-bottom: 10px; font-size: 22px;&quot;&gt;1. mongoDB aggregation 사용법 익히기&lt;a class=&quot;anchor-link&quot; href=&quot;https://www.fun-coding.org/mongodb_advanced1.html#1.-mongoDB-aggregation-%EC%82%AC%EC%9A%A9%EB%B2%95-%EC%9D%B5%ED%9E%88%EA%B8%B0&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(63, 141, 191); transition: all 200ms ease-in 0s; padding: 0px 20px; visibility: hidden;&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;cell border-box-sizing text_cell rendered&quot; style=&quot;box-sizing: border-box; padding: 4px; color: rgb(119, 119, 119); font-family: &amp;quot;News Cycle&amp;quot;, &amp;quot;Arial Narrow Bold&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;prompt input_prompt&quot; style=&quot;box-sizing: border-box; color: firebrick;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;inner_cell&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;text_cell_render border-box-sizing rendered_html&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;ul style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; padding: 0px 0px 0px 18px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;기존의 find로는 원하는 데이터로 가공하는데 어려움&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;빅데이터를 다루려면 새로운 데이터 가공 방식이 필요&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;mongodb aggregation을 사용하면 documents를 grouping, filtering 등 다양한 연산을 적용할 수 있음&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;mongodb aggregation 기본 개념:&lt;ul style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px 0px 0px 18px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;Shard를 통하여 BigData를 저장하고, Aggragation Framework을 통하여 BigData를 처리&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;MongoDB의 Aggregation은 Sharding 기반의 데이터를 효율적으로 처리하고 집계하는 프레임워크라고 이해하면 됨&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;documents를 grouping, filtering 등 다양한 연산을 적용하여 계산된 결과를 반환&lt;ul style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px 0px 0px 18px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;주요 mongodb aggregation operators:&lt;ul style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px 0px 0px 18px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;예) filtering, like operation, transforming&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;&lt;a href=&quot;https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#aggregation-expressions&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(63, 141, 191); transition: all 200ms ease-in 0s;&quot;&gt;https://docs.mongodb.com/manual/meta/aggregation-quick-reference/#aggregation-expressions&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;cell border-box-sizing text_cell rendered&quot; style=&quot;box-sizing: border-box; padding: 4px; color: rgb(119, 119, 119); font-family: &amp;quot;News Cycle&amp;quot;, &amp;quot;Arial Narrow Bold&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;prompt input_prompt&quot; style=&quot;box-sizing: border-box; color: firebrick;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;inner_cell&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;text_cell_render border-box-sizing rendered_html&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;ul style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; padding: 0px 0px 0px 18px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;Aggregation Framework Pipeline (mongodb aggregation 방식)&lt;ul style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px; padding: 0px 0px 0px 18px;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;Unix의 pipe와 같은 방식으로 데이터를 처리하는 방식&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; line-height: 25px;&quot;&gt;document를 여러 단계의 파이프라인으로 처리해서, 데이터를 처리/집계한다고 이해하면 됨&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;cell border-box-sizing text_cell rendered&quot; style=&quot;box-sizing: border-box; padding: 4px; color: rgb(119, 119, 119); font-family: &amp;quot;News Cycle&amp;quot;, &amp;quot;Arial Narrow Bold&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;prompt input_prompt&quot; style=&quot;box-sizing: border-box; color: firebrick;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;inner_cell&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;text_cell_render border-box-sizing rendered_html&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;h3 id=&quot;1.1.-Aggregation-Framework-Pipeline-사용-문법&quot; style=&quot;box-sizing: border-box; font-family: Raleway, sans-serif; line-height: 22px; color: rgb(97, 97, 97); margin-top: 0px; margin-bottom: 10px; font-size: 18px;&quot;&gt;1.1. Aggregation Framework Pipeline 사용 문법&lt;a class=&quot;anchor-link&quot; href=&quot;https://www.fun-coding.org/mongodb_advanced1.html#1.1.-Aggregation-Framework-Pipeline-%EC%82%AC%EC%9A%A9-%EB%AC%B8%EB%B2%95&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(63, 141, 191); transition: all 200ms ease-in 0s; padding: 0px 20px; visibility: hidden;&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;cell border-box-sizing text_cell rendered&quot; style=&quot;box-sizing: border-box; padding: 4px; color: rgb(119, 119, 119); font-family: &amp;quot;News Cycle&amp;quot;, &amp;quot;Arial Narrow Bold&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;prompt input_prompt&quot; style=&quot;box-sizing: border-box; color: firebrick;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;inner_cell&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;text_cell_render border-box-sizing rendered_html&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 10px; margin-left: 0px;&quot;&gt;&lt;img src=&quot;https://www.fun-coding.org/00_Images/mongodb_aggregate_pipeline.png&quot; style=&quot;box-sizing: border-box; border: 0px; vertical-align: middle; max-width: 100%;&quot;&gt;이미지 출처 -&amp;nbsp;&lt;a href=&quot;https://docs.mongodb.com/manual/aggregation/#aggregation-framework&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(63, 141, 191); transition: all 200ms ease-in 0s;&quot;&gt;https://docs.mongodb.com/manual/aggregation/#aggregation-framework&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;cell border-box-sizing text_cell rendered&quot; style=&quot;box-sizing: border-box; padding: 4px; color: rgb(119, 119, 119); font-family: &amp;quot;News Cycle&amp;quot;, &amp;quot;Arial Narrow Bold&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;prompt input_prompt&quot; style=&quot;box-sizing: border-box; color: firebrick;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;inner_cell&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;text_cell_render border-box-sizing rendered_html&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;h3 id=&quot;1.2.-Aggregation-Framework-Pipeline-주요-명령-(SQL과-비교하면-이해가-쉬워짐)&quot; style=&quot;box-sizing: border-box; font-family: Raleway, sans-serif; line-height: 22px; color: rgb(97, 97, 97); margin-top: 0px; margin-bottom: 10px; font-size: 18px;&quot;&gt;1.2. Aggregation Framework Pipeline 주요 명령 (SQL과 비교하면 이해가 쉬워짐)&lt;a class=&quot;anchor-link&quot; href=&quot;https://www.fun-coding.org/mongodb_advanced1.html#1.2.-Aggregation-Framework-Pipeline-%EC%A3%BC%EC%9A%94-%EB%AA%85%EB%A0%B9-(SQL%EA%B3%BC-%EB%B9%84%EA%B5%90%ED%95%98%EB%A9%B4-%EC%9D%B4%ED%95%B4%EA%B0%80-%EC%89%AC%EC%9B%8C%EC%A7%90)&quot; style=&quot;box-sizing: border-box; background: transparent; color: rgb(63, 141, 191); transition: all 200ms ease-in 0s; padding: 0px 20px; visibility: hidden;&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;cell border-box-sizing text_cell rendered&quot; style=&quot;box-sizing: border-box; padding: 4px; color: rgb(119, 119, 119); font-family: &amp;quot;News Cycle&amp;quot;, &amp;quot;Arial Narrow Bold&amp;quot;, sans-serif; font-size: 16px;&quot;&gt;&lt;div class=&quot;prompt input_prompt&quot; style=&quot;box-sizing: border-box; color: firebrick;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;inner_cell&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;div class=&quot;text_cell_render border-box-sizing rendered_html&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;p style=&quot;box-sizing: border-box; margin-right: 0px; margin-bottom: 10px; margin-left: 0px;&quot;&gt;&lt;img src=&quot;https://www.fun-coding.org/00_Images/mongodb_aggregate_sql.png&quot; style=&quot;box-sizing: border-box; border: 0px; vertical-align: middle; max-width: 100%;&quot;&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>DB</category>
      <author>ian_hodge</author>
      <guid isPermaLink="true">https://emong.tistory.com/233</guid>
      <comments>https://emong.tistory.com/233#entry233comment</comments>
      <pubDate>Tue, 26 Feb 2019 17:59:00 +0900</pubDate>
    </item>
  </channel>
</rss>