<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>GoLabs 기술 블로그</title>
    <description>새로운 기술, 인공지능!!
Gost를 사용해보세요.
</description>
    <link>http://golabs7.github.io/</link>
    <atom:link href="http://golabs7.github.io/rss" rel="self" type="application/rss+xml"/>
    <pubDate>Fri, 07 Jun 2019 18:30:16 +0900</pubDate>
    <lastBuildDate>Fri, 07 Jun 2019 18:30:16 +0900</lastBuildDate>
    <generator>Jekyll v3.8.5</generator>
    
      <item>
        <title>VS 2017 linux 프로그래밍 2</title>
        <description>&lt;p&gt;Visual Studio 2017 의 강력한 IDE 기능을 이용한 linux 프로그래밍하기 2&lt;/p&gt;

&lt;h2 id=&quot;open-source-설치하기&quot;&gt;Open Source 설치하기&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;OpenSSL&lt;br /&gt;
&lt;a href=&quot;https://www.openssl.org/source/&quot;&gt;OpenSSL Downloads&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;1. 설치파일 다운로드 하기
# wget https://www.openssl.org/source/old/1.1.1/openssl-1.1.1.tar.gz
# tar xvfz openssl-1.1.1.tar.gz
# cd openssl-1.1.1
# yum install perl
# ./config shared
# make
# make install

openssl의 실행파일 : /usr/local/bin
openssl의 include파일 : /usr/local/include
openssl의 lib파일 : /usr/local/lib

위 경로로 openssl 폴더를 만들고 복사해서 사용하면 VS 2017 intellsense를 자동 감지한다.
인증서비스를 위한 파일 : /usr/local/ssl 에 설치된다.
config를 실행할 때 prefix를 주지 않으면 /usr/local/bin 에 설치된다.
다른 디렉토리에 설치를 하고 싶으면
# ./config --prefix=/usr/local --openssldir=/usr/local/openssl

2. 환경변수 등록하기
# cd
# vi ~/.bash_profile
# export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH

# source ~/.bash_profile
# cp /usr/local/bin/openssl /usr/bin

3. 버전 확인
# openssl version
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;Boost C++ Libraries &lt;br /&gt;
&lt;a href=&quot;https://www.boost.org/users/download/&quot;&gt;Boost Downloads&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# curl -O https://dl.bintray.com/boostorg/release/1.69.0/source/boost_1_69_0.tar.gz
# tar xvfz boost_1_69_0.tar.gz
# ./bootstrap.sh
# ./b2

아래 경로로 파일들을 복사한다
Boost의 include파일 : /usr/local/include/boost
Boost의 lib파일 : /usr/local/lib/boost

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;blockquote&gt;
  &lt;p&gt;VS 2017 CMake error 발생시
Microsoft CMake binary를 다운로드 받는다&lt;br /&gt;
&lt;a href=&quot;https://github.com/Microsoft/CMake/releases&quot;&gt;microsoft/CMake Downloads&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;

  &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;// 스크립트 실행
# chmod +x cmake-3.14.2542820-MSVC_2-Linux-x64.sh
# sh cmake-3.14.2542820-MSVC_2-Linux-x64.sh

// cmake cpack ctest 파일을 /usr/local/bin 로 복사한다
# cp -f ./bin/cmake ./bin/cpack ./bin/ctest /usr/local/bin

// 나머지 파일들은 /usr/local/share/cmake-3.14 로 복사한다
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;  &lt;/div&gt;
&lt;/blockquote&gt;

</description>
        <pubDate>Fri, 07 Jun 2019 16:30:00 +0900</pubDate>
        <link>http://golabs7.github.io/2019/06/07/vs2017_linux_programming2/</link>
        <guid isPermaLink="true">http://golabs7.github.io/2019/06/07/vs2017_linux_programming2/</guid>
        
        <category>Linux</category>
        
        <category>CentOS</category>
        
        <category>C</category>
        
        <category>C++</category>
        
        
      </item>
    
      <item>
        <title>Apache - PHP - MariaDB (APM) 설치 및 설정 방법</title>
        <description>&lt;p&gt;본 포스팅에서는 Centos 7 환경에서 APM을 구성하는 방법에 대해 알아봅니다.&lt;/p&gt;

