<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Monday Morning 5.19</title>
    <link>https://lawmin.tistory.com/</link>
    <description></description>
    <language>ko</language>
    <pubDate>Mon, 20 Jul 2026 20:59:54 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>Gadget</managingEditor>
    <item>
      <title>Rocky, Ubuntu 커널 튜닝 (안)</title>
      <link>https://lawmin.tistory.com/514</link>
      <description>1. 웹서버 용 20,000명 정도 동시 요청, 요청 당 1초 정도 소요 예상 : 8 core 16GB ram 할당
2. swap을 최대한 막으려면 vm.swapiness=1, 아예 없애려면 vm.swapiness = 0 으로 변경하고, /etc/fstab 에서 swap mount제거)
3. systemd의 경우, 서비스 별로 Limit 확인 필요 (아래 설정 무시할 수 있음)
# vi /etc/sysctl.conf
fs.file-max = 209715..</description>
      <category>OS/CentOS&amp;amp;Rocky</category>
      <category>kernel</category>
      <category>Rocky</category>
      <author>Gadget</author>
      <guid isPermaLink="true">https://lawmin.tistory.com/514</guid>
      <comments>https://lawmin.tistory.com/514#entry514comment</comments>
      <pubDate>Thu, 16 Jul 2026 13:30:54 +0900</pubDate>
    </item>
    <item>
      <title>Rocky, Ubuntu 커널 최적화 튜닝 스크립트</title>
      <link>https://lawmin.tistory.com/513</link>
      <description>서버 특성(웹, DB, 컨테이너)과 자원(CPU, 메모리) 에 맞게 파라미터 값을 튜닝해주는 자동화 스크립트입니다. (Claude 활용)
ipv6 는 끄고,&amp;nbsp;swap, file-max, tcp 파라미터 등 여러 가지 사항을 자동 설정하도록 하였습니다.
--apply 옵션을 넣어야만 실제 적용합니다.

&amp;nbsp;</description>
      <category>OS/CentOS&amp;amp;Rocky</category>
      <author>Gadget</author>
      <guid isPermaLink="true">https://lawmin.tistory.com/513</guid>
      <comments>https://lawmin.tistory.com/513#entry513comment</comments>
      <pubDate>Wed, 15 Jul 2026 10:22:23 +0900</pubDate>
    </item>
    <item>
      <title>서명(이미지) 및 간단한 편집이 가능한 PDF 뷰어</title>
      <link>https://lawmin.tistory.com/510</link>
      <description>&amp;nbsp;
※&amp;nbsp;Adobe Acrobat 에서 쓰던 일부 기능만 빼서 만들어 본건데 코딩 결과물은 Claude가 훨씬 낫습니다.
&amp;nbsp;
[LLM 프롬프트] - 무료 gemini, claude 버전으로도 제작 가능 (위의 파일은 각각의 llm으로 만든 다른 버전)
1단계 &amp;mdash; 뼈대 요청

PyQt5 + PyMuPDF로 PDF 뷰어를 만들어줘. 창 왼쪽에 페이지 썸네일 목록, 오른쪽에 PDF 페이지를 렌더링하는 메인 뷰. 상단 툴바에..</description>
      <category>Utility</category>
      <category>PDF</category>
      <category>서명</category>
      <author>Gadget</author>
      <guid isPermaLink="true">https://lawmin.tistory.com/510</guid>
      <comments>https://lawmin.tistory.com/510#entry510comment</comments>
      <pubDate>Fri, 12 Jun 2026 13:54:13 +0900</pubDate>
    </item>
    <item>
      <title>Ollama 로컬 모델 파일 복제 script</title>
      <link>https://lawmin.tistory.com/508</link>
      <description>원격지 서버에 Ollama 모델을 복제할 수 있도록 했습니다. (외부에서 받아온 모델에 대해 내부 서버간 복제를 위함)
아래 변수를 적절히 바꿔서 실행하면 됩니다.
BASE_MANIFEST_DIRBLOB_DIR
REMOTE_SERVER
#!/bin/bash

# 1. 기본 경로 설정 (레지스트리 루트로 변경)
REGISTRY_ROOT=&quot;/app/ollama/models/manifests/registry.ollama.ai&quot;
BLOB_DIR=&quot;/app/ol..</description>
      <category>AI</category>
      <category>copy</category>
      <category>Model</category>
      <category>ollama</category>
      <author>Gadget</author>
      <guid isPermaLink="true">https://lawmin.tistory.com/508</guid>
      <comments>https://lawmin.tistory.com/508#entry508comment</comments>
      <pubDate>Fri, 1 May 2026 09:23:14 +0900</pubDate>
    </item>
    <item>
      <title>다중 Ollama Load Balancer (NGINX 설정)</title>
      <link>https://lawmin.tistory.com/507</link>
      <description>아래는 ollama1, ollama2 서버에 각각 GPU 두개씩가 설치되어 NUM_PARALLEL=6 으로 ollama server 중인 상태에서,
요청을 적절히 분기해주기 위한 reverse proxy 설정 예시입니다.
dify plugin 으로 ollama 호출 시, .env 의 CELERY_WORKER_AMOUNT도 적절히 늘려야 합니다. (ex: 6*4=24)
안그러면 default 값인 1로 인해 한번에 1개씩만 호출되어 LB의 의미가 없습니다..</description>
      <category>AI</category>
      <category>dify</category>
      <category>load balance</category>
      <category>Nginx</category>
      <category>ollama</category>
      <author>Gadget</author>
      <guid isPermaLink="true">https://lawmin.tistory.com/507</guid>
      <comments>https://lawmin.tistory.com/507#entry507comment</comments>
      <pubDate>Fri, 1 May 2026 01:05:14 +0900</pubDate>
    </item>
    <item>
      <title>다중 GPU ollama 관리 스크립트</title>
      <link>https://lawmin.tistory.com/506</link>
      <description>&amp;nbsp;
