<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>heeguchi</title>
    <link>https://heeguchi.tistory.com/</link>
    <description>heeguchi</description>
    <language>ko</language>
    <pubDate>Tue, 14 Apr 2026 22:55:14 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>heeguchi</managingEditor>
    <item>
      <title>php7.0에서 php7.1로 업데이트 (Debian 9, Apache2)</title>
      <link>https://heeguchi.tistory.com/43</link>
      <description>&lt;p style=&quot;font-size: 1.12em;&quot;&gt;저장소 추가&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class=&quot;brush: bash; stylus&quot;&gt;&lt;code&gt;$ apt-get install apt-transport-https lsb-release ca-certificates
$ wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
$ echo &quot;deb https://packages.sury.org/php/ $(lsb_release -sc) main&quot; &amp;gt; /etc/apt/sources.list.d/php.list
$ apt-get update
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;font-size: 1.12em;&quot;&gt;php7.1 설치&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class=&quot;brush: bash; actionscript&quot;&gt;&lt;code&gt;$ apt-get install php7.1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;font-size: 1.12em;&quot;&gt;추가 패키지 설치&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class=&quot;brush: bash; x86asm&quot;&gt;&lt;code&gt;$ apt-get install php7.1-cli php7.1-common php7.1-curl php7.1-gd php7.1-json php7.1-mbstring php7.1-mysql php7.1-opcache php7.1-readline php7.1-xml
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;font-size: 1.12em;&quot;&gt;apache2 php7.0 모듈 비활성화&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class=&quot;brush: bash; elixir&quot;&gt;&lt;code&gt;$ a2dismod php7.0
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;font-size: 1.12em;&quot;&gt;apache2 php7.1 모듈 활성화&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class=&quot;brush: bash; elixir&quot;&gt;&lt;code&gt;$ a2enmod php7.1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style=&quot;font-size: 1.12em;&quot;&gt;apache2 재시작&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre class=&quot;brush: bash; elixir&quot;&gt;&lt;code&gt;$ service apache2 restart
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <category>리눅스</category>
      <author>heeguchi</author>
      <guid isPermaLink="true">https://heeguchi.tistory.com/43</guid>
      <comments>https://heeguchi.tistory.com/43#entry43comment</comments>
      <pubDate>Tue, 27 Aug 2019 12:01:24 +0900</pubDate>
    </item>
    <item>
      <title>Cron 분마다 실행</title>
      <link>https://heeguchi.tistory.com/41</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;# vim /etc/crontab&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;N분마다 실행&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;*/N * * * * 명령어&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;N시간마다 실행&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;0 */N * * * 명령어&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;</description>
      <category>리눅스</category>
      <author>heeguchi</author>
      <guid isPermaLink="true">https://heeguchi.tistory.com/41</guid>
      <comments>https://heeguchi.tistory.com/41#entry41comment</comments>
      <pubDate>Fri, 15 Dec 2017 14:01:44 +0900</pubDate>
    </item>
    <item>
      <title>/etc/sudoers 사용자 또는 그룹 추가</title>
      <link>https://heeguchi.tistory.com/40</link>
      <description>&lt;p&gt;&lt;b&gt;/etc/sudoers 파일 permission 변경&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;# chmod u+w /etc/sudoers&lt;/pre&gt;&lt;p&gt;&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;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;ray	ALL=(ALL)	ALL&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;그룹 등록&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;%mygroup	ALL=(ALL)	ALL&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;비밀번호 생략&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;%mygroup	ALL=(ALL)	NOPASSWD: ALL
ray			ALL=(ALL)	NOPASSWD: ALL&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;/etc/sudoers 파일 permission 원복&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;# chmod u-w /etc/sudoers&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;</description>
      <category>리눅스</category>
      <author>heeguchi</author>
      <guid isPermaLink="true">https://heeguchi.tistory.com/40</guid>
      <comments>https://heeguchi.tistory.com/40#entry40comment</comments>
      <pubDate>Fri, 15 Dec 2017 13:56:45 +0900</pubDate>
    </item>
    <item>
      <title>특정 사용자 SFTP만 허용하고 상위 디렉토리 접근 막기</title>
      <link>https://heeguchi.tistory.com/39</link>
      <description>&lt;p&gt;&lt;b&gt;새로운 계정 생성&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;# useradd new_user
# passwd new_user&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;또는&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;# adduser new_user&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;b&gt;new_user 로그인 시 홈 디렉토리를 루트 디렉토리로 설정&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;# vim /etc/ssh/sshd_config&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;Match User new_user
	ForceCommand internal-sftp
	ChrootDirectory /home/new_user&lt;/pre&gt;&lt;p&gt;&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;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;# chown root:root /home/new_user
# chmod 755 /home/new_user&lt;/pre&gt;&lt;p&gt;&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;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;# vim /etc/passwd&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;new_user:x:{번호}:{번호}::/home/new_user:/usr/sbin/nologin&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;</description>
      <category>리눅스</category>
      <author>heeguchi</author>
      <guid isPermaLink="true">https://heeguchi.tistory.com/39</guid>
      <comments>https://heeguchi.tistory.com/39#entry39comment</comments>
      <pubDate>Fri, 15 Dec 2017 09:42:20 +0900</pubDate>
    </item>
    <item>
      <title>디렉토리별 용량 확인 방법</title>
      <link>https://heeguchi.tistory.com/38</link>
      <description>&lt;p&gt;&lt;/p&gt;&lt;pre class=&quot;brush: bash;&quot;&gt;# du -h --max-depth=1&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;</description>
      <category>리눅스</category>
      <author>heeguchi</author>
      <guid isPermaLink="true">https://heeguchi.tistory.com/38</guid>
      <comments>https://heeguchi.tistory.com/38#entry38comment</comments>
      <pubDate>Fri, 15 Dec 2017 09:22:36 +0900</pubDate>
    </item>
  </channel>
</rss>