&lt;h2 id=&quot;amp-이란&quot;&gt;AMP 이란?&lt;/h2&gt;
&lt;p&gt;AMP은 웹사이트나 서버 운영에 자주 같이 쓰이는 다음의 소프트웨어들의 이름을 합한 약자입니다:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Apache (아파치 웹 서버);&lt;br /&gt;
MySQL / MariaDB 데이터베이스 관리 시스템(데이터베이스 서버);&lt;br /&gt;
PHP, Perl, 또는 Python 프로그래밍 언어.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;주로 맨 앞 글자에 운영체제의 약자까지 표기해주는데, 본 포스팅에서는 Linux(Centos 7)를 사용하므로, 최종적으로 LAMP가 됩니다.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Apache(아파치) 설치&lt;br /&gt;
yum 명령을 이용하여 Apcahe를 설치해줍니다. 2019년 6월 3일 현재 기준 최신 4.3.6 Stabled 버전이 설치됩니다.&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  # yum install -y httpd

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Apache 시작 등록&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
  # systemctl enable httpd

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Apache 설치 확인&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
  #  httpd -v

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;php-73-설치&quot;&gt;PHP 7.3 설치&lt;/h2&gt;

&lt;p&gt;&lt;br /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Step 1: Add PHP 7.3 Remi repository &lt;br /&gt;
PHP 7.3 레포지토리를 추가합니다.&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  # yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 
  # yum -y install epel-release yum-utils

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Step 2: Disable repo for PHP 5.4&lt;br /&gt;
기본적으로 PHP 5.4 레포지토리가 활성화 되어있습니다. 이것을 7.3으로 바꿉니다.&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  # yum-config-manager --disable remi-php54
  # yum-config-manager --enable remi-php73
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;PHP 7.3 install&lt;br /&gt;
PHP 7.3과 Extenstion을 설치합니다.&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  # sudo yum -y install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Check version installed&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
  # php -v

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;apache-php-연동&quot;&gt;Apache PHP 연동&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;httpd.conf 수정&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
  # vi /etc/httpd/conf/httpd.conf

  LoadModule php7_module     modules/libphp7.so

  &amp;lt;IfModule dir_module&amp;gt;

      DirectoryIndex index.html index.php

  &amp;lt;/IfModule&amp;gt;

  AddType text/html .shtml
  AddOutputFilter INCLUDES .shtml
  AddType application/x-httpd-php .html .htm .php .inc
  AddType application/x-httpd-php-source .phps

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;phpinfo()로 연동 확인&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
  # vi /var/www/html/phpinfo.php

      &amp;lt;?php phpinfo() ?&amp;gt;
      :q!

  # systemctl restart httpd

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
    &lt;p&gt;localhost로 접속해서 PHP 정보가 출력되면 성공.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;mariadb-설치&quot;&gt;MariaDB 설치&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Repository 추가&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  # vi /etc/yum.repos.d/MariaDB.repo

      # MariaDB 10.3 CentOS repository list - created 2019-01-13 00:47 UTC
      # http://downloads.mariadb.org/mariadb/repositories/
      [mariadb]
      name = MariaDB
      baseurl = http://yum.mariadb.org/10.3/centos7-amd64
      gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
      gpgcheck=1

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;MariaDB 설치&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  # yum install MariaDB-server MariaDB-client

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;초기 보안 설정&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  # sudo mysql_secure_installation
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;root 계정의 비밀번호 설정과 annonymous table을 삭제 할 것인지 묻는 내용임.&lt;br /&gt;
root 계정 비밀번호를 물을 시 그냥 엔터를 입력하면 됨.&lt;br /&gt;
root 계정 비밀번호 설정 후 몇가지 물음에 엔터를 입력하면 설정이 완료됨.&lt;br /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;소켓에러 발생 시 대처&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  # service mysqld stop
  # chmod 755 -R /var/lib/mysql
  # chown mysql:mysql -R /var/lib/mysql
  # service mysqld start
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;소켓 권한 문제로 인한 에러 시 권한, 소유권 변경으로 해결 가능.&lt;/p&gt;

&lt;h2 id=&quot;apache-mariadb-port-설정&quot;&gt;Apache, MariaDB Port 설정&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;SELinux 설정 확인 &lt;br /&gt;
semanage 명령어를 사용해서 확인하고 변경할 수 있다.
명령어 실행이 안될 경우 policycoreutils-python 패키지를 설치해주면 된다.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;semanage 설치&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  # yum install -y policycoreutils-python
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;포트 확인&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  # semanage port -l | grep mysqld_port_t

  # semanage port -l | grep http_port_t

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;SELinux에 포트 등록&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  # semanage port -a -t mysqld_port_t -p tcp 3307

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;확인&lt;/p&gt;

    &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  # semanage port -l | grep mysqld_port_t

  mysqld_port_t tcp 3307, 1186, 3306, 63132-63164
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