gemini 등을 활용하여 관리 스크립트를 만들었습니다.
계속 개선하다보니 꽤 쓸만합니다.
&amp;nbsp;
# ollama start 0&amp;nbsp; : gpu0 시작
# ollama start : gpu 전체 시작
# ollama stop 1 &amp;nbsp; : gpu1 중지
# ollama stop : gpu 전체 중지
# ollama status 1 : 상태 1초마다 갱신 (어떤 모델이 떠있는 지 확인)
#!/bin/bash

# =======..</description>
      <category>AI</category>
      <category>management</category>
      <category>ollama</category>
      <category>script</category>
      <author>Gadget</author>
      <guid isPermaLink="true">https://lawmin.tistory.com/506</guid>
      <comments>https://lawmin.tistory.com/506#entry506comment</comments>
      <pubDate>Thu, 30 Apr 2026 17:10:57 +0900</pubDate>
    </item>
    <item>
      <title>이미지 뷰어 (by Gemini)</title>
      <link>https://lawmin.tistory.com/505</link>
      <description>단, 5회 정도의 대화를 통해 실용적인 수준의 윈도우즈용 프로그램을 만들어 내는 시대입니다...
&amp;nbsp;
[프롬프트]
1. 윈도우용 python 사진 뷰어를 만들어주세요. png, jpg 등 대부분의 파일형식을 지원해야 하고, 윈도우 탐색기로 파일 열기 했을때 해당 파일의 디렉토리를 작업디렉토리로 하고, 단축키로는 아래를 지원해야 합니다. pgup: 이전파일, pgdn: 다음파일, +: 사진확대, -: 사진축소, *:최대화 2.&amp;nbsp;처음&amp;nbs..</description>
      <category>Programming/Python 3</category>
      <category>Gemini</category>
      <category>image viewer</category>
      <category>Python</category>
      <author>Gadget</author>
      <guid isPermaLink="true">https://lawmin.tistory.com/505</guid>
      <comments>https://lawmin.tistory.com/505#entry505comment</comments>
      <pubDate>Sun, 26 Apr 2026 22:00:07 +0900</pubDate>
    </item>
    <item>
      <title>tcp/udp 리스닝 포트 점검 (ip, port 순 정렬)</title>
      <link>https://lawmin.tistory.com/504</link>
      <description># ss&amp;nbsp;-plunt&amp;nbsp;|&amp;nbsp;grep&amp;nbsp;-E&amp;nbsp;&quot;(LISTEN|UNCONN)&quot;&amp;nbsp;|&amp;nbsp;awk&amp;nbsp;'{gsub(/[\[\]]/,&amp;nbsp;&quot;&quot;,&amp;nbsp;$5);&amp;nbsp;n=split($5,a,/:/);&amp;nbsp;printf&amp;nbsp;&quot;%s:%s&amp;nbsp;%s\n&quot;,&amp;nbsp;a[1],a[n],$NF}'&amp;nbsp;|&amp;nbsp;sort&amp;nbsp;-V
&amp;nbsp;
실제 명령줄까지
# ss -plunt..</description>
      <category>OS/CentOS&amp;amp;Rocky</category>
      <author>Gadget</author>
      <guid isPermaLink="true">https://lawmin.tistory.com/504</guid>
      <comments>https://lawmin.tistory.com/504#entry504comment</comments>
      <pubDate>Thu, 23 Apr 2026 14:31:32 +0900</pubDate>
    </item>
    <item>
      <title>Rocky 9 DSR 세팅</title>
      <link>https://lawmin.tistory.com/503</link>
      <description>1. dsr loopback ip 등록해주는 셸 파일 생성 (L4의VIP만 변경)
cat &amp;gt; /root/add_dsr_lo.sh &amp;lt;&amp;lt;EOF
nmcli connection modify lo ipv4.method manual
nmcli connection modify lo +ipv4.addresses L4의VIP/32
nmcli connection up lo
nmcli connection reload
nmcli connection show
..</description>
      <category>OS/CentOS&amp;amp;Rocky</category>
      <category>dsr</category>
      <category>l4</category>
      <category>loopback</category>
      <category>rocky9</category>
      <author>Gadget</author>
      <guid isPermaLink="true">https://lawmin.tistory.com/503</guid>
      <comments>https://lawmin.tistory.com/503#entry503comment</comments>
      <pubDate>Tue, 14 Apr 2026 09:14:57 +0900</pubDate>
    </item>
    <item>
      <title>Rocky 9 dnf local repository 구축</title>
      <link>https://lawmin.tistory.com/502</link>
      <description>기본 /etc/yum.repos.d/rocky.repo 의 내용 중 host만 구축할 repository 서버IP로 사용할 수 있게끔 만든 sync 스크립트입니다.
#!/bin/bash
REPOSYNC_PATH=&quot;/usr/share/nginx/html/pub/rocky/9_sync&quot;
REPO_PATH=&quot;/usr/share/nginx/html/pub/rocky/9&quot;
LOG_FILE=&quot;/var/log/repo_sync.log&quot;
DATE=$(date &quot;+%Y..</description>
      <category>OS/CentOS&amp;amp;Rocky</category>
      <category>DNF</category>
      <category>repository</category>
      <category>rocky9</category>
      <category>yum</category>
      <category>보안</category>
      <author>Gadget</author>
      <guid isPermaLink="true">https://lawmin.tistory.com/502</guid>
      <comments>https://lawmin.tistory.com/502#entry502comment</comments>
      <pubDate>Fri, 3 Apr 2026 11:24:37 +0900</pubDate>
    </item>
  </channel>
</rss>