</description>
        <pubDate>Mon, 03 Jun 2019 19:30:00 +0900</pubDate>
        <link>http://golabs7.github.io/2019/06/03/APM_install_and_set/</link>
        <guid isPermaLink="true">http://golabs7.github.io/2019/06/03/APM_install_and_set/</guid>
        
        <category>php</category>
        
        <category>MariaDB</category>
        
        <category>Apache</category>
        
        <category>Linux</category>
        
        <category>CentOS</category>
        
        
      </item>
    
      <item>
        <title>VS 2017 linux 프로그래밍 1</title>
        <description>&lt;p&gt;Visual Studio 2017 의 강력한 IDE 기능을 이용한 linux 프로그래밍하기 1&lt;/p&gt;

&lt;h2 id=&quot;가상os--리눅스-centos-7--설치&quot;&gt;가상OS ( 리눅스 CentOS 7 ) 설치&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Windows 10 pro Hyper-V 설치&lt;br /&gt;
제어판 &amp;gt; 프로그램 제거 &amp;gt; windows 기능 켜기/끄기 &amp;gt; Hyper-V 모두체크&lt;br /&gt;
Hyper-V 설치 가능여부 확인&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;CentOS 7 설치&lt;br /&gt;
&lt;a href=&quot;https://www.centos.org/download/&quot;&gt;Download CentOS&lt;/a&gt;&lt;br /&gt;
Hyper-V 관리자에서 가상컴퓨터 새로 만들기&lt;br /&gt;
1세대 또는 2세대 만들기 후 보안 &amp;gt; 보안부팅사용체크해제&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# yum install openssh-server g++ gdb gdbserver zip unzip gcc gcc-c++
# systemctl restart network
# vi /etc/ssh/sshd-config
... 생략 ...
  port 22 // 주석해제
  permitRootLogin yes

# systemctl start sshd.service
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;// 방화벽 설정
# firewall-cmd --zone=public --add-port=22/tcp --permanent
# firewall-cmd --reload
# systemctl restart firewalld.service
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Hyper-V CentOS 7 에 고정 ip 설정하기&lt;br /&gt;
고정 ip로 설정하면 VS 2017 에서 재접속마다 원격 시스템을 바꿔주지 않아도 되므로 편리하다&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;새 가상 네트워크 스위치 만들기&lt;br /&gt;
Hyper-V 관리자 &amp;gt; 가상스위치 관리자 &amp;gt; 새 가상 네트워크 스위치 &amp;gt; 내부 클릭&lt;/li&gt;
      &lt;li&gt;Host OS의 제어판 &amp;gt; 네트워크 및 인터넷 &amp;gt; 네트워크 및 공유센터 &amp;gt; 위에서 만든 가상 스위치 선택 &amp;gt;
인터넷 프로코콜 버전 4(TCP/IP V4) &amp;gt; 속성 클릭&lt;br /&gt;
        &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  ip 주소 192.168.120.1
  서브넷마스크 255.255.255.0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
      &lt;/li&gt;
      &lt;li&gt;네트워크 및 공유센터 &amp;gt; 이더넷 &amp;gt; 속성 &amp;gt; 공유 &amp;gt; 인터넷 연결공유 체크 및 위에서 만든 가상스위치 선택&lt;/li&gt;
      &lt;li&gt;CentOS 7 설정
        &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# vi /etc/sysconfig/network-scripts/ifcfg-eth0
  BOOTPROTO=&quot;none&quot;
  ONBOOT=&quot;yes&quot;
  IPADDR=192.168.120.20
  NETMASK=255.255.255.0
  GATEWAY=192.168.120.1

# vi /etc/sysconfig/network
  NETWORKING=yes
  NETWORKING_IPV6=no

# vi /etc/resolv.conf
  nameserver 168.126.63.1
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
        &lt;blockquote&gt;
          &lt;p&gt;Hyper-V 가상OS 포트 포워딩&lt;br /&gt;
제어판 &amp;gt; 네트워크 및 인터넷 &amp;gt; 네트워크 및 공유 센터 &amp;gt; 이더넷 &amp;gt; 속성 &amp;gt; 공유 &amp;gt; 설정&lt;br /&gt;
고급설정 서비스에서 1706 체크(또는 새로 만들기) &amp;gt;  편집 클릭 &lt;br /&gt;
ip주소 입력 &amp;gt; 확인&lt;/p&gt;
        &lt;/blockquote&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;C++ 14 컴파일러 사용하기&lt;br /&gt;
 gcc/g++ 7.3 upgrade&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# curl https://ftp.gnu.org/gnu/gcc/gcc-7.3.0/gcc-7.3.0.tar.gz -O
# tar xvfz gcc-7.3.0.tar.gz
# yum install gmp-devel mpfr-devel libmpc-devel
# mkdir gcc-7.3.0-build
# cd gcc-7.3.0-build
# ../gcc-7.3.0/configure --enable-languages=c,c++ --disable-multilib
# make -j7
# sudo make install
# sudo mv /usr/bin/gcc /usr/bin/gcc-4.8
# sudo mv /usr/bin/g++ /usr/bin/g++-4.8
# sudo mv /usr/local/bin/gcc /usr/local/bin/gcc-7.3 
# sudo mv /usr/local/bin/g++ /usr/local/bin/g++-7.3 
# sudo update-alternatives --install /usr/bin/gcc gcc /usr/local/bin/gcc-7.3 73 --slave /usr/bin/g++ g++ /usr/local/bin/g++-7.3 
# sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 48 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
# sudo update-alternatives --config gcc

// 확인 코드 작성

# vi test.cpp

#include &amp;lt;iostream&amp;gt;

int main()
{
    auto lambda = [](auto x){
        return x;
        };
    std::cout &amp;lt;&amp;lt; lambda(&quot;Hello lambda!\n&quot;);
    return 0;
}


# g++ -o test.out test.cpp
# ./test.out
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;visual-studio-2017-설정&quot;&gt;Visual Studio 2017 설정&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;원격 시스템 추가&lt;br /&gt;
&lt;a href=&quot;https://docs.microsoft.com/ko-kr/cpp/linux/connect-to-your-remote-linux-computer?view=vs-2019&quot;&gt;원격 Linux 컴퓨터에 연결&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;&lt;code&gt;
메뉴 &amp;gt; 도구 &amp;gt; 옵션 &amp;gt; 플랫폼간 연결 관리자 &amp;gt; 원격시스템 추가

  호스트이름: 192.168.120.20
  이름: root
  암호: root 암호

연결관리자 &amp;gt; 원격 헤더 intellisense 관리자 업데이트 클릭
&lt;/code&gt;&lt;/pre&gt;

&lt;blockquote&gt;
  &lt;ul&gt;
    &lt;li&gt;VS 2017 cmake 빌드하기
&lt;a href=&quot;https://docs.microsoft.com/ko-kr/cpp/build/cmake-projects-in-visual-studio?view=vs-2019&quot;&gt;Visual Studio의 CMake 프로젝트&lt;/a&gt;
&lt;a href=&quot;https://docs.microsoft.com/ko-kr/cpp/linux/cmake-linux-project?view=vs-2019&quot;&gt;Linux CMake 프로젝트 구성&lt;/a&gt;
Linux 머신에서 반드시 CMake 3.8 이상 설치 &lt;a href=&quot;https://golabs7.github.io/2019/06/07/vs2017_linux_programming2/&quot;&gt;참고&lt;/a&gt;
      &lt;ol&gt;
        &lt;li&gt;CMake &amp;gt; 생성&lt;/li&gt;
        &lt;li&gt;CMake &amp;gt; 모두빌드하기&lt;/li&gt;
        &lt;li&gt;빌드된 경로 복사해서 &lt;a href=&quot;http://hputty.org/&quot;&gt;HPuTTY&lt;/a&gt;에서 연 후&lt;br /&gt;
 # make install&lt;/li&gt;
        &lt;li&gt;install된 경로에서 파일 실행
 # ./test.out&lt;/li&gt;
        &lt;li&gt;디버깅시 시작항목 선택에서 target 선택&lt;br /&gt;
접속이 안되면 CentOS 7 방화벽 포트 열기&lt;/li&gt;
      &lt;/ol&gt;
    &lt;/li&gt;
  &lt;/ul&gt;

  &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# firewall-cmd --permanent --zone=public --add-port=10000/tcp
# sudo firewall-cmd --reload
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;  &lt;/div&gt;
&lt;/blockquote&gt;
</description>
        <pubDate>Mon, 03 Jun 2019 15:00:00 +0900</pubDate>
        <link>http://golabs7.github.io/2019/06/03/vs2017_linux_programming/</link>
        <guid isPermaLink="true">http://golabs7.github.io/2019/06/03/vs2017_linux_programming/</guid>
        
        <category>Linux</category>
        
        <category>CentOS</category>
        
        <category>C</category>
        
        <category>C++</category>
        
        
      </item>
    
      <item>
        <title>Jekyll를 이용한 GoLabs 기술 블로그 설치</title>
        <description>&lt;p&gt;본 포스팅에서는 Windows 환경과 Linux(Centos 7) 환경에서 Jekyll 설치와 Github Pages를 이용한 무료 호스팅 방법, 로컬 구동법을 알아보고, 블로그 문서 작성을 위한 간단한 Markdown 문법을 알아봅니다.&lt;/p&gt;

&lt;h2 id=&quot;jekyll지킬-이란&quot;&gt;Jekyll(지킬) 이란?&lt;/h2&gt;
&lt;p&gt;Jekyll은 정적 웹 페이지 생성기입니다. 사용자가 웹 페이지의 내용에 해당되는 마크다운 형식의 텍스트 파일을 작성하면 Jekyll은  작성 된 파일들을 모아 디자인과 기능이 적용 된 html 문서로 변환해 줍니다. Github Pages에는 Jekyll이 내장되어 있습니다. 따라서 사용자는 Jekyll로 만들어진 웹 페이지를 Github 서버에 무료로 호스팅 할 수 있습니다.&lt;/p&gt;

&lt;h2 id=&quot;windows-설치방법&quot;&gt;Windows 설치방법&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;Clone Repository&lt;br /&gt;
적당한 경로에 GoLabs 기술 블로그 Repository를 Clone하고 해당 경로로 이동합니다.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git clone https://github.com/golabs7/golabs7.github.io.git

... 생략 ...

cd golabs7.github.io.git

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Ruby(루비) 설치&lt;br /&gt;
gem 명령을 이용하여 Jekyll을 설치하기 위해 Ruby를 설치해줍니다.
아래 링크로 접속하여 DEVKIT(개발자도구)가 포함 된 2.5.x 이상 버전의 Ruby를 다운로드하여 설치합니다.&lt;br /&gt;
&lt;a href=&quot;https://rubyinstaller.org/downloads/&quot;&gt;—-링크—-&lt;/a&gt;&lt;br /&gt;
설치 패키지를 종료하기 전 화면에서 Dev Chain을 설치하겠냐는 물음에 체크하여 Dev Chain 또한 설치해줍니다.&lt;br /&gt;
잠시 후 나타나는 cmd창에서 3을 입력하여 설치를 진행합니다.&lt;br /&gt;
설치가 끝나면 cmd 창을 닫습니다.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Jekyll 설치&lt;br /&gt;
gem 명령어를 통해 Jekyll과 실행에 필요한 패키지를 설치합니다.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;gem install jekyll

... 생략 ...

gem install bundler

... 생략 ...

bundler install (5분정도 걸립니다.)

... 생략 ...


&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;Jekyll 로컬 서버 구동&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
bundle exec jekyll serve

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Windows에서 Jekyll 구동 시 인코딩 에러가 발생 할 수 있습니다.&lt;br /&gt; 
에러 발생 시 콘솔창에 chcp 65001 입력 후 명령을 실행합니다.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;chcp 65001
bundle exec jekyll serve

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;웹 브라우저 주소창에 localhost:4000을 입력하여 서버에 접속합니다.&lt;/p&gt;

&lt;h2 id=&quot;linux-설치방법&quot;&gt;Linux 설치방법&lt;/h2&gt;

&lt;p&gt;Linux 환경에서 설치하는 방법은 매우 간단합니다. &lt;br /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Clone Repository&lt;br /&gt;
적당한 경로에 GoLabs 기술 블로그 Repository를 Clone하고 해당 경로로 이동합니다.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git clone https://github.com/golabs7/golabs7.github.io.git

... 생략 ...

cd golabs7.github.io.git
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;의존관계에 해당하는 요구조건 충족 확인&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo yum install ruby ruby-dev build-essential
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;위 명령은 Jekyll 구동에 필요한 Ruby 요소들을 자동으로 확인하고 설치해줍니다.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Jekyll 설치&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;gem install jekyll bundler
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;Jekyll 로컬 서버 구동&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
jekyll serve

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;웹 브라우저 주소창에 localhost:4000을 입력하여 서버에 접속합니다.&lt;/p&gt;

&lt;h1 id=&quot;블로그-내용-작성-방법&quot;&gt;블로그 내용 작성 방법&lt;/h1&gt;

&lt;h2 id=&quot;글-쓰기&quot;&gt;글 쓰기&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;_posts&lt;/code&gt; 디렉토리에 &lt;code class=&quot;highlighter-rouge&quot;&gt;yyyy-mm-dd-slug.md&lt;/code&gt; 파일로 복사(or 이동).
    &lt;ul&gt;
      &lt;li&gt;slug: 해당 포스트의 고유 키로 url의 일부로 사용. 왠만하면 특수문자없이 영문자,숫자,-(하이픈),.(점)…만 사용.&lt;/li&gt;
      &lt;li&gt;yyyy,mm,dd: 발행 년,월,일.&lt;/li&gt;
      &lt;li&gt;참고: 최종적으로 포스트의 url(permalink)는 http://tech.inswave.com/yyyy/mm/dd/slug/&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;파일 상단에 [front matter] 작성
    &lt;ul&gt;
      &lt;li&gt;layout: post # 레이아웃(필수). &lt;code class=&quot;highlighter-rouge&quot;&gt;page&lt;/code&gt; 레이아웃을 사용하면 목록에 보이지 않는 글을 쓸 수 있음.&lt;/li&gt;
      &lt;li&gt;title: ‘제목’ # 제목(필수)&lt;/li&gt;
      &lt;li&gt;author: &lt;code class=&quot;highlighter-rouge&quot;&gt;lastname.firstname&lt;/code&gt; # 필자(필수). 왠만하면 회사 아이디(예: iolo.fitzowen) 사용&lt;/li&gt;
      &lt;li&gt;tags: &lt;code class=&quot;highlighter-rouge&quot;&gt;[tag1,tag2,tag3,...]&lt;/code&gt; # 태그 목록(선택). 왠만하면 특수문자없이 영소문자,숫자,-(하이픈),.(점)…만 사용.&lt;/li&gt;
      &lt;li&gt;image: http://… # 커버이미지 url(선택)&lt;/li&gt;
      &lt;li&gt;date: &lt;code class=&quot;highlighter-rouge&quot;&gt;YYYY-MM-DD HH:MM:SS&lt;/code&gt; # 발행일(필수)&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;처음 글을 쓰는 필자이라면 &lt;strong&gt;글쓴이 등록&lt;/strong&gt;(필수)&lt;/li&gt;
  &lt;li&gt;유력한(?) 태그가 새로 등장했다면 &lt;strong&gt;태그 등록&lt;/strong&gt;(선택)&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;필자-등록&quot;&gt;필자 등록&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;_authors&lt;/code&gt; 디렉토리에 &lt;code class=&quot;highlighter-rouge&quot;&gt;lastname.firstname.md&lt;/code&gt; 이름으로 필자 정보 파일 추가
    &lt;ul&gt;
      &lt;li&gt;참고: 최종적으로 사용자 포스트 목록 페이지의 url은 http://tech.inswave.com/authors/lastname.firstname/&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;파일 상단에 [front matter] 작성
    &lt;ul&gt;
      &lt;li&gt;layout: author # 레이아웃(필수)&lt;/li&gt;
      &lt;li&gt;name: &lt;code class=&quot;highlighter-rouge&quot;&gt;lastname.firstname&lt;/code&gt; # post의 author와 매칭(필수). 왠만하면 회사 아이디(예: iolo.fitzowen) 사용. 왠만하면 특수문자없이 영소문자,숫자,-(하이픈),.(점)…만 사용.&lt;/li&gt;
      &lt;li&gt;title: … # 왠만하면 한글이름 사용( 필수)&lt;/li&gt;
      &lt;li&gt;image: http://… # 프로필 이미지(필수)&lt;/li&gt;
      &lt;li&gt;cover: http://… # 작성자 커버 이미지(선택)&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;내용은 필요없음&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&quot;태그-등록&quot;&gt;태그 등록&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;code class=&quot;highlighter-rouge&quot;&gt;_tags&lt;/code&gt; 디렉토리에 &lt;code class=&quot;highlighter-rouge&quot;&gt;tag-name.md&lt;/code&gt; 이름으로 필자 정보 파일 추가
    &lt;ul&gt;
      &lt;li&gt;참고: 최종적으로 사용자 포스트 목록 페이지의 url은 http://tech.inswave.com/tags/tag-name/&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;파일 상단에 [front matter] 작성
    &lt;ul&gt;
      &lt;li&gt;layout: tag # 레이아웃(필수)&lt;/li&gt;
      &lt;li&gt;name: &lt;code class=&quot;highlighter-rouge&quot;&gt;tag-name&lt;/code&gt; # post의 tags 배열의 항목과 매칭(필수). 왠만하면 특수문자없이 영소문자,숫자,-(하이픈),.(점)…만 사용.&lt;/li&gt;
      &lt;li&gt;title: … # 좀 더 길고 구체적인 설명(필수)&lt;/li&gt;
      &lt;li&gt;image: http://… # 태그 이미지(선택)&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;내용은 필요없음&lt;/li&gt;
&lt;/ol&gt;

&lt;h1 id=&quot;마크다운&quot;&gt;마크다운&lt;/h1&gt;
&lt;p&gt;텍스트 기반의 마크업언어로 2004년 존그루버에 의해 만들어졌음&lt;/p&gt;

&lt;h2 id=&quot;헤더&quot;&gt;헤더&lt;/h2&gt;

&lt;p&gt;큰제목: 문서 제목&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This is an H1
=============
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;this-is-an-h1&quot;&gt;This is an H1&lt;/h1&gt;

&lt;p&gt;작은제목: 문서 부제목&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This is an H2
-------------
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;this-is-an-h2&quot;&gt;This is an H2&lt;/h2&gt;

&lt;p&gt;글머리: 1~6까지만 지원&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# This is a H1
## This is a H2
### This is a H3
#### This is a H4
##### This is a H5
###### This is a H6
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h1 id=&quot;this-is-a-h1&quot;&gt;This is a H1&lt;/h1&gt;
&lt;h2 id=&quot;this-is-a-h2&quot;&gt;This is a H2&lt;/h2&gt;
&lt;h3 id=&quot;this-is-a-h3&quot;&gt;This is a H3&lt;/h3&gt;
&lt;h4 id=&quot;this-is-a-h4&quot;&gt;This is a H4&lt;/h4&gt;
&lt;h5 id=&quot;this-is-a-h5&quot;&gt;This is a H5&lt;/h5&gt;
&lt;h6 id=&quot;this-is-a-h6&quot;&gt;This is a H6&lt;/h6&gt;

&lt;h2 id=&quot;blockquote&quot;&gt;BlockQuote&lt;/h2&gt;

&lt;p&gt;이메일에서 사용하는 &lt;code class=&quot;highlighter-rouge&quot;&gt;&amp;gt;&lt;/code&gt; 블럭인용문자를 이용한다.&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;gt; This is a blockqute.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote&gt;
  &lt;p&gt;This is a blockqute.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;이 안에서는 다른 마크다운 요소를 포함할 수 있다.&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;gt; ### This is a H3
&amp;gt; * List
&amp;gt;	```
&amp;gt;	code
&amp;gt;	```
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote&gt;
  &lt;h3 id=&quot;this-is-a-h3-1&quot;&gt;This is a H3&lt;/h3&gt;
  &lt;ul&gt;
    &lt;li&gt;List
      &lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  code
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;      &lt;/div&gt;
    &lt;/li&gt;
  &lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;목록&quot;&gt;목록&lt;/h2&gt;

&lt;p&gt;순서있는 목록은 숫자와 점을 사용&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;1. 첫번째
2. 두번째
3. 세번째
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ol&gt;
  &lt;li&gt;첫번째&lt;/li&gt;
  &lt;li&gt;두번째&lt;/li&gt;
  &lt;li&gt;세번째&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;순서없는 목록(글머리 기호)&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;* 빨강
  * 녹색
    * 파랑

+ 빨강
  + 녹색
    + 파랑

- 빨강
- 녹색
- 파랑
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;빨강
    &lt;ul&gt;
      &lt;li&gt;녹색
        &lt;ul&gt;
          &lt;li&gt;파랑&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;빨강
    &lt;ul&gt;
      &lt;li&gt;녹색
        &lt;ul&gt;
          &lt;li&gt;파랑&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;빨강&lt;/li&gt;
  &lt;li&gt;녹색&lt;/li&gt;
  &lt;li&gt;파랑&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;혼합해서 사용하는 것도 가능&lt;/p&gt;

&lt;h2 id=&quot;코드&quot;&gt;코드&lt;/h2&gt;

&lt;p&gt;4개의 공백 또는 하나의 탭으로 들여쓰기를 만나면 변환되기 시작하여 들여쓰지 않은 행을 만날때까지 변환이 계속된다.&lt;code class=&quot;highlighter-rouge&quot;&gt;&amp;lt;pre&amp;gt;&amp;lt;code&amp;gt;  ~~~ &amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&lt;/code&gt;와 동일&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This is a normal paragraph:

    This is a code block.
end code block.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is a normal paragraph:&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This is a code block. end code block.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;backtick을 이용해서 코드 블럭을 표시할 수 있다.&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;```
This is a code block.
```
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This is a code block.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;수평선&quot;&gt;수평선&lt;/h2&gt;

&lt;p&gt;아래 줄은 모두 수평선(&lt;code class=&quot;highlighter-rouge&quot;&gt;&amp;lt;hr/&amp;gt;&lt;/code&gt;)을 만든다. 마크다운 문서를 미리보기로 출력할 때 &lt;em&gt;페이지 나누기&lt;/em&gt; 용도로 많이 사용한다.&lt;/p&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;* * *
***
*****
- - -
---------------------------------------
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;hr /&gt;
&lt;hr /&gt;
&lt;hr /&gt;
&lt;hr /&gt;
&lt;hr /&gt;

&lt;h2 id=&quot;링크&quot;&gt;링크&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;링크&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;syntax: [Title](link)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;syntax: &lt;a href=&quot;link&quot;&gt;Title&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;자동연결&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;lt;http://example.com/&amp;gt;
&amp;lt;address@example.com&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href=&quot;http://example.com/&quot;&gt;http://example.com/&lt;/a&gt;
&lt;a href=&quot;mailto:address@example.com&quot;&gt;address@example.com&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;강조&quot;&gt;강조&lt;/h2&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;*single asterisks*
_single underscores_
**double asterisks**
__double underscores__
~~cancelline~~
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;single asterisks&lt;/em&gt;&lt;br /&gt;
&lt;em&gt;single underscores&lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;double asterisks&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;double underscores&lt;/strong&gt;&lt;br /&gt;
&lt;del&gt;cancelline&lt;/del&gt;&lt;/p&gt;

&lt;h2 id=&quot;테이블&quot;&gt;테이블&lt;/h2&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;| foo | bar |
| --- | --- |
| baz | bim |
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;foo&lt;/th&gt;
      &lt;th&gt;bar&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;baz&lt;/td&gt;
      &lt;td&gt;bim&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h2 id=&quot;이미지&quot;&gt;이미지&lt;/h2&gt;

&lt;div class=&quot;highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;![Alt text](/path/to/img.jpg)
![Alt text](/path/to/img.jpg &quot;Optional title&quot;)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;img src=&quot;http://cfile6.uf.tistory.com/image/2426E646543C9B4532C7B0&quot; alt=&quot;석촌호수 러버덕&quot; /&gt;&lt;/p&gt;

&lt;p&gt;사이즈 조절 기능은 없기 때문에 &lt;code class=&quot;highlighter-rouge&quot;&gt;&amp;lt;img width=&quot;&quot; height=&quot;&quot;&amp;gt;&amp;lt;/img&amp;gt;&lt;/code&gt;를 이용한다.&lt;/p&gt;

&lt;h1 id=&quot;참고-링크&quot;&gt;참고 링크&lt;/h1&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://pages.github.com/&quot;&gt;GitHub Page&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://trends.google.com/trends/explore?cat=31&amp;amp;date=2008-01-01%202018-01-31&amp;amp;q=jekyll,hexo&quot;&gt;jekyll vs hexo&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://jekyllrb-ko.github.io/&quot;&gt;Jekyll&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://nolboo.kim/blog/2013/10/15/free-blog-with-github-jekyll/&quot;&gt;지킬로 깃허브에 무료 블로그 만들기&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://tech.kakao.com/2016/07/07/tech-blog-story/&quot;&gt;kakao 기술 블로그가 GitHub Pages로 간 까닭은&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://tech.kakao.com/&quot;&gt;kakao 기술 블로그&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/kakao/kakao.github.io&quot;&gt;kakao 기술 블로그 github 저장소&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://tech.lezhin.com/&quot;&gt;레진코믹스 기술 블로그&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/lezhin/lezhin.github.io&quot;&gt;레진코믹스 기술 블로그 github 저장소&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://nolboo.kim/blog/2014/03/25/github-flavored-markdown/&quot;&gt;마크다운&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.github.com/gfm/&quot;&gt;GFM Spec&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
        <pubDate>Tue, 05 Mar 2019 15:30:00 +0900</pubDate>
        <link>http://golabs7.github.io/2019/03/05/install_and_run_jekyll/</link>
        <guid isPermaLink="true">http://golabs7.github.io/2019/03/05/install_and_run_jekyll/</guid>
        
        <category>Jekyll</category>
        
        <category>Markdown</category>
        
        
      </item>
    
  </channel>
</rss>
