<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>터미널 Archives - 어제와 내일의 나 그 사이의 이야기</title>
	<atom:link href="https://lycos7560.com/tag/%ED%84%B0%EB%AF%B8%EB%84%90/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>생각의 흐름을 타고 다니며 만드는 블로그</description>
	<lastBuildDate>Tue, 25 Nov 2025 16:03:54 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://lycos7560.com/wp-content/uploads/2022/11/cropped-cropped-cropped-log-1-150x150-1-80x80.png</url>
	<title>터미널 Archives - 어제와 내일의 나 그 사이의 이야기</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Ubuntu에 Gemini CLI 설치</title>
		<link>https://lycos7560.com/ubuntu/ubuntu%ec%97%90-gemini-cli-%ec%84%a4%ec%b9%98/40364/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu%ec%97%90-gemini-cli-%ec%84%a4%ec%b9%98/40364/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Tue, 25 Nov 2025 16:02:48 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[기타]]></category>
		<category><![CDATA[$\text{apt}$]]></category>
		<category><![CDATA[$\text{GEMINI\_API\_KEY}$]]></category>
		<category><![CDATA[$\text{npm install -g}$]]></category>
		<category><![CDATA[$\text{npm uninstall}$]]></category>
		<category><![CDATA[$\text{string-width}$]]></category>
		<category><![CDATA[$v$ flag]]></category>
		<category><![CDATA[$v$ 플래그]]></category>
		<category><![CDATA[AI Assistant]]></category>
		<category><![CDATA[AI Chatbot]]></category>
		<category><![CDATA[AI Tool]]></category>
		<category><![CDATA[AI Workflows]]></category>
		<category><![CDATA[AI 워크플로우]]></category>
		<category><![CDATA[AI 툴]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[API Key]]></category>
		<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Authentication]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Backend]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Clean Up]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[CLI Tips]]></category>
		<category><![CDATA[CLI Tool]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Command Line Interface]]></category>
		<category><![CDATA[Commands]]></category>
		<category><![CDATA[compatibility]]></category>
		<category><![CDATA[Console Application]]></category>
		<category><![CDATA[Dependencies]]></category>
		<category><![CDATA[Desktop Linux]]></category>
		<category><![CDATA[Dev Tips]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[Development Environment]]></category>
		<category><![CDATA[environment-variable]]></category>
		<category><![CDATA[Error Fix]]></category>
		<category><![CDATA[Frontend]]></category>
		<category><![CDATA[Full Stack]]></category>
		<category><![CDATA[GCP]]></category>
		<category><![CDATA[Gemini 2.5 Pro]]></category>
		<category><![CDATA[Gemini AI]]></category>
		<category><![CDATA[Gemini CLI]]></category>
		<category><![CDATA[Gemini Pro]]></category>
		<category><![CDATA[Gemini Quick Start]]></category>
		<category><![CDATA[Generative AI]]></category>
		<category><![CDATA[Global Install]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google Cloud]]></category>
		<category><![CDATA[Google Gemini]]></category>
		<category><![CDATA[How to Install]]></category>
		<category><![CDATA[Installation Guide]]></category>
		<category><![CDATA[Invalid regular expression flags]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Large Language Model]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Development]]></category>
		<category><![CDATA[Linux OS]]></category>
		<category><![CDATA[Linux Setup]]></category>
		<category><![CDATA[LLM]]></category>
		<category><![CDATA[Node Version]]></category>
		<category><![CDATA[Node.js]]></category>
		<category><![CDATA[Node.js Upgrade]]></category>
		<category><![CDATA[Node.js 호환성]]></category>
		<category><![CDATA[Nodejs v18]]></category>
		<category><![CDATA[Nodejs v20]]></category>
		<category><![CDATA[npm]]></category>
		<category><![CDATA[nvm]]></category>
		<category><![CDATA[NVM Install]]></category>
		<category><![CDATA[NVM 설치]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[OS Setup]]></category>
		<category><![CDATA[Package Manager]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Regular Expression]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Step-by-Step]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[SyntaxError]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Tech Trends]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[TUTORIAL]]></category>
		<category><![CDATA[Ubuntu Development]]></category>
		<category><![CDATA[Ubuntu Guide]]></category>
		<category><![CDATA[Ubuntu Server]]></category>
		<category><![CDATA[Uninstall Node]]></category>
		<category><![CDATA[Version Management]]></category>
		<category><![CDATA[Zsh]]></category>
		<category><![CDATA[개발 트렌드]]></category>
		<category><![CDATA[개발 팁]]></category>
		<category><![CDATA[개발 환경]]></category>
		<category><![CDATA[개발 효율]]></category>
		<category><![CDATA[개발자]]></category>
		<category><![CDATA[거대 언어 모델]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[구글 제미나이]]></category>
		<category><![CDATA[기술]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[단계별 가이드]]></category>
		<category><![CDATA[루트 권한]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[리눅스 개발]]></category>
		<category><![CDATA[명령어]]></category>
		<category><![CDATA[버전 관리]]></category>
		<category><![CDATA[버전 문제]]></category>
		<category><![CDATA[보안]]></category>
		<category><![CDATA[빠른 시작]]></category>
		<category><![CDATA[생성형 AI]]></category>
		<category><![CDATA[설치 가이드]]></category>
		<category><![CDATA[스크립트]]></category>
		<category><![CDATA[시스템 정리]]></category>
		<category><![CDATA[오류 해결]]></category>
		<category><![CDATA[오픈소스]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[의존성]]></category>
		<category><![CDATA[인공지능]]></category>
		<category><![CDATA[인공지능 비서]]></category>
		<category><![CDATA[인증]]></category>
		<category><![CDATA[자동화]]></category>
		<category><![CDATA[전역 설치]]></category>
		<category><![CDATA[정규 표현식]]></category>
		<category><![CDATA[제미나이]]></category>
		<category><![CDATA[챗봇]]></category>
		<category><![CDATA[콘솔 앱]]></category>
		<category><![CDATA[클라우드 컴퓨팅]]></category>
		<category><![CDATA[터미널]]></category>
		<category><![CDATA[튜토리얼]]></category>
		<category><![CDATA[패키지 매니저]]></category>
		<category><![CDATA[패키지 제거]]></category>
		<category><![CDATA[프로그래밍]]></category>
		<category><![CDATA[환경 변수]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=40364</guid>

					<description><![CDATA[<p>1단계: Node.js 및 npm 설치 (1) NVM (Node Version Manager)을 이용한 설치 (추천) (2) apt를 통한 기본 설치 2단계: Gemini CLI 설치 3단계: Gemini CLI 실행 및 인증 설치가 완료되면, 터미널에 gemini 명령어를 입력하여 실행 최초 실행 시 다음과 같은 설정 및 인증 과정이 진행됩니다. 인증이 성공적으로 완료되면, Gemini CLI 프롬프트(gemini &#62;)가 나타나며 바로 Gemini를 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu%ec%97%90-gemini-cli-%ec%84%a4%ec%b9%98/40364/">Ubuntu에 Gemini CLI 설치</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-c8e0bf3e      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#1단계-nodejs-및-npm-설치" class="uagb-toc-link__trigger">1단계: Node.js 및 npm 설치</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#1-nvm-node-version-manager을-이용한-설치-추천" class="uagb-toc-link__trigger">(1) NVM (Node Version Manager)을 이용한 설치 (추천)</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#2-apt를-통한-기본-설치" class="uagb-toc-link__trigger">(2) apt를 통한 기본 설치</a></li></ul></li><li class="uagb-toc__list"><a href="#2단계-gemini-cli-설치" class="uagb-toc-link__trigger">2단계: Gemini CLI 설치</a><li class="uagb-toc__list"><a href="#3단계-gemini-cli-실행-및-인증" class="uagb-toc-link__trigger">3단계: Gemini CLI 실행 및 인증</a></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">1단계: Node.js 및 npm 설치</h2>



<ul class="wp-block-list">
<li>Gemini CLI는 <strong>Node.js 버전 20 이상</strong>을 권장</li>
</ul>



<h3 class="wp-block-heading">(1) NVM (Node Version Manager)을 이용한 설치 (추천)</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">// Node.js 20 이상인지 확인
node -v
npm -v

// NVM 설치 (버전 번호는 최신 버전으로 바뀔 수 있음):
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

// 터미널 재시작 또는 적용:
source ~/.bashrc 
# 또는 새 터미널 창을 엽니다.

// 최신 LTS Node.js 설치:
nvm install --lts
nvm use --lts</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">(2) <code>apt</code>를 통한 기본 설치</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">// Node.js 20 이상인지 확인
node -v
npm -v

sudo apt update
sudo apt install -y nodejs npm</pre>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">2단계: Gemini CLI 설치</h2>



<ul class="wp-block-list">
<li>Node.js와 npm이 준비되었다면, npm을 사용하여 Gemini CLI를 <strong>전역으로</strong> 설치</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo npm install -g @google/gemini-cli</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">3단계: Gemini CLI 실행 및 인증</h2>



<p class="wp-block-paragraph">설치가 완료되면, 터미널에 <code>gemini</code> 명령어를 입력하여 실행</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">gemini</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<p class="wp-block-paragraph">최초 실행 시 다음과 같은 설정 및 인증 과정이 진행됩니다.</p>



<ol start="1" class="wp-block-list">
<li><strong>테마 선택:</strong> 터미널에서 원하는 CLI <strong>테마</strong>를 선택합니다.</li>



<li><strong>인증 방법 선택:</strong>
<ul class="wp-block-list">
<li><strong>Google 로그인 (권장):</strong> <br>개인 Google 계정으로 로그인하여 사용합니다. <br>브라우저 창이 열리면 로그인 및 인증을 완료하세요. <br>무료 등급에서는 Gemini 2.5 Pro 모델에 대한 충분한 요청 횟수(예: 분당 60회, 일일 1,000회)가 제공됩니다.</li>



<li><strong>API 키 사용:</strong> <br>Google AI Studio 등에서 발급받은 <strong>API 키</strong>를 사용하려면 환경 변수로 설정하거나 이 옵션을 선택합니다. <br>(예: <code>export GEMINI_API_KEY="YOUR_API_KEY"</code>)</li>
</ul>
</li>
</ol>



<p class="wp-block-paragraph">인증이 성공적으로 완료되면, Gemini CLI 프롬프트(<code>gemini &gt;</code>)가 나타나며 바로 Gemini를 사용할 수 있습니다.</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1500" height="611" src="https://lycos7560.com/wp-content/uploads/2025/11/image.png" alt="" class="wp-image-40365" srcset="https://lycos7560.com/wp-content/uploads/2025/11/image.png 1500w, https://lycos7560.com/wp-content/uploads/2025/11/image-300x122.png 300w, https://lycos7560.com/wp-content/uploads/2025/11/image-768x313.png 768w" sizes="(max-width: 1500px) 100vw, 1500px" /><figcaption class="wp-element-caption">성공</figcaption></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu%ec%97%90-gemini-cli-%ec%84%a4%ec%b9%98/40364/">Ubuntu에 Gemini CLI 설치</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu%ec%97%90-gemini-cli-%ec%84%a4%ec%b9%98/40364/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Apache Virtual Host Guide (Apache 가상 호스트 설정)</title>
		<link>https://lycos7560.com/ubuntu/apache-%ea%b0%80%ec%83%81%ed%98%b8%ec%8a%a4%ed%8a%b8-%ec%84%a4%ec%a0%95-%ea%b0%80%ec%9d%b4%eb%93%9c/40358/</link>
					<comments>https://lycos7560.com/ubuntu/apache-%ea%b0%80%ec%83%81%ed%98%b8%ec%8a%a4%ed%8a%b8-%ec%84%a4%ec%a0%95-%ea%b0%80%ec%9d%b4%eb%93%9c/40358/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Tue, 25 Nov 2025 14:56:56 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[기타]]></category>
		<category><![CDATA[301Redirect]]></category>
		<category><![CDATA[301리다이렉트]]></category>
		<category><![CDATA[403Forbidden]]></category>
		<category><![CDATA[404NotFound]]></category>
		<category><![CDATA[500Error]]></category>
		<category><![CDATA[502Error]]></category>
		<category><![CDATA[503Error]]></category>
		<category><![CDATA[504GatewayTimeout]]></category>
		<category><![CDATA[AccessControl]]></category>
		<category><![CDATA[AccessLog]]></category>
		<category><![CDATA[AllowOverride]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Apache2]]></category>
		<category><![CDATA[ApacheModules]]></category>
		<category><![CDATA[ARecord]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[Backend]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[BasicAuth]]></category>
		<category><![CDATA[BestPractices]]></category>
		<category><![CDATA[Brotli]]></category>
		<category><![CDATA[BrowserCache]]></category>
		<category><![CDATA[Caching]]></category>
		<category><![CDATA[Certbot]]></category>
		<category><![CDATA[Cheatsheet]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[Chown]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Clustering]]></category>
		<category><![CDATA[CNAME]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[Compression]]></category>
		<category><![CDATA[ConfigTest]]></category>
		<category><![CDATA[CrtFile]]></category>
		<category><![CDATA[CSR]]></category>
		<category><![CDATA[CSRF]]></category>
		<category><![CDATA[Curl]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[DirectoryIndex]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[DocumentRoot]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[ErrorLog]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[Flask]]></category>
		<category><![CDATA[FreeSSL]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Gzip]]></category>
		<category><![CDATA[HighAvailability]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[HSTS]]></category>
		<category><![CDATA[htpasswd]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[HTTP2]]></category>
		<category><![CDATA[HTTP3]]></category>
		<category><![CDATA[HTTPS]]></category>
		<category><![CDATA[Infrastructure]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[Iptables]]></category>
		<category><![CDATA[Journalctl]]></category>
		<category><![CDATA[KeepAlive]]></category>
		<category><![CDATA[KeyFile]]></category>
		<category><![CDATA[LetsEncrypt]]></category>
		<category><![CDATA[LinuxCommands]]></category>
		<category><![CDATA[LinuxServer]]></category>
		<category><![CDATA[LoadBalancing]]></category>
		<category><![CDATA[LoadTest]]></category>
		<category><![CDATA[LogAnalysis]]></category>
		<category><![CDATA[Manual]]></category>
		<category><![CDATA[mod_deflate]]></category>
		<category><![CDATA[mod_expires]]></category>
		<category><![CDATA[mod_headers]]></category>
		<category><![CDATA[mod_proxy]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[mod_ssl]]></category>
		<category><![CDATA[MPM]]></category>
		<category><![CDATA[MPM_Event]]></category>
		<category><![CDATA[MPM_Worker]]></category>
		<category><![CDATA[NameServer]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[Nodejs]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[Optimization]]></category>
		<category><![CDATA[options]]></category>
		<category><![CDATA[PemFile]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Permission]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[PortForwarding]]></category>
		<category><![CDATA[PrivateKey]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[ProxyPass]]></category>
		<category><![CDATA[ProxyPassReverse]]></category>
		<category><![CDATA[PublicKey]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Redirect]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[RequireAllGranted]]></category>
		<category><![CDATA[Restore]]></category>
		<category><![CDATA[ReverseProxy]]></category>
		<category><![CDATA[Rewrite]]></category>
		<category><![CDATA[RewriteRule]]></category>
		<category><![CDATA[Scalability]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SelfSigned]]></category>
		<category><![CDATA[ServerConfig]]></category>
		<category><![CDATA[ServerMaintenance]]></category>
		<category><![CDATA[ServerMigration]]></category>
		<category><![CDATA[ServerMonitoring]]></category>
		<category><![CDATA[ServerName]]></category>
		<category><![CDATA[Service]]></category>
		<category><![CDATA[SpeedUp]]></category>
		<category><![CDATA[ss]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[subdomain]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[systemctl]]></category>
		<category><![CDATA[systemd]]></category>
		<category><![CDATA[TCP]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[TLS]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[TUTORIAL]]></category>
		<category><![CDATA[UbuntuServer]]></category>
		<category><![CDATA[ufw]]></category>
		<category><![CDATA[URLRewrite]]></category>
		<category><![CDATA[Vhost]]></category>
		<category><![CDATA[VirtualHost]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[WAS]]></category>
		<category><![CDATA[WebAdmin]]></category>
		<category><![CDATA[WebDev]]></category>
		<category><![CDATA[WebPerformance]]></category>
		<category><![CDATA[WebSecurity]]></category>
		<category><![CDATA[WebServer]]></category>
		<category><![CDATA[WebSocket]]></category>
		<category><![CDATA[Wget]]></category>
		<category><![CDATA[WSS]]></category>
		<category><![CDATA[XSS]]></category>
		<category><![CDATA[가상호스트]]></category>
		<category><![CDATA[가이드]]></category>
		<category><![CDATA[고가용성]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[권한설정]]></category>
		<category><![CDATA[기본인증]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[네임서버]]></category>
		<category><![CDATA[네트워크]]></category>
		<category><![CDATA[데비안]]></category>
		<category><![CDATA[뎁스옵스]]></category>
		<category><![CDATA[도메인]]></category>
		<category><![CDATA[디버깅]]></category>
		<category><![CDATA[레퍼런스]]></category>
		<category><![CDATA[렛츠인크립트]]></category>
		<category><![CDATA[로그분석]]></category>
		<category><![CDATA[로드밸런싱]]></category>
		<category><![CDATA[리눅스명령어]]></category>
		<category><![CDATA[리눅스서버]]></category>
		<category><![CDATA[리다이렉트]]></category>
		<category><![CDATA[리버스프록시]]></category>
		<category><![CDATA[매뉴얼]]></category>
		<category><![CDATA[명령어]]></category>
		<category><![CDATA[모범사례]]></category>
		<category><![CDATA[무료인증서]]></category>
		<category><![CDATA[문제해결]]></category>
		<category><![CDATA[방화벽]]></category>
		<category><![CDATA[백업]]></category>
		<category><![CDATA[백엔드]]></category>
		<category><![CDATA[보안]]></category>
		<category><![CDATA[복구]]></category>
		<category><![CDATA[부하테스트]]></category>
		<category><![CDATA[브라우저캐시]]></category>
		<category><![CDATA[사설인증서]]></category>
		<category><![CDATA[사용법]]></category>
		<category><![CDATA[서버모니터링]]></category>
		<category><![CDATA[서버설정]]></category>
		<category><![CDATA[서버유지보수]]></category>
		<category><![CDATA[서버이전]]></category>
		<category><![CDATA[서브도메인]]></category>
		<category><![CDATA[설정확인]]></category>
		<category><![CDATA[성능최적화]]></category>
		<category><![CDATA[속도향상]]></category>
		<category><![CDATA[시스템관리]]></category>
		<category><![CDATA[아파치]]></category>
		<category><![CDATA[아파치2]]></category>
		<category><![CDATA[아파치모듈]]></category>
		<category><![CDATA[압축]]></category>
		<category><![CDATA[액세스로그]]></category>
		<category><![CDATA[에러로그]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[웹개발]]></category>
		<category><![CDATA[웹보안]]></category>
		<category><![CDATA[웹서버]]></category>
		<category><![CDATA[웹성능]]></category>
		<category><![CDATA[웹소켓]]></category>
		<category><![CDATA[웹어드민]]></category>
		<category><![CDATA[웹호스팅]]></category>
		<category><![CDATA[인증서]]></category>
		<category><![CDATA[인프라]]></category>
		<category><![CDATA[접근제어]]></category>
		<category><![CDATA[최적화]]></category>
		<category><![CDATA[치트시트]]></category>
		<category><![CDATA[캐싱]]></category>
		<category><![CDATA[클라우드]]></category>
		<category><![CDATA[클러스터링]]></category>
		<category><![CDATA[터미널]]></category>
		<category><![CDATA[튜토리얼]]></category>
		<category><![CDATA[포트]]></category>
		<category><![CDATA[포트포워딩]]></category>
		<category><![CDATA[프록시]]></category>
		<category><![CDATA[확장성]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=40358</guid>

					<description><![CDATA[<p>기본 설정 확인 Apache 상태 및 설정 검증 필수 모듈 활성화 가상호스트 생성 1. 설정 파일 생성 2. 기본 HTTP 가상호스트 3. HTTP → HTTPS 리다이렉트 4. HTTPS 가상호스트 (정적 파일) 다양한 설정 예제 리버스 프록시 WebSocket 프록시 여러 백엔드로 로드 밸런싱 경로별 다른 백엔드 라우팅 특정 IP만 접근 허용 SSL/HTTPS 설정 Certbot으로 SSL 인증서 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/apache-%ea%b0%80%ec%83%81%ed%98%b8%ec%8a%a4%ed%8a%b8-%ec%84%a4%ec%a0%95-%ea%b0%80%ec%9d%b4%eb%93%9c/40358/">Apache Virtual Host Guide (Apache 가상 호스트 설정)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-692d8850      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#기본-설정-확인" class="uagb-toc-link__trigger">기본 설정 확인</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#apache-상태-및-설정-검증" class="uagb-toc-link__trigger">Apache 상태 및 설정 검증</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#필수-모듈-활성화" class="uagb-toc-link__trigger">필수 모듈 활성화</a></li></ul></li><li class="uagb-toc__list"><a href="#가상호스트-생성" class="uagb-toc-link__trigger">가상호스트 생성</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#1-설정-파일-생성" class="uagb-toc-link__trigger">1. 설정 파일 생성</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#2-기본-http-가상호스트" class="uagb-toc-link__trigger">2. 기본 HTTP 가상호스트</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#3-http-https-리다이렉트" class="uagb-toc-link__trigger">3. HTTP → HTTPS 리다이렉트</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#4-https-가상호스트-정적-파일" class="uagb-toc-link__trigger">4. HTTPS 가상호스트 (정적 파일)</a></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#다양한-설정-예제" class="uagb-toc-link__trigger">다양한 설정 예제</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#리버스-프록시" class="uagb-toc-link__trigger">리버스 프록시</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#websocket-프록시" class="uagb-toc-link__trigger">WebSocket 프록시</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#여러-백엔드로-로드-밸런싱" class="uagb-toc-link__trigger">여러 백엔드로 로드 밸런싱</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#경로별-다른-백엔드-라우팅" class="uagb-toc-link__trigger">경로별 다른 백엔드 라우팅</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#특정-ip만-접근-허용" class="uagb-toc-link__trigger">특정 IP만 접근 허용</a></li></ul></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#sslhttps-설정" class="uagb-toc-link__trigger">SSL/HTTPS 설정</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#certbot으로-ssl-인증서-발급" class="uagb-toc-link__trigger">Certbot으로 SSL 인증서 발급</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#ssl-설정-최적화" class="uagb-toc-link__trigger">SSL 설정 최적화</a></li></ul></li></ul></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#가상호스트-관리" class="uagb-toc-link__trigger">가상호스트 관리</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#활성화비활성화" class="uagb-toc-link__trigger">활성화/비활성화</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#모듈-관리" class="uagb-toc-link__trigger">모듈 관리</a></li></ul></li></ul></li></ul></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#문제-해결" class="uagb-toc-link__trigger">문제 해결</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#로그-확인" class="uagb-toc-link__trigger">로그 확인</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#연결-테스트" class="uagb-toc-link__trigger">연결 테스트</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#포트-및-프로세스-확인" class="uagb-toc-link__trigger">포트 및 프로세스 확인</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#일반적인-문제-해결" class="uagb-toc-link__trigger">일반적인 문제 해결</a></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#보안-강화" class="uagb-toc-link__trigger">보안 강화</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#보안-헤더-설정" class="uagb-toc-link__trigger">보안 헤더 설정</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#접근-제어" class="uagb-toc-link__trigger">접근 제어</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#htpasswd-파일-생성" class="uagb-toc-link__trigger">.htpasswd 파일 생성</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#rate-limiting-mod-ratelimit" class="uagb-toc-link__trigger">Rate Limiting (mod_ratelimit)</a></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#성능-최적화" class="uagb-toc-link__trigger">성능 최적화</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#캐싱-설정" class="uagb-toc-link__trigger">캐싱 설정</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#gzip-brotli-압축" class="uagb-toc-link__trigger">Gzip &amp; Brotli 압축</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#keepalive-설정" class="uagb-toc-link__trigger">KeepAlive 설정</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#mpm-설정-최적화" class="uagb-toc-link__trigger">MPM 설정 최적화</a></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#디렉토리-구조" class="uagb-toc-link__trigger">디렉토리 구조</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#apache-설정-파일-구조" class="uagb-toc-link__trigger">Apache 설정 파일 구조</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#웹-컨텐츠-디렉토리" class="uagb-toc-link__trigger">웹 컨텐츠 디렉토리</a></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#유용한-명령어-모음" class="uagb-toc-link__trigger">유용한 명령어 모음</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#빠른-참조" class="uagb-toc-link__trigger">빠른 참조</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#자주-사용하는-작업" class="uagb-toc-link__trigger">자주 사용하는 작업</a></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#문제-상황별-체크리스트" class="uagb-toc-link__trigger">문제 상황별 체크리스트</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#사이트가-접속되지-않을-때" class="uagb-toc-link__trigger">사이트가 접속되지 않을 때</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#502-bad-gateway-발생-시" class="uagb-toc-link__trigger">502 Bad Gateway 발생 시</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#ssl-인증서-오류-시" class="uagb-toc-link__trigger">SSL 인증서 오류 시</a></ul></ul></ul></ul></ul></ul></ul></ul></ul></ul></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">기본 설정 확인</h2>



<h3 class="wp-block-heading">Apache 상태 및 설정 검증</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># Apache 서비스 상태 확인
sudo systemctl status apache2

# 설정 파일 문법 검사
sudo apache2ctl configtest

# 활성화된 가상호스트 목록 확인
sudo apache2ctl -S

# Apache 버전 확인
apache2 -v

# 로드된 모듈 확인
apache2ctl -M
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">필수 모듈 활성화</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 프록시 및 SSL 관련 모듈 활성화
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod ssl
sudo a2enmod rewrite
sudo a2enmod headers

# 변경사항 적용
sudo systemctl restart apache2
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">가상호스트 생성</h2>



<h3 class="wp-block-heading">1. 설정 파일 생성</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 새 가상호스트 설정 파일 생성
sudo vim /etc/apache2/sites-available/testdomain.conf
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">2. 기본 HTTP 가상호스트</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;VirtualHost *:80>
    ServerName testdomain.com
    ServerAlias www.testdomain.com
    ServerAdmin admin@testdomain.com
    
    DocumentRoot /var/www/testdomain
    
    &lt;Directory /var/www/testdomain>
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Require all granted
    &lt;/Directory>
    
    ErrorLog ${APACHE_LOG_DIR}/testdomain_error.log
    CustomLog ${APACHE_LOG_DIR}/testdomain_access.log combined
&lt;/VirtualHost>
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">3. HTTP → HTTPS 리다이렉트</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;VirtualHost *:80>
    ServerName testdomain.com
    ServerAlias www.testdomain.com
    
    # 모든 HTTP 요청을 HTTPS로 리다이렉트
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
    
    ErrorLog ${APACHE_LOG_DIR}/testdomain_http_error.log
    CustomLog ${APACHE_LOG_DIR}/testdomain_http_access.log combined
&lt;/VirtualHost>
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">4. HTTPS 가상호스트 (정적 파일)</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;VirtualHost *:443>
    ServerName testdomain.com
    ServerAlias www.testdomain.com
    ServerAdmin admin@testdomain.com
    
    DocumentRoot /var/www/testdomain
    
    &lt;Directory /var/www/testdomain>
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Require all granted
    &lt;/Directory>
    
    # SSL 설정
    SSLEngine on
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/testdomain.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/testdomain.com/privkey.pem
    
    # 보안 헤더
    Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
    Header always set X-Content-Type-Options nosniff
    Header always set X-Frame-Options SAMEORIGIN
    Header always set X-XSS-Protection "1; mode=block"
    
    ErrorLog ${APACHE_LOG_DIR}/testdomain_https_error.log
    CustomLog ${APACHE_LOG_DIR}/testdomain_https_access.log combined
&lt;/VirtualHost>
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">다양한 설정 예제</h2>



<h3 class="wp-block-heading">리버스 프록시 </h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;VirtualHost *:443>
    ServerName api.testdomain.com
    
    # SSL 설정
    SSLEngine on
    SSLProxyEngine on
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/api.testdomain.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/api.testdomain.com/privkey.pem
    
    # 프록시 설정
    ProxyPreserveHost On
    ProxyPass / http://localhost:3000/
    ProxyPassReverse / http://localhost:3000/
    
    # 프록시 헤더 설정
    RequestHeader set X-Forwarded-Proto "https"
    RequestHeader set X-Forwarded-Port "443"
    ProxyAddHeaders On
    
    # 타임아웃 설정
    ProxyTimeout 300
    
    # 요청 크기 제한 해제
    LimitRequestBody 0
    LimitRequestLine 65536
    LimitRequestFieldSize 65536
    
    ErrorLog ${APACHE_LOG_DIR}/api_error.log
    CustomLog ${APACHE_LOG_DIR}/api_access.log combined
&lt;/VirtualHost>
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">WebSocket 프록시</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;VirtualHost *:443>
    ServerName ws.testdomain.com
    
    SSLEngine on
    SSLProxyEngine on
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/ws.testdomain.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/ws.testdomain.com/privkey.pem
    
    # WebSocket 지원을 위한 프록시 설정
    ProxyPreserveHost On
    RewriteEngine On
    RewriteCond %{HTTP:Upgrade} =websocket [NC]
    RewriteRule /(.*)           ws://localhost:8080/$1 [P,L]
    RewriteCond %{HTTP:Upgrade} !=websocket [NC]
    RewriteRule /(.*)           http://localhost:8080/$1 [P,L]
    
    ProxyPassReverse / http://localhost:8080/
    
    ErrorLog ${APACHE_LOG_DIR}/ws_error.log
    CustomLog ${APACHE_LOG_DIR}/ws_access.log combined
&lt;/VirtualHost>
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">여러 백엔드로 로드 밸런싱</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo a2enmod proxy_balancer
sudo a2enmod lbmethod_byrequests</pre>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;Proxy balancer://mycluster>
    BalancerMember http://localhost:3001
    BalancerMember http://localhost:3002
    BalancerMember http://localhost:3003
    ProxySet lbmethod=byrequests
&lt;/Proxy>

&lt;VirtualHost *:443>
    ServerName testdomain.com
    
    SSLEngine on
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/testdomain.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/testdomain.com/privkey.pem
    
    ProxyPreserveHost On
    ProxyPass / balancer://mycluster/
    ProxyPassReverse / balancer://mycluster/
    
    ErrorLog ${APACHE_LOG_DIR}/testdomain_error.log
    CustomLog ${APACHE_LOG_DIR}/testdomain_access.log combined
&lt;/VirtualHost>
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">경로별 다른 백엔드 라우팅</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;VirtualHost *:443>
    ServerName testdomain.com
    
    SSLEngine on
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/testdomain.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/testdomain.com/privkey.pem
    
    # API 요청은 백엔드 서버로
    ProxyPass /api http://localhost:8000/api
    ProxyPassReverse /api http://localhost:8000/api
    
    # 정적 파일은 직접 제공
    DocumentRoot /var/www/testdomain
    &lt;Directory /var/www/testdomain>
        Require all granted
    &lt;/Directory>
    
    ErrorLog ${APACHE_LOG_DIR}/testdomain_error.log
    CustomLog ${APACHE_LOG_DIR}/testdomain_access.log combined
&lt;/VirtualHost>
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">특정 IP만 접근 허용</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;VirtualHost *:443>
    ServerName admin.testdomain.com
    
    SSLEngine on
    Include /etc/letsencrypt/options-ssl-apache.conf
    SSLCertificateFile /etc/letsencrypt/live/admin.testdomain.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/admin.testdomain.com/privkey.pem
    
    DocumentRoot /var/www/admin
    
    &lt;Directory /var/www/admin>
        # 특정 IP만 허용
        Require ip 192.168.1.0/24
        Require ip 10.0.0.5
    &lt;/Directory>
    
    ErrorLog ${APACHE_LOG_DIR}/admin_error.log
    CustomLog ${APACHE_LOG_DIR}/admin_access.log combined
&lt;/VirtualHost>
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">SSL/HTTPS 설정</h2>



<h3 class="wp-block-heading">Certbot으로 SSL 인증서 발급</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 자동 설정 (권장)
sudo certbot --apache -d testdomain.com -d www.testdomain.com

# 인증서만 발급 (수동 설정)
sudo certbot certonly --standalone -d testdomain.com -d www.testdomain.com

# 와일드카드 인증서 발급
sudo certbot certonly --manual --preferred-challenges dns -d testdomain.com -d *.testdomain.com

# 인증서 갱신 테스트
sudo certbot renew --dry-run

# 인증서 강제 갱신
sudo certbot renew --force-renewal

# 인증서 자동 갱신 크론잡 설정
sudo crontab -e
# 매일 새벽 2시에 갱신 확인
0 2 * * * certbot renew --quiet
</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">SSL 설정 최적화</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># /etc/letsencrypt/options-ssl-apache.conf 참고
# 또는 직접 설정

SSLEngine on
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384
SSLHonorCipherOrder off
SSLSessionTickets off

# OCSP Stapling 활성화
SSLUseStapling on
SSLStaplingCache "shmcb:logs/stapling-cache(150000)"
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">가상호스트 관리</h2>



<h3 class="wp-block-heading">활성화/비활성화</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 가상호스트 활성화
sudo a2ensite testdomain.conf

# 가상호스트 비활성화
sudo a2dissite testdomain.conf

# 기본 사이트 비활성화
sudo a2dissite 000-default.conf

# 설정 적용 (다운타임 없음)
sudo systemctl reload apache2

# 설정 재시작 (다운타임 발생)
sudo systemctl restart apache2
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">모듈 관리</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 모듈 활성화
sudo a2enmod 모듈명

# 모듈 비활성화
sudo a2dismod 모듈명

# 자주 사용하는 모듈들
sudo a2enmod rewrite      # URL 재작성
sudo a2enmod headers      # HTTP 헤더 조작
sudo a2enmod proxy        # 프록시 기능
sudo a2enmod proxy_http   # HTTP 프록시
sudo a2enmod proxy_wstunnel  # WebSocket 프록시
sudo a2enmod ssl          # SSL/TLS
sudo a2enmod deflate      # 압축
sudo a2enmod expires      # 캐시 제어
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">문제 해결</h2>



<h3 class="wp-block-heading">로그 확인</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 실시간 에러 로그 모니터링
sudo tail -f /var/log/apache2/error.log

# 실시간 액세스 로그 모니터링
sudo tail -f /var/log/apache2/access.log

# 특정 가상호스트 로그
sudo tail -f /var/log/apache2/testdomain_error.log

# 마지막 100줄 확인
sudo tail -100 /var/log/apache2/error.log

# 특정 키워드로 검색
sudo grep "testdomain" /var/log/apache2/*.log

# 에러만 필터링
sudo grep "error" /var/log/apache2/error.log

# 최근 에러 (systemd)
sudo journalctl -u apache2 -n 50
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">연결 테스트</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># HTTP 응답 헤더 확인
curl -I http://testdomain.com/

# HTTPS 응답 헤더 확인
curl -I https://testdomain.com/

# 상세 디버깅 정보
curl -v https://testdomain.com/

# POST 요청 테스트
curl -X POST https://testdomain.com/api/endpoint \
  -H "Content-Type: application/json" \
  -d '{"key":"value"}'

# SSL 인증서 정보 확인
openssl s_client -connect testdomain.com:443 -servername testdomain.com &lt; /dev/null

# 백엔드 서비스 테스트
curl -v http://localhost:3000/
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">포트 및 프로세스 확인</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 특정 포트 사용 확인
sudo netstat -tlnp | grep :80
sudo netstat -tlnp | grep :443
sudo netstat -tlnp | grep :3000

# 또는 ss 명령어 사용 (더 빠름)
sudo ss -tlnp | grep :80

# Apache 프로세스 확인
ps aux | grep apache2

# 열린 파일 확인
sudo lsof -i :80
sudo lsof -i :443
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">일반적인 문제 해결</h3>



<h4 class="wp-block-heading">포트 충돌 문제 체크</h4>



<p class="wp-block-paragraph">Apache + Nginx 동시 사용 시 자주 발생<br>특히 Certbot &#8211;apache 사용 시 충돌할 수 있음.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo ss -tlnp | grep :80
sudo ss -tlnp | grep :443

// 만약 Nginx가 잡고 있다면
sudo systemctl stop nginx
sudo systemctl disable nginx
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">403 Forbidden 오류</h4>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># Directory 권한 확인
&lt;Directory /var/www/testdomain>
    Require all granted
    # 또는
    Options +Indexes
&lt;/Directory>

# 파일 시스템 권한 확인
sudo chmod -R 755 /var/www/testdomain
sudo chown -R www-data:www-data /var/www/testdomain
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">500 Internal Server Error</h4>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 설정 문법 오류 확인
sudo apache2ctl configtest

# .htaccess 문제 확인
sudo tail -50 /var/log/apache2/error.log

# SELinux 확인 (CentOS/RHEL)
sudo setenforce 0  # 임시 비활성화
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">SSL 인증서 오류</h4>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 인증서 파일 존재 확인
ls -la /etc/letsencrypt/live/testdomain.com/

# 인증서 유효기간 확인
sudo certbot certificates

# 인증서 갱신
sudo certbot renew

# SSL 인증서 권한 변경 주의
# SSLCertificateFile: file '/etc/letsencrypt/live/.../fullchain.pem' does not exist or is empty // 원인은 보통 인증서 폴더 권한 문제

sudo chmod 755 /etc/letsencrypt/live
sudo chmod 644 /etc/letsencrypt/live/DOMAIN/fullchain.pem
sudo chmod 600 /etc/letsencrypt/live/DOMAIN/privkey.pem

</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">프록시 오류 (502 Bad Gateway)</h4>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 백엔드 서비스 작동 확인
curl http://localhost:3000/

# SELinux 설정 (CentOS/RHEL)
sudo setsebool -P httpd_can_network_connect 1

# 프록시 타임아웃 늘리기
ProxyTimeout 600
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">Proxy 헤더 관련 ForwardedHeaders 추가</h4>



<p class="wp-block-paragraph">ASP.NET Core, Node.js, Django 모두 HTTPS 프록시 환경에서 필수</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">RequestHeader set X-Forwarded-For %{REMOTE_ADDR}s
RequestHeader set X-Forwarded-Proto https
RequestHeader set X-Forwarded-Host %{HTTP_HOST}s

# (예시) ASP.NET Core
app.UseForwardedHeaders(new ForwardedHeadersOptions
{
    ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto
});</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">보안 강화</h2>



<h3 class="wp-block-heading">보안 헤더 설정</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;VirtualHost *:443>
    ServerName testdomain.com
    
    # ... SSL 설정 ...
    
    # HSTS (HTTP Strict Transport Security)
    Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"
    
    # XSS 방지
    Header always set X-XSS-Protection "1; mode=block"
    
    # MIME 타입 스니핑 방지
    Header always set X-Content-Type-Options "nosniff"
    
    # 클릭재킹 방지
    Header always set X-Frame-Options "SAMEORIGIN"
    
    # Referrer 정책
    Header always set Referrer-Policy "strict-origin-when-cross-origin"
    
    # CSP (Content Security Policy)
    Header always set Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline';"
    
    # 서버 정보 숨기기
    ServerTokens Prod
    ServerSignature Off
&lt;/VirtualHost>
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">접근 제어</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># IP 기반 접근 제어
&lt;Directory /var/www/admin>
    # 특정 IP만 허용
    Require ip 192.168.1.0/24
    Require ip 10.0.0.5
    
    # 또는 특정 IP 차단
    Require all granted
    Require not ip 192.168.1.100
&lt;/Directory>

# HTTP Basic 인증
&lt;Directory /var/www/protected>
    AuthType Basic
    AuthName "Restricted Area"
    AuthUserFile /etc/apache2/.htpasswd
    Require valid-user
&lt;/Directory>
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">.htpasswd 파일 생성</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># htpasswd 파일 생성 (첫 사용자)
sudo htpasswd -c /etc/apache2/.htpasswd username

# 추가 사용자 등록 (-c 옵션 제거)
sudo htpasswd /etc/apache2/.htpasswd username2
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">Rate Limiting (mod_ratelimit)</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;Location /api>
    SetOutputFilter RATE_LIMIT
    SetEnv rate-limit 400
    SetEnv rate-initial-burst 100
&lt;/Location>
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">성능 최적화</h2>



<h3 class="wp-block-heading">캐싱 설정</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;VirtualHost *:443>
    ServerName testdomain.com
    
    # ... 기본 설정 ...
    
    # 정적 파일 캐싱
    &lt;IfModule mod_expires.c>
        ExpiresActive On
        
        # 이미지
        ExpiresByType image/jpg "access plus 1 year"
        ExpiresByType image/jpeg "access plus 1 year"
        ExpiresByType image/gif "access plus 1 year"
        ExpiresByType image/png "access plus 1 year"
        ExpiresByType image/webp "access plus 1 year"
        ExpiresByType image/svg+xml "access plus 1 year"
        
        # CSS/JS
        ExpiresByType text/css "access plus 1 month"
        ExpiresByType application/javascript "access plus 1 month"
        
        # 폰트
        ExpiresByType font/woff2 "access plus 1 year"
        ExpiresByType font/woff "access plus 1 year"
        
        # HTML
        ExpiresByType text/html "access plus 1 hour"
    &lt;/IfModule>
    
    # Cache-Control 헤더
    &lt;FilesMatch "\.(jpg|jpeg|png|gif|webp|svg|css|js|woff|woff2)$">
        Header set Cache-Control "max-age=31536000, public"
    &lt;/FilesMatch>
&lt;/VirtualHost>
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">Gzip &amp; Brotli 압축</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;IfModule mod_deflate.c>
    # 압축 활성화
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
    AddOutputFilterByType DEFLATE application/javascript application/json
    AddOutputFilterByType DEFLATE application/xml application/xhtml+xml
    AddOutputFilterByType DEFLATE image/svg+xml
    
    # 이미지는 압축 제외 (이미 압축됨)
    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|webp)$ no-gzip
&lt;/IfModule>


sudo apt install libapache2-mod-brotli
sudo a2enmod brotli

&lt;IfModule mod_brotli.c>
    BrotliCompressionQuality 5
    AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/css application/javascript application/json image/svg+xml
&lt;/IfModule></pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">KeepAlive 설정</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># /etc/apache2/apache2.conf

# KeepAlive 활성화
KeepAlive On

# 최대 요청 수
MaxKeepAliveRequests 100

# 타임아웃 (초)
KeepAliveTimeout 5
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">MPM 설정 최적화</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># /etc/apache2/mods-available/mpm_event.conf

&lt;IfModule mpm_event_module>
    StartServers             2
    MinSpareThreads          25
    MaxSpareThreads          75
    ThreadLimit              64
    ThreadsPerChild          25
    MaxRequestWorkers        150
    MaxConnectionsPerChild   0
&lt;/IfModule>
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">디렉토리 구조</h2>



<h3 class="wp-block-heading">Apache 설정 파일 구조</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">/etc/apache2/
├── apache2.conf              # 메인 설정 파일
├── ports.conf                # 포트 설정
├── conf-available/           # 사용 가능한 설정
├── conf-enabled/             # 활성화된 설정
├── mods-available/           # 사용 가능한 모듈
├── mods-enabled/             # 활성화된 모듈 (심볼릭 링크)
├── sites-available/          # 사용 가능한 가상호스트
│   ├── 000-default.conf
│   ├── testdomain.conf
│   └── api.testdomain.conf
├── sites-enabled/            # 활성화된 가상호스트 (심볼릭 링크)
│   ├── 000-default.conf -> ../sites-available/000-default.conf
│   └── testdomain.conf -> ../sites-available/testdomain.conf
└── envvars                   # 환경 변수
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">웹 컨텐츠 디렉토리</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">/var/www/
├── html/                     # 기본 DocumentRoot
├── testdomain/               # 가상호스트 디렉토리
│   ├── public/
│   ├── index.html
│   └── .htaccess
└── logs/                     # 로그 (선택사항)
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">유용한 명령어 모음</h2>



<h3 class="wp-block-heading">빠른 참조</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 설정 테스트
sudo apache2ctl configtest

# 가상호스트 목록
sudo apache2ctl -S

# 설정 리로드 (무중단)
sudo systemctl reload apache2

# 재시작
sudo systemctl restart apache2

# 상태 확인
sudo systemctl status apache2

# 로그 실시간 모니터링
sudo tail -f /var/log/apache2/error.log

# 특정 도메인 설정 확인
sudo apache2ctl -D DUMP_VHOSTS | grep testdomain

# 활성화된 모듈 목록
apache2ctl -M

# 설정 파일 문법 체크
sudo apachectl -t
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">자주 사용하는 작업</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 새 가상호스트 생성부터 활성화까지
sudo vim /etc/apache2/sites-available/newsite.conf
sudo a2ensite newsite.conf
sudo apache2ctl configtest
sudo systemctl reload apache2

# SSL 인증서 발급 및 자동 설정
sudo certbot --apache -d newsite.com

# 로그 분석
sudo tail -1000 /var/log/apache2/access.log | grep "POST" | wc -l

# 디스크 사용량 확인
sudo du -sh /var/log/apache2/*

# 오래된 로그 정리
sudo find /var/log/apache2/ -name "*.log.*" -mtime +30 -delete
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">문제 상황별 체크리스트</h2>



<h3 class="wp-block-heading">사이트가 접속되지 않을 때</h3>



<ul class="wp-block-list">
<li>[ ] Apache 서비스 작동 확인: <code>sudo systemctl status apache2</code></li>



<li>[ ] 포트 리스닝 확인: <code>sudo netstat -tlnp | grep :80</code></li>



<li>[ ] 방화벽 확인: <code>sudo ufw status</code></li>



<li>[ ] DNS 설정 확인: <code>nslookup testdomain.com</code></li>



<li>[ ] 가상호스트 활성화 확인: <code>sudo apache2ctl -S</code></li>



<li>[ ] 설정 문법 확인: <code>sudo apache2ctl configtest</code></li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">502 Bad Gateway 발생 시</h3>



<ul class="wp-block-list">
<li>[ ] 백엔드 서비스 작동 확인: <code>curl http://localhost:3000/</code></li>



<li>[ ] 프록시 설정 확인: ProxyPass, ProxyPassReverse</li>



<li>[ ] SELinux 설정 확인 (CentOS/RHEL)</li>



<li>[ ] 타임아웃 설정 확인: ProxyTimeout</li>



<li>[ ] 에러 로그 확인: <code>sudo tail -50 /var/log/apache2/error.log</code></li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">SSL 인증서 오류 시</h3>



<ul class="wp-block-list">
<li>[ ] 인증서 파일 존재 확인</li>



<li>[ ] 인증서 유효기간 확인: <code>sudo certbot certificates</code></li>



<li>[ ] 인증서 경로 확인</li>



<li>[ ] 포트 443 리스닝 확인</li>



<li>[ ] SSL 모듈 활성화 확인: <code>apache2ctl -M | grep ssl</code></li>
</ul>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://lycos7560.com/ubuntu/apache-%ea%b0%80%ec%83%81%ed%98%b8%ec%8a%a4%ed%8a%b8-%ec%84%a4%ec%a0%95-%ea%b0%80%ec%9d%b4%eb%93%9c/40358/">Apache Virtual Host Guide (Apache 가상 호스트 설정)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/apache-%ea%b0%80%ec%83%81%ed%98%b8%ec%8a%a4%ed%8a%b8-%ec%84%a4%ec%a0%95-%ea%b0%80%ec%9d%b4%eb%93%9c/40358/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>[Linux] 리눅스 커널 및 버전 정보 확인 명령어</title>
		<link>https://lycos7560.com/etc/linux-%eb%a6%ac%eb%88%85%ec%8a%a4-%ec%bb%a4%eb%84%90-%eb%b0%8f-%eb%b2%84%ec%a0%84-%ec%a0%95%eb%b3%b4-%ed%99%95%ec%9d%b8-%eb%aa%85%eb%a0%b9%ec%96%b4/40334/</link>
					<comments>https://lycos7560.com/etc/linux-%eb%a6%ac%eb%88%85%ec%8a%a4-%ec%bb%a4%eb%84%90-%eb%b0%8f-%eb%b2%84%ec%a0%84-%ec%a0%95%eb%b3%b4-%ed%99%95%ec%9d%b8-%eb%aa%85%eb%a0%b9%ec%96%b4/40334/#comments</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Tue, 14 Oct 2025 20:33:58 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[기타]]></category>
		<category><![CDATA[/etc/issue]]></category>
		<category><![CDATA[/etc/os-release]]></category>
		<category><![CDATA[/proc]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[ArchLinux]]></category>
		<category><![CDATA[arm64]]></category>
		<category><![CDATA[armv7l]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Boot]]></category>
		<category><![CDATA[boot_messages]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[CPU_info]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[diagnostics]]></category>
		<category><![CDATA[disk_info]]></category>
		<category><![CDATA[dmesg]]></category>
		<category><![CDATA[dnf]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[hardware_info]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[hostnamectl]]></category>
		<category><![CDATA[i386]]></category>
		<category><![CDATA[info_script]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[kernel_release]]></category>
		<category><![CDATA[kernel_version]]></category>
		<category><![CDATA[less]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux_commands]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[lsb_release]]></category>
		<category><![CDATA[lscpu]]></category>
		<category><![CDATA[memory_info]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[network_info]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[OS_info]]></category>
		<category><![CDATA[package]]></category>
		<category><![CDATA[platform]]></category>
		<category><![CDATA[Processor]]></category>
		<category><![CDATA[procfs]]></category>
		<category><![CDATA[RedHat]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[SUSE]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[system_check]]></category>
		<category><![CDATA[system_information]]></category>
		<category><![CDATA[system_logs]]></category>
		<category><![CDATA[system_script]]></category>
		<category><![CDATA[systemd]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[uname]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[vm]]></category>
		<category><![CDATA[x86_64]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[가상화]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[관리자]]></category>
		<category><![CDATA[권한]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[네트워크]]></category>
		<category><![CDATA[데스크탑]]></category>
		<category><![CDATA[로그인]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[릴리스]]></category>
		<category><![CDATA[메모리]]></category>
		<category><![CDATA[메모리정보]]></category>
		<category><![CDATA[명령어]]></category>
		<category><![CDATA[모니터링]]></category>
		<category><![CDATA[문제해결]]></category>
		<category><![CDATA[버전]]></category>
		<category><![CDATA[부팅]]></category>
		<category><![CDATA[부팅메시지]]></category>
		<category><![CDATA[서버]]></category>
		<category><![CDATA[스크립트]]></category>
		<category><![CDATA[스토리지]]></category>
		<category><![CDATA[시스템관리]]></category>
		<category><![CDATA[시스템로그]]></category>
		<category><![CDATA[시스템점검]]></category>
		<category><![CDATA[시스템정보]]></category>
		<category><![CDATA[아키텍처]]></category>
		<category><![CDATA[운영체제]]></category>
		<category><![CDATA[운영체제정보]]></category>
		<category><![CDATA[진단]]></category>
		<category><![CDATA[커널]]></category>
		<category><![CDATA[커널릴리스]]></category>
		<category><![CDATA[커널버전]]></category>
		<category><![CDATA[터미널]]></category>
		<category><![CDATA[패키지]]></category>
		<category><![CDATA[프로세서]]></category>
		<category><![CDATA[플랫폼]]></category>
		<category><![CDATA[하드웨어]]></category>
		<category><![CDATA[호스트명]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=40334</guid>

					<description><![CDATA[<p>🔥[Linux] 리눅스 커널 및 버전 정보 확인 명령어 1️⃣ 커널 버전 확인 uname 명령어 리눅스 시스템과 커널 정보를 확인할 때 쓰이는 아주 기본적인 도구 옵션 정리 옵션 설명 예시 -r 커널 버전만 출력 (release) 5.15.0-88-generic -v 커널 릴리스 정보 출력 (version) #90-Ubuntu SMP Fri Jul 14 00:44:00 UTC 2023 -s 커널 이름 출력 (system) Linux [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/etc/linux-%eb%a6%ac%eb%88%85%ec%8a%a4-%ec%bb%a4%eb%84%90-%eb%b0%8f-%eb%b2%84%ec%a0%84-%ec%a0%95%eb%b3%b4-%ed%99%95%ec%9d%b8-%eb%aa%85%eb%a0%b9%ec%96%b4/40334/">[Linux] 리눅스 커널 및 버전 정보 확인 명령어</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-3e20bc5d      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#linux-리눅스-커널-및-버전-정보-확인-명령어" class="uagb-toc-link__trigger"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f525.png" alt="🔥" class="wp-smiley" style="height: 1em; max-height: 1em;" />[Linux] 리눅스 커널 및 버전 정보 확인 명령어</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#1-커널-버전-확인" class="uagb-toc-link__trigger">1&#x20e3; 커널 버전 확인</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#uname-명령어" class="uagb-toc-link__trigger">uname 명령어</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#옵션-정리" class="uagb-toc-link__trigger">옵션 정리</a></li></ul><li class="uagb-toc__list"><a href="#cat-procversion" class="uagb-toc-link__trigger">cat /proc/version</a></li></ul><li class="uagb-toc__list"><a href="#2-배포판-정보-확인" class="uagb-toc-link__trigger">2&#x20e3; 배포판 정보 확인</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#etcos-release-파일" class="uagb-toc-link__trigger">/etc/os-release 파일</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#주요-필드-설명" class="uagb-toc-link__trigger">주요 필드 설명</a></li></ul><li class="uagb-toc__list"><a href="#lsb-release-명령어" class="uagb-toc-link__trigger">lsb_release 명령어</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#hostnamectl-명령어" class="uagb-toc-link__trigger">hostnamectl 명령어</a></li></ul><li class="uagb-toc__list"><a href="#3-상세-시스템-정보" class="uagb-toc-link__trigger">3&#x20e3; 상세 시스템 정보</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#etcissue-파일" class="uagb-toc-link__trigger">/etc/issue 파일</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#dmesg-명령어" class="uagb-toc-link__trigger">dmesg 명령어</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#procsyskernel-디렉토리" class="uagb-toc-link__trigger">/proc/sys/kernel/ 디렉토리</a></li></ul><li class="uagb-toc__list"><a href="#4-하드웨어-아키텍처-확인" class="uagb-toc-link__trigger">4&#x20e3; 하드웨어 아키텍처 확인</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#주요-아키텍처-타입" class="uagb-toc-link__trigger">주요 아키텍처 타입</a></li></ul><li class="uagb-toc__list"><a href="#5-배포판별-특수-명령어" class="uagb-toc-link__trigger">5&#x20e3; 배포판별 특수 명령어</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#red-hat-centos-fedora" class="uagb-toc-link__trigger">Red Hat / CentOS / Fedora</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#debian-ubuntu" class="uagb-toc-link__trigger">Debian / Ubuntu</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#suse-opensuse" class="uagb-toc-link__trigger">SUSE / openSUSE</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#arch-linux" class="uagb-toc-link__trigger">Arch Linux</a></li></ul><li class="uagb-toc__list"><a href="#6-종합-정보-확인-스크립트" class="uagb-toc-link__trigger">6&#x20e3; 종합 정보 확인 스크립트</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#빠른-참조표" class="uagb-toc-link__trigger"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4cc.png" alt="📌" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 빠른 참조표</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#가장-많이-사용하는-명령어" class="uagb-toc-link__trigger">가장 많이 사용하는 명령어</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#상황별-추천-명령어" class="uagb-toc-link__trigger">상황별 추천 명령어</a></ul></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h1 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f525.png" alt="🔥" class="wp-smiley" style="height: 1em; max-height: 1em;" />[Linux] 리눅스 커널 및 버전 정보 확인 명령어</h1>



<h2 class="wp-block-heading">1&#x20e3; 커널 버전 확인</h2>



<h3 class="wp-block-heading">uname 명령어</h3>



<p class="wp-block-paragraph">리눅스 시스템과 커널 정보를 확인할 때 쓰이는 아주 기본적인 도구</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 커널 버전만 출력
uname -r

# 모든 시스템 정보 출력
uname -a

# 커널 이름 출력
uname -s

# 커널 릴리스 정보
uname -v
</pre>



<div style="height:15px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">옵션 정리</h4>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>옵션</th><th>설명</th><th>예시</th></tr></thead><tbody><tr><td><code>-r</code></td><td>커널 버전만 출력 (release)</td><td><code>5.15.0-88-generic</code></td></tr><tr><td><code>-v</code></td><td>커널 릴리스 정보 출력 (version)</td><td><code>#90-Ubuntu SMP Fri Jul 14 00:44:00 UTC 2023</code></td></tr><tr><td><code>-s</code></td><td>커널 이름 출력 (system)</td><td><code>Linux</code></td></tr><tr><td><code>-n</code></td><td>호스트 이름 출력 (node)</td><td><code>myserver</code></td></tr><tr><td><code>-m</code></td><td>하드웨어 아키텍처 출력 (machine)</td><td><code>x86_64</code></td></tr><tr><td><code>-p</code></td><td>프로세서 종류 출력 (processor)</td><td><code>x86_64</code></td></tr><tr><td><code>-i</code></td><td>하드웨어 플랫폼 출력 (platform)</td><td><code>x86_64</code></td></tr><tr><td><code>-o</code></td><td>운영체제 이름 출력 (operating system)</td><td><code>GNU/Linux</code></td></tr><tr><td><code>-a</code></td><td>모든 정보 출력 (all)</td><td><code>Linux myserver 5.15.0-88-generic #90-Ubuntu SMP x86_64 GNU/Linux</code></td></tr></tbody></table></figure>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">cat /proc/version</h3>



<p class="wp-block-paragraph"><code>/proc</code>은 리눅스 커널이 제공하는 가상 파일 시스템 (<code>procfs</code>)로 실제 디스크에 존재하는 파일이 아니라, 커널 메모리 정보를 텍스트 파일 형태로 보여주는 인터페이스</p>



<p class="wp-block-paragraph"><code>/proc/version</code>은 커널 버전과 빌드 정보가 들어있는 파일로 <code>cat</code> 명령어로 내용을 읽어서 출력</p>



<ul class="wp-block-list">
<li>uname: 커널 런타임 정보</li>



<li>proc/version: 커널 빌드 정보 포함</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">cat /proc/version
</pre>



<p class="wp-block-paragraph"><strong>출력 예시:</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">Linux version 5.15.0-91-generic (buildd@lcy02-amd64-047) (gcc version 11.4.0)
</pre>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" style="margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50)"/>



<h2 class="wp-block-heading">2&#x20e3; 배포판 정보 확인</h2>



<h3 class="wp-block-heading">/etc/os-release 파일</h3>



<p class="wp-block-paragraph"><code>/etc/os-release</code>는 리눅스 배포판 정보가 들어있는 설정 파일로 커널 정보가 아니라 운영체제(OS) 배포판 정보를 담고 있음</p>



<p class="wp-block-paragraph">대부분의 최신 리눅스 배포판에서 사용 가능하며 시스템 환경, 버전, 이름, ID, URL 등을 확인할 수 있음</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">cat /etc/os-release
</pre>



<p class="wp-block-paragraph"><strong>출력 예시:</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">NAME="Ubuntu"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
ID=ubuntu
VERSION_ID="22.04"
PRETTY_NAME="Ubuntu 22.04.3 LTS"
</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">주요 필드 설명</h4>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>필드</th><th>설명</th><th>예시</th></tr></thead><tbody><tr><td><code>NAME</code></td><td>배포판 이름</td><td><code>Ubuntu</code></td></tr><tr><td><code>VERSION</code></td><td>배포판 버전</td><td><code>22.04.3 LTS (Jammy Jellyfish)</code></td></tr><tr><td><code>ID</code></td><td>배포판 식별자</td><td><code>ubuntu</code></td></tr><tr><td><code>VERSION_ID</code></td><td>버전 번호</td><td><code>22.04</code></td></tr><tr><td><code>PRETTY_NAME</code></td><td>사람이 읽기 쉬운 전체 이름</td><td><code>Ubuntu 22.04.3 LTS</code></td></tr><tr><td><code>HOME_URL</code></td><td>배포판 홈페이지</td><td><code>https://www.ubuntu.com/</code></td></tr></tbody></table></figure>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">lsb_release 명령어</h3>



<p class="wp-block-paragraph">LSB(Linux Standard Base) 정보를 표시하는 명령어로, 배포판의 표준화된 정보를 제공</p>



<p class="wp-block-paragraph">일부 시스템에서는 <code>lsb-release</code> 패키지 설치가 필요할 수 있음</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 모든 정보 출력
lsb_release -a

# 배포판 설명만 출력
lsb_release -d

# 버전만 출력
lsb_release -r

# 배포판 ID만 출력
lsb_release -i
</pre>



<p class="wp-block-paragraph"><strong>출력 예시:</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:       jammy
</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">hostnamectl 명령어</h3>



<p class="wp-block-paragraph">systemd 기반 시스템에서 호스트명과 함께 운영체제 정보를 확인할 수 있는 명령어</p>



<p class="wp-block-paragraph">시스템 관리에 유용하며 호스트명, 운영체제, 커널, 아키텍처 등을 한눈에 볼 수 있음</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">hostnamectl
</pre>



<p class="wp-block-paragraph"><strong>출력 예시:</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">   Static hostname: myserver
         Icon name: computer-vm
           Chassis: vm
        Machine ID: 1234567890abcdef1234567890abcdef
           Boot ID: abcdef1234567890abcdef1234567890
    Virtualization: kvm
  Operating System: Ubuntu 22.04.3 LTS
            Kernel: Linux 5.15.0-91-generic
      Architecture: x86-64
</pre>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" style="margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50)"/>



<h2 class="wp-block-heading">3&#x20e3; 상세 시스템 정보</h2>



<h3 class="wp-block-heading">/etc/issue 파일</h3>



<p class="wp-block-paragraph">로그인 전 터미널에 표시되는 시스템 식별 정보를 담고 있는 파일</p>



<p class="wp-block-paragraph">배포판에 따라 다른 내용을 표시하며, 간단한 배포판 정보를 빠르게 확인할 때 유용</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">cat /etc/issue
</pre>



<p class="wp-block-paragraph"><strong>출력 예시:</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">Ubuntu 22.04.3 LTS \n \l
</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">dmesg 명령어</h3>



<p class="wp-block-paragraph">커널 링 버퍼에 있는 메시지를 출력하는 명령어로, 부팅 시 커널이 출력한 메시지를 확인할 수 있음</p>



<p class="wp-block-paragraph">시스템 부팅 과정과 하드웨어 인식 상태를 파악하는 데 유용</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 커널 버전 정보만 필터링
dmesg | grep "Linux version"

# 부팅 메시지 전체 확인
dmesg | less
</pre>



<p class="wp-block-paragraph"><strong>출력 예시:</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">[    0.000000] Linux version 5.15.0-91-generic (buildd@lcy02-amd64-047)
</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">/proc/sys/kernel/ 디렉토리</h3>



<p class="wp-block-paragraph">커널 파라미터와 설정 정보가 있는 디렉토리</p>



<p class="wp-block-paragraph">실시간으로 커널 설정을 확인하고 필요시 변경할 수 있음</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 커널 버전
cat /proc/sys/kernel/osrelease

# 커널 타입
cat /proc/sys/kernel/ostype

# 호스트 이름
cat /proc/sys/kernel/hostname
</pre>



<p class="wp-block-paragraph"><strong>출력 예시:</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">5.15.0-91-generic
Linux
myserver
</pre>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" style="margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50)"/>



<h2 class="wp-block-heading">4&#x20e3; 하드웨어 아키텍처 확인</h2>



<p class="wp-block-paragraph">시스템의 하드웨어 아키텍처 정보를 확인하는 명령어들</p>



<p class="wp-block-paragraph">소프트웨어 호환성 확인이나 패키지 설치 시 필요한 정보</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 아키텍처 정보 (가장 많이 사용)
uname -m

# 프로세서 정보
uname -p

# 하드웨어 플랫폼
uname -i

# CPU 상세 정보
lscpu
</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">주요 아키텍처 타입</h4>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>아키텍처</th><th>설명</th></tr></thead><tbody><tr><td><code>x86_64</code></td><td>64비트 인텔/AMD 프로세서</td></tr><tr><td><code>i386</code>, <code>i686</code></td><td>32비트 인텔 프로세서</td></tr><tr><td><code>aarch64</code></td><td>64비트 ARM 프로세서</td></tr><tr><td><code>armv7l</code></td><td>32비트 ARM 프로세서</td></tr></tbody></table></figure>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" style="margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50)"/>



<h2 class="wp-block-heading">5&#x20e3; 배포판별 특수 명령어</h2>



<h3 class="wp-block-heading">Red Hat / CentOS / Fedora</h3>



<p class="wp-block-paragraph">Red Hat 계열 배포판에서 사용하는 버전 확인 방법</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># Red Hat 릴리스 정보
cat /etc/redhat-release

# CentOS 릴리스 패키지 정보
rpm -q centos-release

# Fedora 버전 확인
cat /etc/fedora-release
</pre>



<p class="wp-block-paragraph"><strong>출력 예시:</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">CentOS Linux release 7.9.2009 (Core)
</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">Debian / Ubuntu</h3>



<p class="wp-block-paragraph">Debian 계열 배포판에서 사용하는 버전 확인 방법</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># Debian 버전
cat /etc/debian_version

# Ubuntu 버전 (os-release 사용 권장)
cat /etc/lsb-release
</pre>



<p class="wp-block-paragraph"><strong>출력 예시:</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">12.5
</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">SUSE / openSUSE</h3>



<p class="wp-block-paragraph">SUSE 계열 배포판에서 사용하는 버전 확인 방법</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># SUSE 릴리스 정보 (구버전)
cat /etc/SuSE-release

# openSUSE 버전 (최신)
cat /etc/os-release
</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">Arch Linux</h3>



<p class="wp-block-paragraph">Arch Linux에서 사용하는 버전 확인 방법</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># Arch 릴리스 정보
cat /etc/arch-release

# 상세 정보
cat /etc/os-release
</pre>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" style="margin-top:var(--wp--preset--spacing--40);margin-bottom:var(--wp--preset--spacing--40)"/>



<h2 class="wp-block-heading">6&#x20e3; 종합 정보 확인 스크립트</h2>



<p class="wp-block-paragraph">여러 명령어를 한 번에 실행하여 시스템의 전체 정보를 확인할 수 있는 스크립트</p>



<p class="wp-block-paragraph">시스템 진단이나 문서화 작업 시 유용하게 활용 가능</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">#!/bin/bash

echo "=========================================="
echo "  시스템 정보 확인"
echo "=========================================="

echo ""
echo "=== 커널 버전 ==="
uname -r

echo ""
echo "=== 전체 시스템 정보 ==="
uname -a

echo ""
echo "=== 배포판 정보 ==="
cat /etc/os-release | head -5

echo ""
echo "=== 아키텍처 ==="
uname -m

echo ""
echo "=== 호스트 정보 ==="
hostnamectl | grep -E "hostname|Operating|Kernel|Architecture"

echo ""
echo "=========================================="
</pre>



<p class="wp-block-paragraph"><strong>실행 방법:</strong></p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 실행 권한 부여
chmod +x system_info.sh

# 스크립트 실행
./system_info.sh
</pre>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" style="margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50)"/>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4cc.png" alt="📌" class="wp-smiley" style="height: 1em; max-height: 1em;" /> 빠른 참조표</h2>



<h3 class="wp-block-heading">가장 많이 사용하는 명령어</h3>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>목적</th><th>명령어</th><th>설명</th></tr></thead><tbody><tr><td>커널 버전</td><td><code>uname -r</code></td><td>가장 빠르고 간단</td></tr><tr><td>전체 시스템 정보</td><td><code>uname -a</code></td><td>한 줄로 모든 정보</td></tr><tr><td>배포판 정보</td><td><code>cat /etc/os-release</code></td><td>표준 방식</td></tr><tr><td>상세 시스템 정보</td><td><code>hostnamectl</code></td><td>systemd 기반 시스템</td></tr><tr><td>아키텍처</td><td><code>uname -m</code></td><td>CPU 아키텍처 확인</td></tr></tbody></table></figure>



<h3 class="wp-block-heading">상황별 추천 명령어</h3>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>상황</th><th>추천 명령어</th></tr></thead><tbody><tr><td>처음 서버 접속</td><td><code>uname -a &amp;&amp; cat /etc/os-release</code></td></tr><tr><td>패키지 설치 전</td><td><code>uname -m &amp;&amp; cat /etc/os-release</code></td></tr><tr><td>문제 해결</td><td><code>dmesg | grep -i error</code></td></tr><tr><td>빠른 확인</td><td><code>uname -r</code></td></tr></tbody></table></figure>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" style="margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50)"/>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://lycos7560.com/etc/linux-%eb%a6%ac%eb%88%85%ec%8a%a4-%ec%bb%a4%eb%84%90-%eb%b0%8f-%eb%b2%84%ec%a0%84-%ec%a0%95%eb%b3%b4-%ed%99%95%ec%9d%b8-%eb%aa%85%eb%a0%b9%ec%96%b4/40334/">[Linux] 리눅스 커널 및 버전 정보 확인 명령어</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/etc/linux-%eb%a6%ac%eb%88%85%ec%8a%a4-%ec%bb%a4%eb%84%90-%eb%b0%8f-%eb%b2%84%ec%a0%84-%ec%a0%95%eb%b3%b4-%ed%99%95%ec%9d%b8-%eb%aa%85%eb%a0%b9%ec%96%b4/40334/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>MySQL 서비스 관리 명령어 (Ubuntu)</title>
		<link>https://lycos7560.com/ubuntu/mysql-%ec%84%9c%eb%b9%84%ec%8a%a4-%ea%b4%80%eb%a6%ac-%eb%aa%85%eb%a0%b9%ec%96%b4-ubuntu/40254/</link>
					<comments>https://lycos7560.com/ubuntu/mysql-%ec%84%9c%eb%b9%84%ec%8a%a4-%ea%b4%80%eb%a6%ac-%eb%aa%85%eb%a0%b9%ec%96%b4-ubuntu/40254/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Wed, 13 Aug 2025 11:50:10 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[기타]]></category>
		<category><![CDATA[3306]]></category>
		<category><![CDATA[ALTER USER]]></category>
		<category><![CDATA[ALTERUSER]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[configuration file]]></category>
		<category><![CDATA[CPU]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[Data]]></category>
		<category><![CDATA[Data Backup]]></category>
		<category><![CDATA[data migration]]></category>
		<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[data security]]></category>
		<category><![CDATA[DataBase]]></category>
		<category><![CDATA[database administrator]]></category>
		<category><![CDATA[database list]]></category>
		<category><![CDATA[database management]]></category>
		<category><![CDATA[DB]]></category>
		<category><![CDATA[DBA]]></category>
		<category><![CDATA[Developer]]></category>
		<category><![CDATA[Development Environment]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Disk]]></category>
		<category><![CDATA[error resolution]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[GRANT]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[iptables.]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[listening]]></category>
		<category><![CDATA[local access]]></category>
		<category><![CDATA[Manual]]></category>
		<category><![CDATA[Memory]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[my.cnf]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL account]]></category>
		<category><![CDATA[MySQL backup]]></category>
		<category><![CDATA[MySQL client]]></category>
		<category><![CDATA[MySQL configuration]]></category>
		<category><![CDATA[MySQL installation]]></category>
		<category><![CDATA[MySQL monitoring]]></category>
		<category><![CDATA[MySQL recovery]]></category>
		<category><![CDATA[MySQL setup]]></category>
		<category><![CDATA[MySQL status]]></category>
		<category><![CDATA[MySQL tips]]></category>
		<category><![CDATA[MySQL tutorial]]></category>
		<category><![CDATA[MySQL version]]></category>
		<category><![CDATA[mysqldump]]></category>
		<category><![CDATA[MySQL계정]]></category>
		<category><![CDATA[MySQL모니터링]]></category>
		<category><![CDATA[MySQL백업]]></category>
		<category><![CDATA[MySQL버전]]></category>
		<category><![CDATA[MySQL복구]]></category>
		<category><![CDATA[MySQL상태]]></category>
		<category><![CDATA[MySQL서비스]]></category>
		<category><![CDATA[MySQL설정]]></category>
		<category><![CDATA[MySQL설치]]></category>
		<category><![CDATA[MySQL클라이언트]]></category>
		<category><![CDATA[MySQL튜토리얼]]></category>
		<category><![CDATA[MySQL팁]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[Performance Tuning]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[Port Number]]></category>
		<category><![CDATA[privilege management]]></category>
		<category><![CDATA[privileges]]></category>
		<category><![CDATA[problem solving]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[PROCESSLIST]]></category>
		<category><![CDATA[Production Environment]]></category>
		<category><![CDATA[Query]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[Remote Access]]></category>
		<category><![CDATA[remote connection]]></category>
		<category><![CDATA[resource]]></category>
		<category><![CDATA[REVOKE]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[running queries]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[security settings]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[server administration]]></category>
		<category><![CDATA[server operation]]></category>
		<category><![CDATA[service management]]></category>
		<category><![CDATA[service restart]]></category>
		<category><![CDATA[service start]]></category>
		<category><![CDATA[service stop]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[Shell스크립트]]></category>
		<category><![CDATA[SHOW STATUS]]></category>
		<category><![CDATA[SHOW VARIABLES]]></category>
		<category><![CDATA[SHOWSTATUS]]></category>
		<category><![CDATA[SHOWVARIABLES]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL query]]></category>
		<category><![CDATA[SQL쿼리]]></category>
		<category><![CDATA[status check]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[superuser]]></category>
		<category><![CDATA[system engineer]]></category>
		<category><![CDATA[system management]]></category>
		<category><![CDATA[systemctl]]></category>
		<category><![CDATA[TABLE STATUS]]></category>
		<category><![CDATA[TABLESTATUS]]></category>
		<category><![CDATA[tech info]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[tuning]]></category>
		<category><![CDATA[TUTORIAL]]></category>
		<category><![CDATA[ufw]]></category>
		<category><![CDATA[User]]></category>
		<category><![CDATA[user list]]></category>
		<category><![CDATA[User Management]]></category>
		<category><![CDATA[version check]]></category>
		<category><![CDATA[가이드]]></category>
		<category><![CDATA[개발]]></category>
		<category><![CDATA[개발자]]></category>
		<category><![CDATA[개발환경]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[관리]]></category>
		<category><![CDATA[권한]]></category>
		<category><![CDATA[권한관리]]></category>
		<category><![CDATA[기술정보]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[네트워크]]></category>
		<category><![CDATA[데브옵스]]></category>
		<category><![CDATA[데이터]]></category>
		<category><![CDATA[데이터마이그레이션]]></category>
		<category><![CDATA[데이터백업]]></category>
		<category><![CDATA[데이터베이스]]></category>
		<category><![CDATA[데이터베이스관리]]></category>
		<category><![CDATA[데이터베이스관리자]]></category>
		<category><![CDATA[데이터베이스목록]]></category>
		<category><![CDATA[데이터보안]]></category>
		<category><![CDATA[데이터복구]]></category>
		<category><![CDATA[디스크]]></category>
		<category><![CDATA[로그분석]]></category>
		<category><![CDATA[로컬접속]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[리모트접속]]></category>
		<category><![CDATA[리소스]]></category>
		<category><![CDATA[리스닝]]></category>
		<category><![CDATA[마이SQL]]></category>
		<category><![CDATA[마이그레이션]]></category>
		<category><![CDATA[매뉴얼]]></category>
		<category><![CDATA[메모리]]></category>
		<category><![CDATA[명령어]]></category>
		<category><![CDATA[모니터링]]></category>
		<category><![CDATA[문제해결]]></category>
		<category><![CDATA[방화벽]]></category>
		<category><![CDATA[배치]]></category>
		<category><![CDATA[백업]]></category>
		<category><![CDATA[버전확인]]></category>
		<category><![CDATA[보안]]></category>
		<category><![CDATA[보안설정]]></category>
		<category><![CDATA[복구]]></category>
		<category><![CDATA[비밀번호]]></category>
		<category><![CDATA[사용자관리]]></category>
		<category><![CDATA[사용자목록]]></category>
		<category><![CDATA[상태확인]]></category>
		<category><![CDATA[서버]]></category>
		<category><![CDATA[서버관리]]></category>
		<category><![CDATA[서버구축]]></category>
		<category><![CDATA[서버마이그레이션]]></category>
		<category><![CDATA[서버운영]]></category>
		<category><![CDATA[서비스관리]]></category>
		<category><![CDATA[서비스시작]]></category>
		<category><![CDATA[서비스재시작]]></category>
		<category><![CDATA[서비스중지]]></category>
		<category><![CDATA[설정파일]]></category>
		<category><![CDATA[성능튜닝]]></category>
		<category><![CDATA[센토스]]></category>
		<category><![CDATA[쉘]]></category>
		<category><![CDATA[슈퍼유저]]></category>
		<category><![CDATA[스크립트]]></category>
		<category><![CDATA[스토리지]]></category>
		<category><![CDATA[시스템]]></category>
		<category><![CDATA[시스템관리]]></category>
		<category><![CDATA[시스템로그]]></category>
		<category><![CDATA[시스템엔지니어]]></category>
		<category><![CDATA[실행중인쿼리]]></category>
		<category><![CDATA[예약작업]]></category>
		<category><![CDATA[오류해결]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[운영]]></category>
		<category><![CDATA[운영환경]]></category>
		<category><![CDATA[원격접속]]></category>
		<category><![CDATA[유지보수]]></category>
		<category><![CDATA[일반사용자]]></category>
		<category><![CDATA[자동화]]></category>
		<category><![CDATA[정보]]></category>
		<category><![CDATA[커맨드라인]]></category>
		<category><![CDATA[쿼리]]></category>
		<category><![CDATA[터미널]]></category>
		<category><![CDATA[튜닝]]></category>
		<category><![CDATA[튜토리얼]]></category>
		<category><![CDATA[트러블슈팅]]></category>
		<category><![CDATA[패스워드]]></category>
		<category><![CDATA[포트]]></category>
		<category><![CDATA[포트번호]]></category>
		<category><![CDATA[프로덕션]]></category>
		<category><![CDATA[프로세스]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=40254</guid>

					<description><![CDATA[<p>MySQL 서비스 관리 명령어 상태 확인 서비스 시작 서비스 재시작 서비스 중지 부팅 시 자동 시작 설정 파일 추가 유용한 명령어 백업 및 복구</p>
<p>The post <a href="https://lycos7560.com/ubuntu/mysql-%ec%84%9c%eb%b9%84%ec%8a%a4-%ea%b4%80%eb%a6%ac-%eb%aa%85%eb%a0%b9%ec%96%b4-ubuntu/40254/">MySQL 서비스 관리 명령어 (Ubuntu)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-2c60eeae      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#mysql-서비스-관리-명령어" class="uagb-toc-link__trigger">MySQL 서비스 관리 명령어</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#상태-확인" class="uagb-toc-link__trigger">상태 확인</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#서비스-시작" class="uagb-toc-link__trigger">서비스 시작</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#서비스-재시작" class="uagb-toc-link__trigger">서비스 재시작</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#서비스-중지" class="uagb-toc-link__trigger">서비스 중지</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#부팅-시-자동-시작" class="uagb-toc-link__trigger">부팅 시 자동 시작</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#설정-파일" class="uagb-toc-link__trigger">설정 파일</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#추가-유용한-명령어" class="uagb-toc-link__trigger">추가 유용한 명령어</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#백업-및-복구" class="uagb-toc-link__trigger">백업 및 복구</a></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">MySQL 서비스 관리 명령어</h2>



<h3 class="wp-block-heading">상태 확인</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl status mysql</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">서비스 시작</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl start mysql</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">서비스 재시작</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 설정 변경 후 MySQL 재시작 필요
sudo systemctl restart mysql</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">서비스 중지</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl stop mysql</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">부팅 시 자동 시작</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 부팅 시 자동 시작 활성화
sudo systemctl enable mysql

# 부팅 시 자동 시작 비활성화
sudo systemctl disable mysql</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">설정 파일</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo cat /etc/mysql/my.cnf

# 현재 상태 정보 확인
mysql -u root -p -e "SHOW STATUS;"

# MySQL 클라이언트로 현재 설정 값 확인
mysql -u root -p -e "SHOW VARIABLES;"

# 특정 설정 값만 필터링해서 보기 (예: buffer_pool_size)
mysql -u root -p -e "SHOW VARIABLES LIKE '%buffer_pool_size%';"</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">추가 유용한 명령어</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># MySQL 프로세스 확인
ps aux | grep mysql

# MySQL 버전 확인
mysql -V
mysql -u root -p -e "SELECT version();"

# 사용자 목록 확인
mysql -u root -p -e "SELECT user, host FROM mysql.user;"

# 데이터베이스 목록 확인
mysql -u root -p -e "SHOW DATABASES;"

# 테이블 상태 확인
mysql -u root -p -e "SHOW TABLE STATUS;"

# 실행 중인 쿼리 확인
mysql -u root -p -e "SHOW PROCESSLIST;"</pre>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">백업 및 복구</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 전체 데이터베이스 백업
sudo mysqldump -u root -p --all-databases > full_backup.sql

# 특정 데이터베이스 백업
sudo mysqldump -u root -p database_name > db_backup.sql

# 백업 파일로 복구
mysql -u root -p &lt; full_backup.sql</pre>
<p>The post <a href="https://lycos7560.com/ubuntu/mysql-%ec%84%9c%eb%b9%84%ec%8a%a4-%ea%b4%80%eb%a6%ac-%eb%aa%85%eb%a0%b9%ec%96%b4-ubuntu/40254/">MySQL 서비스 관리 명령어 (Ubuntu)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/mysql-%ec%84%9c%eb%b9%84%ec%8a%a4-%ea%b4%80%eb%a6%ac-%eb%aa%85%eb%a0%b9%ec%96%b4-ubuntu/40254/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu export 명령어 (.NET)</title>
		<link>https://lycos7560.com/ubuntu/ubuntu-export-%eb%aa%85%eb%a0%b9%ec%96%b4-net/40241/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu-export-%eb%aa%85%eb%a0%b9%ec%96%b4-net/40241/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Fri, 08 Aug 2025 06:21:42 +0000</pubDate>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[app-config]]></category>
		<category><![CDATA[appsettings]]></category>
		<category><![CDATA[appsettings.development.json]]></category>
		<category><![CDATA[appsettings.json]]></category>
		<category><![CDATA[appsettings.production.json]]></category>
		<category><![CDATA[appsettings.staging.json]]></category>
		<category><![CDATA[asp-net-core]]></category>
		<category><![CDATA[aspnetcore]]></category>
		<category><![CDATA[aspnetcore-environment]]></category>
		<category><![CDATA[aspnetcore-urls]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bash_profile]]></category>
		<category><![CDATA[bashrc]]></category>
		<category><![CDATA[Build]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[child-process]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[Configuration]]></category>
		<category><![CDATA[connection-string-env]]></category>
		<category><![CDATA[connection-strings]]></category>
		<category><![CDATA[CSharp]]></category>
		<category><![CDATA[database-config]]></category>
		<category><![CDATA[database-connection]]></category>
		<category><![CDATA[db-connection]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[dotnet]]></category>
		<category><![CDATA[dotnet-config]]></category>
		<category><![CDATA[dotnet-core]]></category>
		<category><![CDATA[dotnet-environment]]></category>
		<category><![CDATA[dotnet-environment-variable]]></category>
		<category><![CDATA[dotnet-publish]]></category>
		<category><![CDATA[dotnet-run]]></category>
		<category><![CDATA[dotnet-settings]]></category>
		<category><![CDATA[env]]></category>
		<category><![CDATA[Environment]]></category>
		<category><![CDATA[environment-config]]></category>
		<category><![CDATA[environment-example]]></category>
		<category><![CDATA[environment-variable]]></category>
		<category><![CDATA[environment-variable-setup]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[export-command]]></category>
		<category><![CDATA[export-example]]></category>
		<category><![CDATA[export-variable]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux-dotnet]]></category>
		<category><![CDATA[linux-export]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[port-config]]></category>
		<category><![CDATA[printenv]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[prod]]></category>
		<category><![CDATA[Production]]></category>
		<category><![CDATA[production-server]]></category>
		<category><![CDATA[publish]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[secrets]]></category>
		<category><![CDATA[secure-environment-variable]]></category>
		<category><![CDATA[server-config]]></category>
		<category><![CDATA[server-environment]]></category>
		<category><![CDATA[Service]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shell-variable]]></category>
		<category><![CDATA[stage]]></category>
		<category><![CDATA[Staging]]></category>
		<category><![CDATA[staging-server]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[system-environment]]></category>
		<category><![CDATA[systemd]]></category>
		<category><![CDATA[systemd-service]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[test-environment]]></category>
		<category><![CDATA[ubuntu-dotnet]]></category>
		<category><![CDATA[ubuntu-dotnet-deploy]]></category>
		<category><![CDATA[url-binding]]></category>
		<category><![CDATA[개발]]></category>
		<category><![CDATA[개발서버]]></category>
		<category><![CDATA[개발환경]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[닷넷]]></category>
		<category><![CDATA[닷넷코어]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[민감정보]]></category>
		<category><![CDATA[배포]]></category>
		<category><![CDATA[배포서버]]></category>
		<category><![CDATA[배포환경]]></category>
		<category><![CDATA[서버환경]]></category>
		<category><![CDATA[설정파일]]></category>
		<category><![CDATA[쉘]]></category>
		<category><![CDATA[스테이징]]></category>
		<category><![CDATA[스테이징환경]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[운영환경]]></category>
		<category><![CDATA[터미널]]></category>
		<category><![CDATA[테스트서버]]></category>
		<category><![CDATA[테스트환경]]></category>
		<category><![CDATA[포트설정]]></category>
		<category><![CDATA[프로덕션]]></category>
		<category><![CDATA[프로덕션환경]]></category>
		<category><![CDATA[프로세스]]></category>
		<category><![CDATA[환경변수]]></category>
		<category><![CDATA[환경변수보안]]></category>
		<category><![CDATA[환경설정]]></category>
		<category><![CDATA[환경설정파일]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=40241</guid>

					<description><![CDATA[<p>📄 Ubuntu export 명령어 1️⃣ 개요 export 명령어는 현재 셸 환경에 환경 변수를 등록하거나 수정하는 데 사용 등록된 변수는 현재 셸과 그 자식 프로세스에서 사용할 수 있음 2️⃣ 기본 문법 3️⃣ 특징 4️⃣ 확인 방법 💡 .NET에서의 사용 예시 1️⃣ ASP.NET Core에서 환경 지정 프로젝트 유형 권장 환경 변수 이유 ASP.NET Core 웹앱 ASPNETCORE_ENVIRONMENT 웹 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-export-%eb%aa%85%eb%a0%b9%ec%96%b4-net/40241/">Ubuntu export 명령어 (.NET)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-b32ec816      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#ubuntu-export-명령어" class="uagb-toc-link__trigger"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4c4.png" alt="📄" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Ubuntu export 명령어</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#1-개요" class="uagb-toc-link__trigger">1&#x20e3; 개요</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#2-기본-문법" class="uagb-toc-link__trigger">2&#x20e3; 기본 문법</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#3-특징" class="uagb-toc-link__trigger">3&#x20e3; 특징</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#4-확인-방법" class="uagb-toc-link__trigger">4&#x20e3; 확인 방법</a></li></ul></li><li class="uagb-toc__list"><a href="#net에서의-사용-예시" class="uagb-toc-link__trigger"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4a1.png" alt="💡" class="wp-smiley" style="height: 1em; max-height: 1em;" /> .NET에서의 사용 예시</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#1-aspnet-core에서-환경-지정" class="uagb-toc-link__trigger">1&#x20e3; ASP.NET Core에서 환경 지정</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#2-net에서-특정-포트로-실행" class="uagb-toc-link__trigger">2&#x20e3; .NET에서 특정 포트로 실행</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#3-영구-설정" class="uagb-toc-link__trigger">3&#x20e3; 영구 설정</a></ul></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4c4.png" alt="📄" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Ubuntu export 명령어</h2>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">1&#x20e3; 개요</h3>



<p class="wp-block-paragraph"><code>export</code> 명령어는 <strong>현재 셸 환경에 환경 변수를 등록하거나 수정</strong>하는 데 사용</p>



<p class="wp-block-paragraph">등록된 변수는 <strong>현재 셸과 그 자식 프로세스</strong>에서 사용할 수 있음</p>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">2&#x20e3; 기본 문법</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">export 변수명=값

또는

export 변수명</pre>



<ul class="wp-block-list">
<li><code>변수명=값</code> : 새 환경 변수를 만들거나 기존 변수 값을 변경</li>



<li><code>변수명</code> : 이미 선언된 변수를 환경 변수로 승격</li>
</ul>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">3&#x20e3; 특징</h3>



<ul class="wp-block-list">
<li>환경 변수는 <strong>프로세스 간 전달</strong> 가능 (부모 → 자식).</li>



<li><code>export</code>로 설정한 변수는 <strong>현재 세션</strong>에서만 유효.</li>



<li>영구적으로 유지하려면 <code>~/.bashrc</code> 또는 <code>~/.bash_profile</code>에 추가해야 함.</li>
</ul>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">4&#x20e3; 확인 방법</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">echo $변수명       # 변수 값 출력
printenv 변수명    # 환경 변수 확인
env                # 전체 환경 변수 목록
</pre>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-wide" style="margin-top:var(--wp--preset--spacing--50);margin-bottom:var(--wp--preset--spacing--50)"/>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading"><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f4a1.png" alt="💡" class="wp-smiley" style="height: 1em; max-height: 1em;" /> .NET에서의 사용 예시</h2>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">1&#x20e3; ASP.NET Core에서 환경 지정</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">export ASPNETCORE_ENVIRONMENT=Development
export ASPNETCORE_ENVIRONMENT=Staging
export ASPNETCORE_ENVIRONMENT=Production

export DOTNET_ENVIRONMENT=Development
export DOTNET_ENVIRONMENT=Staging // 실제 운영 환경(Production)과 거의 동일하지만, 사용자에게는 서비스되지 않는 사전 검증용 환경
export DOTNET_ENVIRONMENT=Production

dotnet run</pre>



<ul class="wp-block-list">
<li>예를 들어 <code>Development</code>로 설정하면, 개발 모드 환경 설정(<code>appsettings.Development.json</code>)을 자동으로 사용</li>
</ul>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>프로젝트 유형</th><th>권장 환경 변수</th><th>이유</th></tr></thead><tbody><tr><td>ASP.NET Core 웹앱</td><td>ASPNETCORE_ENVIRONMENT</td><td>웹 호스팅에 최적화된 공식 표준이며 <code>DOTNET_ENVIRONMENT</code>보다 <strong>우선순위가 높</strong></td></tr><tr><td>Worker Service</td><td>DOTNET_ENVIRONMENT</td><td>웹과 관련 없는 일반적인 .NET 호스팅 환경을 위한 표준 변수</td></tr><tr><td>콘솔 앱</td><td>DOTNET_ENVIRONMENT</td><td>범용적 사용</td></tr><tr><td>Blazor</td><td>ASPNETCORE_ENVIRONMENT</td><td>ASP.NET Core 호스팅 모델을 기반으로 하므로 웹 앱과 동일한 기준</td></tr></tbody></table></figure>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">2&#x20e3; .NET에서 특정 포트로 실행</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 5005번 포트로 애플리케이션 실행
export ASPNETCORE_URLS="http://localhost:5005"

dotnet run</pre>



<ul class="wp-block-list">
<li><code>ASPNETCORE_URLS</code> 환경 변수를 이용해 실행 시 포트를 변경할 수 있음</li>
</ul>



<div style="height:25px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">3&#x20e3; 영구 설정</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 1. .bashrc 파일에 환경 변수 설정 명령어를 추가
echo 'export DOTNET_ENVIRONMENT=Production' >> ~/.bashrc

# 2. 수정된 .bashrc 설정을 현재 터미널 세션에 바로 적용
source ~/.bashrc

# 3. 설정 확인
echo $DOTNET_ENVIRONMENT</pre>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-export-%eb%aa%85%eb%a0%b9%ec%96%b4-net/40241/">Ubuntu export 명령어 (.NET)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu-export-%eb%aa%85%eb%a0%b9%ec%96%b4-net/40241/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu &#8211; Hard disk management (Add Disk)</title>
		<link>https://lycos7560.com/ubuntu/ubuntu-hard-disk-management-add-disk/38929/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu-hard-disk-management-add-disk/38929/#comments</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Thu, 05 Dec 2024 03:48:00 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[/etc/fstab]]></category>
		<category><![CDATA[Auto Mount]]></category>
		<category><![CDATA[Block Device]]></category>
		<category><![CDATA[Boot Loader]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Data Integrity]]></category>
		<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Device File]]></category>
		<category><![CDATA[Disk]]></category>
		<category><![CDATA[Disk Management]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[Filesystem Type]]></category>
		<category><![CDATA[Hard Drive]]></category>
		<category><![CDATA[Inode]]></category>
		<category><![CDATA[Journaling]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mkfs.ext4]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[Partition]]></category>
		<category><![CDATA[Partition Alignment]]></category>
		<category><![CDATA[Partition Table]]></category>
		<category><![CDATA[SATA]]></category>
		<category><![CDATA[SCSI]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[Superblock]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[데이터 무결성]]></category>
		<category><![CDATA[데이터 복구]]></category>
		<category><![CDATA[디스크 관리]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[마운트]]></category>
		<category><![CDATA[부트 로더]]></category>
		<category><![CDATA[블록 장치]]></category>
		<category><![CDATA[슈퍼블록]]></category>
		<category><![CDATA[시스템 관리]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[인오드]]></category>
		<category><![CDATA[자동 마운트]]></category>
		<category><![CDATA[장치 파일]]></category>
		<category><![CDATA[저널링]]></category>
		<category><![CDATA[추가]]></category>
		<category><![CDATA[커맨드라인]]></category>
		<category><![CDATA[터미널]]></category>
		<category><![CDATA[파일 시스템]]></category>
		<category><![CDATA[파일 시스템 유형]]></category>
		<category><![CDATA[파티션]]></category>
		<category><![CDATA[파티션 정렬]]></category>
		<category><![CDATA[파티션 테이블]]></category>
		<category><![CDATA[하드 드라이브]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=38929</guid>

					<description><![CDATA[<p>현재는 물리적인 하드디스크가 장착되어 있는 상태 fdisk를 이용하여 파티셔닝을 해주어야 사용이 가능하다. n 명령어를 입력하여 새로운 파티션을 생성 파티션 타입을 선택하는 단계에서 p를 입력하여 기본 값인 primary 파티션을 선택 파티션 번호를 1로 설정 (기본적으로 MBR은 최대 4개의 주 파티션을 지원) 첫 번째 섹터를 기본 값인 2048로 설정(섹터 2048까지의 공간은 일반적으로 디스크의 메타데이터, 부트 로더, 파티션 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-hard-disk-management-add-disk/38929/">Ubuntu &#8211; Hard disk management (Add Disk)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">VMware® Workstation 17 Pro
Version 17.0.2</pre>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="502" height="351" src="https://lycos7560.com/wp-content/uploads/2024/12/image-45.png" alt="" class="wp-image-38930" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-45.png 502w, https://lycos7560.com/wp-content/uploads/2024/12/image-45-300x210.png 300w" sizes="(max-width: 502px) 100vw, 502px" /><figcaption class="wp-element-caption">Edit virtual machine settings</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="757" height="728" src="https://lycos7560.com/wp-content/uploads/2024/12/image-46.png" alt="" class="wp-image-38931" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-46.png 757w, https://lycos7560.com/wp-content/uploads/2024/12/image-46-300x289.png 300w" sizes="(max-width: 757px) 100vw, 757px" /><figcaption class="wp-element-caption">Add</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="757" height="729" src="https://lycos7560.com/wp-content/uploads/2024/12/image-47.png" alt="" class="wp-image-38932" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-47.png 757w, https://lycos7560.com/wp-content/uploads/2024/12/image-47-300x289.png 300w" sizes="(max-width: 757px) 100vw, 757px" /><figcaption class="wp-element-caption">HardDisk</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="761" height="731" src="https://lycos7560.com/wp-content/uploads/2024/12/image-48.png" alt="" class="wp-image-38933" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-48.png 761w, https://lycos7560.com/wp-content/uploads/2024/12/image-48-300x288.png 300w" sizes="(max-width: 761px) 100vw, 761px" /><figcaption class="wp-element-caption">SCSI 선택</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="761" height="732" src="https://lycos7560.com/wp-content/uploads/2024/12/image-49.png" alt="" class="wp-image-38934" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-49.png 761w, https://lycos7560.com/wp-content/uploads/2024/12/image-49-300x289.png 300w" sizes="(max-width: 761px) 100vw, 761px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="761" height="732" src="https://lycos7560.com/wp-content/uploads/2024/12/image-50.png" alt="" class="wp-image-38935" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-50.png 761w, https://lycos7560.com/wp-content/uploads/2024/12/image-50-300x289.png 300w" sizes="(max-width: 761px) 100vw, 761px" /><figcaption class="wp-element-caption">테스트용 1GB, Store virtual disk as single file 로 설정 (하나의 파일로 관리)</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="439" height="424" src="https://lycos7560.com/wp-content/uploads/2024/12/image-51.png" alt="" class="wp-image-38936" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-51.png 439w, https://lycos7560.com/wp-content/uploads/2024/12/image-51-300x290.png 300w" sizes="(max-width: 439px) 100vw, 439px" /><figcaption class="wp-element-caption">파일의 이름을 설정</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="756" height="732" src="https://lycos7560.com/wp-content/uploads/2024/12/image-52.png" alt="" class="wp-image-38937" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-52.png 756w, https://lycos7560.com/wp-content/uploads/2024/12/image-52-300x290.png 300w" sizes="(max-width: 756px) 100vw, 756px" /><figcaption class="wp-element-caption">추가된 디스크 확인</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="751" height="725" src="https://lycos7560.com/wp-content/uploads/2024/12/image-53.png" alt="" class="wp-image-38938" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-53.png 751w, https://lycos7560.com/wp-content/uploads/2024/12/image-53-300x290.png 300w" sizes="(max-width: 751px) 100vw, 751px" /><figcaption class="wp-element-caption">SCSI 0:1 New Hard Disk에 확인됨 </figcaption></figure>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-7387b849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:50%">
<figure class="wp-block-image size-full"><img decoding="async" width="526" height="349" src="https://lycos7560.com/wp-content/uploads/2024/12/image-54.png" alt="" class="wp-image-38939" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-54.png 526w, https://lycos7560.com/wp-content/uploads/2024/12/image-54-300x199.png 300w" sizes="(max-width: 526px) 100vw, 526px" /></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:50%">
<figure class="wp-block-image size-full"><img decoding="async" width="358" height="169" src="https://lycos7560.com/wp-content/uploads/2024/12/image-55.png" alt="" class="wp-image-38940" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-55.png 358w, https://lycos7560.com/wp-content/uploads/2024/12/image-55-300x142.png 300w" sizes="(max-width: 358px) 100vw, 358px" /></figure>
</div>
</div>



<p class="wp-block-paragraph"></p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 확인
ls /dev/sd*</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="499" height="306" src="https://lycos7560.com/wp-content/uploads/2024/12/image-57.png" alt="" class="wp-image-38942" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-57.png 499w, https://lycos7560.com/wp-content/uploads/2024/12/image-57-300x184.png 300w" sizes="(max-width: 499px) 100vw, 499px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=9mJznB0ckjo&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=33" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=9mJznB0ckjo&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=33</a></figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1103" height="280" src="https://lycos7560.com/wp-content/uploads/2024/12/image-56.png" alt="" class="wp-image-38941" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-56.png 1103w, https://lycos7560.com/wp-content/uploads/2024/12/image-56-300x76.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-56-768x195.png 768w" sizes="(max-width: 1103px) 100vw, 1103px" /></figure>



<p class="wp-block-paragraph">현재는 물리적인 하드디스크가 장착되어 있는 상태 fdisk를 이용하여 파티셔닝을 해주어야 사용이 가능하다.</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1209" height="561" src="https://lycos7560.com/wp-content/uploads/2024/12/image-58.png" alt="" class="wp-image-38943" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-58.png 1209w, https://lycos7560.com/wp-content/uploads/2024/12/image-58-300x139.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-58-768x356.png 768w" sizes="(max-width: 1209px) 100vw, 1209px" /></figure>



<p class="wp-block-paragraph"><code>n</code> 명령어를 입력하여 새로운 파티션을 생성</p>



<p class="wp-block-paragraph">파티션 타입을 선택하는 단계에서 <code>p</code>를 입력하여 기본 값인 primary 파티션을 선택</p>



<p class="wp-block-paragraph">파티션 번호를 1로 설정 (기본적으로 MBR은 최대 4개의 주 파티션을 지원)</p>



<p class="wp-block-paragraph">첫 번째 섹터를 기본 값인 2048로 설정<br>(섹터 2048까지의 공간은 일반적으로 디스크의 메타데이터, 부트 로더, 파티션 테이블 등과 같은 시스템 관리 정보가 저장되는 영역)</p>



<p class="wp-block-paragraph">마지막 섹터를 기본 값인 2097151로 설정하여 파티션 크기를 1023 MiB 만듬</p>



<figure class="wp-block-image size-full"><img decoding="async" width="734" height="305" src="https://lycos7560.com/wp-content/uploads/2024/12/image-59.png" alt="" class="wp-image-38944" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-59.png 734w, https://lycos7560.com/wp-content/uploads/2024/12/image-59-300x125.png 300w" sizes="(max-width: 734px) 100vw, 734px" /><figcaption class="wp-element-caption">p 명령어를 이용하여 정보확인</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="750" height="157" src="https://lycos7560.com/wp-content/uploads/2024/12/image-60.png" alt="" class="wp-image-38945" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-60.png 750w, https://lycos7560.com/wp-content/uploads/2024/12/image-60-300x63.png 300w" sizes="(max-width: 750px) 100vw, 750px" /><figcaption class="wp-element-caption">W 명령어로 설정 저장</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="846" height="389" src="https://lycos7560.com/wp-content/uploads/2024/12/image-61.png" alt="" class="wp-image-38946" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-61.png 846w, https://lycos7560.com/wp-content/uploads/2024/12/image-61-300x138.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-61-768x353.png 768w" sizes="(max-width: 846px) 100vw, 846px" /><figcaption class="wp-element-caption">ext4 파일 시스템 생성 (리눅스에서 해당 파티션을 관리하고 사용)</figcaption></figure>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<p class="wp-block-paragraph">만약 해당 디스크를 mount하려고 하는 폴더에 파일이 있다면? </p>



<figure class="wp-block-image size-full"><img decoding="async" width="500" height="262" src="https://lycos7560.com/wp-content/uploads/2024/12/image-62.png" alt="" class="wp-image-38947" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-62.png 500w, https://lycos7560.com/wp-content/uploads/2024/12/image-62-300x157.png 300w" sizes="(max-width: 500px) 100vw, 500px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=9mJznB0ckjo&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=33" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=9mJznB0ckjo&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=33</a></figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="503" height="261" src="https://lycos7560.com/wp-content/uploads/2024/12/image-63.png" alt="" class="wp-image-38948" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-63.png 503w, https://lycos7560.com/wp-content/uploads/2024/12/image-63-300x156.png 300w" sizes="(max-width: 503px) 100vw, 503px" /><figcaption class="wp-element-caption"><a href="https://www.youtube.com/watch?v=9mJznB0ckjo&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=33" target="_blank" rel="noreferrer noopener">https://www.youtube.com/watch?v=9mJznB0ckjo&amp;list=PLVsNizTWUw7HAcyW6bma7trGJfiTSDA44&amp;index=33</a></figcaption></figure>



<p class="wp-block-paragraph">/mydata 폴더는 마운트된 곳을 가르키고 원래 파일을 볼 수 없음 (마운트 해제 원래 파일을 볼 수 있다.) </p>



<figure class="wp-block-image size-full"><img decoding="async" width="710" height="321" src="https://lycos7560.com/wp-content/uploads/2024/12/image-64.png" alt="" class="wp-image-38949" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-64.png 710w, https://lycos7560.com/wp-content/uploads/2024/12/image-64-300x136.png 300w" sizes="(max-width: 710px) 100vw, 710px" /><figcaption class="wp-element-caption">원래 디렉토리의 파일(<code>dummy.img</code>)은 일시적으로 접근할 수 없음</figcaption></figure>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<p class="wp-block-paragraph">리부팅 때마다 마운트를 할 수 없으므로 </p>



<p class="wp-block-paragraph"><code>/etc/fstab</code> 에 등록하여 자동으로 마운트 </p>



<figure class="wp-block-image size-full"><img decoding="async" width="883" height="345" src="https://lycos7560.com/wp-content/uploads/2024/12/image-65.png" alt="" class="wp-image-38950" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-65.png 883w, https://lycos7560.com/wp-content/uploads/2024/12/image-65-300x117.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-65-768x300.png 768w" sizes="(max-width: 883px) 100vw, 883px" /></figure>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">/dev/sdb1 /mydata ext4 defaults 0 0

# 뒤 ext4 defaults 0 0 는 거의 고</pre>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<p class="wp-block-paragraph"><code>/dev/sdb1</code>:</p>



<ul class="wp-block-list">
<li><strong>파일 시스템 장치</strong>: 디스크의 특정 파티션</li>
</ul>



<p class="wp-block-paragraph"><code>/mydata</code>:</p>



<ul class="wp-block-list">
<li><strong>마운트 지점</strong>: 파일 시스템이 마운트될 디렉토리</li>
</ul>



<p class="wp-block-paragraph"><code>ext4</code>:</p>



<ul class="wp-block-list">
<li><strong>파일 시스템 타입</strong>: 사용되는 파일 시스템의 종류, ext4 파일 시스템을 사용</li>
</ul>



<p class="wp-block-paragraph"><code>defaults</code>:</p>



<ul class="wp-block-list">
<li><strong>마운트 옵션</strong>: 기본 마운트 옵션을 사용<br>기본 옵션에는 <code>rw</code>, <code>suid</code>, <code>dev</code>, <code>exec</code>, <code>auto</code>, <code>nouser</code>, <code>async</code>가 포함</li>
</ul>



<p class="wp-block-paragraph"><code>0</code>:</p>



<ul class="wp-block-list">
<li><strong>덤프 옵션</strong>: 파일 시스템 덤프 유틸리티인 <code>dump</code> 명령어가 이 파일 시스템을 백업할지를 나타냅니다. 0은 백업하지 않음을 의미합니다.</li>
</ul>



<p class="wp-block-paragraph"><code>0</code>:</p>



<ul class="wp-block-list">
<li><strong>fsck 옵션</strong>: 시스템 부팅 시 파일 시스템 무결성을 검사할지를 나타냅니다. 0은 검사를 하지 않음을 의미합니다.</li>
</ul>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="826" height="347" src="https://lycos7560.com/wp-content/uploads/2024/12/image-66.png" alt="" class="wp-image-38951" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-66.png 826w, https://lycos7560.com/wp-content/uploads/2024/12/image-66-300x126.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-66-768x323.png 768w" sizes="(max-width: 826px) 100vw, 826px" /><figcaption class="wp-element-caption">재부팅 이후 mount 확인</figcaption></figure>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-embed is-type-wp-embed"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="F0rGeM1esA"><a href="https://lycos7560.com/ubuntu/ubuntu-raid-0-1-5-%ec%8b%a4%ec%8a%b5/38964/">Ubuntu &#8211; RAID 0, 1, 5 실습</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Ubuntu &#8211; RAID 0, 1, 5 실습&#8221; &#8212; 어제와 내일의 나 그 사이의 이야기" src="https://lycos7560.com/ubuntu/ubuntu-raid-0-1-5-%ec%8b%a4%ec%8a%b5/38964/embed/#?secret=vCWGI4ll8U#?secret=F0rGeM1esA" data-secret="F0rGeM1esA" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-hard-disk-management-add-disk/38929/">Ubuntu &#8211; Hard disk management (Add Disk)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu-hard-disk-management-add-disk/38929/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu – Process 프로세스</title>
		<link>https://lycos7560.com/ubuntu/ubuntu-process-%ed%94%84%eb%a1%9c%ec%84%b8%ec%8a%a4/38880/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu-process-%ed%94%84%eb%a1%9c%ec%84%b8%ec%8a%a4/38880/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Mon, 02 Dec 2024 14:10:05 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[command options]]></category>
		<category><![CDATA[command output]]></category>
		<category><![CDATA[CPU usage]]></category>
		<category><![CDATA[CPU 사용률]]></category>
		<category><![CDATA[debug processes]]></category>
		<category><![CDATA[file descriptor]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[memory usage]]></category>
		<category><![CDATA[performance monitoring]]></category>
		<category><![CDATA[PID]]></category>
		<category><![CDATA[process filtering]]></category>
		<category><![CDATA[process hierarchy]]></category>
		<category><![CDATA[process ID]]></category>
		<category><![CDATA[process information]]></category>
		<category><![CDATA[Process Management]]></category>
		<category><![CDATA[process owner]]></category>
		<category><![CDATA[process statistics]]></category>
		<category><![CDATA[process tree]]></category>
		<category><![CDATA[process tree structure]]></category>
		<category><![CDATA[process visualization]]></category>
		<category><![CDATA[ps]]></category>
		<category><![CDATA[ps command examples]]></category>
		<category><![CDATA[ps 명령어 예시]]></category>
		<category><![CDATA[ps명령어]]></category>
		<category><![CDATA[real-time monitoring]]></category>
		<category><![CDATA[resource management]]></category>
		<category><![CDATA[root processes]]></category>
		<category><![CDATA[security context]]></category>
		<category><![CDATA[SELinux]]></category>
		<category><![CDATA[server maintenance]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[system analysis]]></category>
		<category><![CDATA[System Monitoring]]></category>
		<category><![CDATA[system performance]]></category>
		<category><![CDATA[system resource]]></category>
		<category><![CDATA[System Utility]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[user ID]]></category>
		<category><![CDATA[user processes]]></category>
		<category><![CDATA[루트 프로세스]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[메모리 사용량]]></category>
		<category><![CDATA[명령어 옵션]]></category>
		<category><![CDATA[명령어 출력]]></category>
		<category><![CDATA[명령줄]]></category>
		<category><![CDATA[보안 컨텍스트]]></category>
		<category><![CDATA[사용자 ID]]></category>
		<category><![CDATA[사용자 프로세스]]></category>
		<category><![CDATA[서버 관리]]></category>
		<category><![CDATA[서버 유지보수]]></category>
		<category><![CDATA[시스템 관리]]></category>
		<category><![CDATA[시스템 리소스]]></category>
		<category><![CDATA[시스템 모니터링]]></category>
		<category><![CDATA[시스템 분석]]></category>
		<category><![CDATA[시스템 성능]]></category>
		<category><![CDATA[시스템 유틸리티]]></category>
		<category><![CDATA[실시간 모니터링]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[자원 관리]]></category>
		<category><![CDATA[터미널]]></category>
		<category><![CDATA[파일 디스크립터]]></category>
		<category><![CDATA[프로세스]]></category>
		<category><![CDATA[프로세스 ID]]></category>
		<category><![CDATA[프로세스 계층]]></category>
		<category><![CDATA[프로세스 관리]]></category>
		<category><![CDATA[프로세스 디버깅]]></category>
		<category><![CDATA[프로세스 소유자]]></category>
		<category><![CDATA[프로세스 시각화]]></category>
		<category><![CDATA[프로세스 식별자]]></category>
		<category><![CDATA[프로세스 정보]]></category>
		<category><![CDATA[프로세스 통계]]></category>
		<category><![CDATA[프로세스 트리]]></category>
		<category><![CDATA[프로세스 트리 구조]]></category>
		<category><![CDATA[프로세스 필터링]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=38880</guid>

					<description><![CDATA[<p>프로세스 (process) 정의 &#8220;하드디스크에 저장된 실행 코드(프로그램)가 메모리에 로딩되어 활성화된 것&#8221; 실행 중인 프로그램 또는 작업 단위를 의미하기도 함 프로세스는 프로그램이 메모리에서 실행되며, 각 프로세스는 고유한 **프로세스 ID(PID)**를 가집니다. 포그라운드(Foreground) 프로세스 화면에 나타나 사용자와 상호 작용하는 프로세스 화면에 출력되며, 사용자의 입력을 받아들이고 사용자와의 상호 작용을 통해 작업을 수행 백그라운드 (Background) 프로세스 사용자와의 직접적인 상호 작용 없이 실행되는 프로세스 주로 긴 작업을 수행하거나 백엔드에서 실행되는 서비스 형태의 프로그램에 사용 화면에 출력되지 않으며, 사용자 입력을 기다리지 않고 동작 특징 프로세스는 시스템 자원(CPU, 메모리 등)을 사용합니다. 부모 프로세스와 자식 프로세스 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-process-%ed%94%84%eb%a1%9c%ec%84%b8%ec%8a%a4/38880/">Ubuntu – Process 프로세스</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-4ef0589d      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#프로세스-process" class="uagb-toc-link__trigger">프로세스 (process)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#정의" class="uagb-toc-link__trigger">정의</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#포그라운드foreground-프로세스" class="uagb-toc-link__trigger">포그라운드(Foreground) 프로세스</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#백그라운드-background-프로세스" class="uagb-toc-link__trigger">백그라운드 (Background) 프로세스</a></li></ul><li class="uagb-toc__list"><a href="#특징" class="uagb-toc-link__trigger">특징</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#관련-명령어" class="uagb-toc-link__trigger">관련 명령어</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#예제" class="uagb-toc-link__trigger">예제</a></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">프로세스 (process)</h3>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">정의</h4>



<p class="wp-block-paragraph">&#8220;하드디스크에 저장된 실행 코드(프로그램)가 메모리에 로딩되어 활성화된 것&#8221;</p>



<p class="wp-block-paragraph">실행 중인 프로그램 또는 작업 단위를 의미하기도 함</p>



<p class="wp-block-paragraph">프로세스는 프로그램이 메모리에서 실행되며, 각 프로세스는 고유한 **프로세스 ID(PID)**를 가집니다.</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading">포그라운드(<strong>Foreground</strong>) 프로세스</h5>



<p class="wp-block-paragraph">화면에 나타나 사용자와 상호 작용하는 프로세스 </p>



<p class="wp-block-paragraph">화면에 출력되며, 사용자의 입력을 받아들이고 사용자와의 상호 작용을 통해 작업을 수행</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h5 class="wp-block-heading"><strong>백그라운드 (Background)</strong> 프로세스</h5>



<p class="wp-block-paragraph">사용자와의 직접적인 상호 작용 없이 실행되는 프로세스</p>



<p class="wp-block-paragraph">주로 긴 작업을 수행하거나 백엔드에서 실행되는 서비스 형태의 프로그램에 사용</p>



<p class="wp-block-paragraph">화면에 출력되지 않으며, 사용자 입력을 기다리지 않고 동작</p>



<figure class="wp-block-image size-full"><img decoding="async" width="538" height="211" src="https://lycos7560.com/wp-content/uploads/2024/12/image-26.png" alt="" class="wp-image-38892" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-26.png 538w, https://lycos7560.com/wp-content/uploads/2024/12/image-26-300x118.png 300w" sizes="(max-width: 538px) 100vw, 538px" /><figcaption class="wp-element-caption">Ctrl + Z : 멈춤</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="566" height="234" src="https://lycos7560.com/wp-content/uploads/2024/12/image-27.png" alt="" class="wp-image-38893" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-27.png 566w, https://lycos7560.com/wp-content/uploads/2024/12/image-27-300x124.png 300w" sizes="(max-width: 566px) 100vw, 566px" /><figcaption class="wp-element-caption">bg : Background로 실행</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="463" height="115" src="https://lycos7560.com/wp-content/uploads/2024/12/image-28.png" alt="" class="wp-image-38894" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-28.png 463w, https://lycos7560.com/wp-content/uploads/2024/12/image-28-300x75.png 300w" sizes="(max-width: 463px) 100vw, 463px" /><figcaption class="wp-element-caption">job : Background로 실행 프로세스 확인</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="483" height="102" src="https://lycos7560.com/wp-content/uploads/2024/12/image-29.png" alt="" class="wp-image-38895" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-29.png 483w, https://lycos7560.com/wp-content/uploads/2024/12/image-29-300x63.png 300w" sizes="(max-width: 483px) 100vw, 483px" /><figcaption class="wp-element-caption">fg : Foreground로 변경</figcaption></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="390" height="92" src="https://lycos7560.com/wp-content/uploads/2024/12/image-30.png" alt="" class="wp-image-38896" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-30.png 390w, https://lycos7560.com/wp-content/uploads/2024/12/image-30-300x71.png 300w" sizes="(max-width: 390px) 100vw, 390px" /><figcaption class="wp-element-caption">&amp; : Background로 실행 (vim과 같은 프로세스는 의미가 없음)</figcaption></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">특징</h4>



<p class="wp-block-paragraph">프로세스는 시스템 자원(CPU, 메모리 등)을 사용합니다.</p>



<p class="wp-block-paragraph"><strong>부모 프로세스</strong>와 <strong>자식 프로세스 관계</strong>를 가질 수 있습니다.</p>



<p class="wp-block-paragraph">프로세스는 실행 상태(실행 중, 대기 중, 종료된 등)에 따라 변화합니다.</p>



<ul class="wp-block-list">
<li>모든 프로세스는 혼자서 독립적으로 실행되는 것이 아닌 부모 프로세스의 하위에 종속되어 실행된다.<br>예를 들어 Firefox는 X 윈도 프로세스가 구동된 상태에서 실행되어야 하므로 X 윈도는 Firefox의 부모 프로세스, Firefox는 X 윈도의 자식 프로세스 </li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">관련 명령어</h4>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">ps        # 현재 실행 중인 프로세스 확인
top       # 실시간으로 프로세스와 시스템 자원 사용 확인
htop      # top의 인터페이스를 개선한 도구
kill      # 특정 프로세스 종료
pkill     # 이름 기반으로 프로세스 종료
pstree    # 부모. 자식 프로세스의 관계를 트리의 형태로 보여줌</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">예제</h4>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 현재 사용자의 프로세스 확인
ps

# 시스템의 모든 프로세스 상세 정보 확인
ps aux

# 특정 프로세스 검색 (grep 활용)
ps aux | grep nginx

# 특정 사용자의 프로세스 확인
ps -u root

# 모든 프로세스의 전체 형식 정보 확인
ps -ef

# 특정 프로세스 ID의 정보 확인
ps -p 1234

# 전체 형식으로 특정 프로세스 ID의 정보 확인
ps -f -p 1234

# 프로세스 계층 구조를 트리 형태로 표시
ps -e --forest

# CPU 사용률에 따라 정렬하여 표시
ps -e --sort=-%cpu

# 특정 터미널에서 실행 중인 프로세스 확인
ps -t tty1

# 특정 그룹의 프로세스 확인
ps -G staff

# 특정 프로세스의 쓰레드 정보 표시
ps -L -p 1234

# 작업 제어 형식으로 프로세스 표시
ps -j

# 특정 형식으로 출력
ps -o pid,uname,comm

# 실시간으로 프로세스와 시스템 자원 사용 확인
top

# top의 인터페이스를 개선한 도구
htop

# 특정 프로세스 종료
kill -9 1234

# 이름 기반으로 프로세스 종료
pkill nginx

# 부모, 자식 프로세스의 관계를 트리 형태로 표시
pstree

# 현재 터미널에서 실행 중인 백그라운드 작업 확인
jobs

# 현재 터미널에서 실행 중인 프로세스를 foreground로 전환
fg %1

# 현재 터미널에서 실행 중인 프로세스를 background로 전환
bg %1
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<div class="wp-block-columns is-layout-flex wp-container-core-columns-is-layout-7387b849 wp-block-columns-is-layout-flex">
<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:50%">
<figure class="wp-block-image size-full"><img decoding="async" width="863" height="341" src="https://lycos7560.com/wp-content/uploads/2024/12/image-20.png" alt="" class="wp-image-38881" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-20.png 863w, https://lycos7560.com/wp-content/uploads/2024/12/image-20-300x119.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-20-768x303.png 768w" sizes="(max-width: 863px) 100vw, 863px" /><figcaption class="wp-element-caption">ps -ef, kill -9 9001</figcaption></figure>
</div>



<div class="wp-block-column is-layout-flow wp-block-column-is-layout-flow" style="flex-basis:50%">
<figure class="wp-block-image size-full"><img decoding="async" width="1178" height="736" src="https://lycos7560.com/wp-content/uploads/2024/12/image-21.png" alt="" class="wp-image-38882" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-21.png 1178w, https://lycos7560.com/wp-content/uploads/2024/12/image-21-300x187.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-21-768x480.png 768w" sizes="(max-width: 1178px) 100vw, 1178px" /><figcaption class="wp-element-caption">top</figcaption></figure>
</div>
</div>



<figure class="wp-block-embed is-type-wp-embed"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="ZdYs3xjkEH"><a href="https://lycos7560.com/ubuntu/ubuntu-ps-%eb%aa%85%eb%a0%b9%ec%96%b4/38887/">Ubuntu – ps 명령어</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Ubuntu – ps 명령어&#8221; &#8212; 어제와 내일의 나 그 사이의 이야기" src="https://lycos7560.com/ubuntu/ubuntu-ps-%eb%aa%85%eb%a0%b9%ec%96%b4/38887/embed/#?secret=4rXykoilzV#?secret=ZdYs3xjkEH" data-secret="ZdYs3xjkEH" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-process-%ed%94%84%eb%a1%9c%ec%84%b8%ec%8a%a4/38880/">Ubuntu – Process 프로세스</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu-process-%ed%94%84%eb%a1%9c%ec%84%b8%ec%8a%a4/38880/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu – ps 명령어</title>
		<link>https://lycos7560.com/ubuntu/ubuntu-ps-%eb%aa%85%eb%a0%b9%ec%96%b4/38887/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu-ps-%eb%aa%85%eb%a0%b9%ec%96%b4/38887/#comments</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Mon, 02 Dec 2024 13:19:07 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[command options]]></category>
		<category><![CDATA[command output]]></category>
		<category><![CDATA[CPU usage]]></category>
		<category><![CDATA[CPU 사용률]]></category>
		<category><![CDATA[debug processes]]></category>
		<category><![CDATA[file descriptor]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[memory usage]]></category>
		<category><![CDATA[performance monitoring]]></category>
		<category><![CDATA[PID]]></category>
		<category><![CDATA[process filtering]]></category>
		<category><![CDATA[process hierarchy]]></category>
		<category><![CDATA[process ID]]></category>
		<category><![CDATA[process information]]></category>
		<category><![CDATA[Process Management]]></category>
		<category><![CDATA[process owner]]></category>
		<category><![CDATA[process statistics]]></category>
		<category><![CDATA[process tree]]></category>
		<category><![CDATA[process tree structure]]></category>
		<category><![CDATA[process visualization]]></category>
		<category><![CDATA[ps]]></category>
		<category><![CDATA[ps command examples]]></category>
		<category><![CDATA[ps 명령어 예시]]></category>
		<category><![CDATA[ps명령어]]></category>
		<category><![CDATA[real-time monitoring]]></category>
		<category><![CDATA[resource management]]></category>
		<category><![CDATA[root processes]]></category>
		<category><![CDATA[security context]]></category>
		<category><![CDATA[SELinux]]></category>
		<category><![CDATA[server maintenance]]></category>
		<category><![CDATA[server management]]></category>
		<category><![CDATA[system analysis]]></category>
		<category><![CDATA[System Monitoring]]></category>
		<category><![CDATA[system performance]]></category>
		<category><![CDATA[system resource]]></category>
		<category><![CDATA[System Utility]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[user ID]]></category>
		<category><![CDATA[user processes]]></category>
		<category><![CDATA[루트 프로세스]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[메모리 사용량]]></category>
		<category><![CDATA[명령어 옵션]]></category>
		<category><![CDATA[명령어 출력]]></category>
		<category><![CDATA[명령줄]]></category>
		<category><![CDATA[보안 컨텍스트]]></category>
		<category><![CDATA[사용자 ID]]></category>
		<category><![CDATA[사용자 프로세스]]></category>
		<category><![CDATA[서버 관리]]></category>
		<category><![CDATA[서버 유지보수]]></category>
		<category><![CDATA[시스템 관리]]></category>
		<category><![CDATA[시스템 리소스]]></category>
		<category><![CDATA[시스템 모니터링]]></category>
		<category><![CDATA[시스템 분석]]></category>
		<category><![CDATA[시스템 성능]]></category>
		<category><![CDATA[시스템 유틸리티]]></category>
		<category><![CDATA[실시간 모니터링]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[자원 관리]]></category>
		<category><![CDATA[터미널]]></category>
		<category><![CDATA[파일 디스크립터]]></category>
		<category><![CDATA[프로세스]]></category>
		<category><![CDATA[프로세스 ID]]></category>
		<category><![CDATA[프로세스 계층]]></category>
		<category><![CDATA[프로세스 관리]]></category>
		<category><![CDATA[프로세스 디버깅]]></category>
		<category><![CDATA[프로세스 소유자]]></category>
		<category><![CDATA[프로세스 시각화]]></category>
		<category><![CDATA[프로세스 식별자]]></category>
		<category><![CDATA[프로세스 정보]]></category>
		<category><![CDATA[프로세스 통계]]></category>
		<category><![CDATA[프로세스 트리]]></category>
		<category><![CDATA[프로세스 트리 구조]]></category>
		<category><![CDATA[프로세스 필터링]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=38887</guid>

					<description><![CDATA[<p>ps (Process Status) Linux와 Unix 계열 시스템에서 현재 실행 중인 프로세스의 상태를 확인하는 데 사용되는 강력한 유틸리티 출력 열의 의미 열 이름 설명 UID 프로세스 소유자의 사용자 ID PID 프로세스 ID PPID 부모 프로세스 ID C CPU 사용률 STIME 프로세스 시작 시간 TTY 터미널 타입 TIME CPU 사용 시간 CMD 실행된 명령어 주요 PS 명령어 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-ps-%eb%aa%85%eb%a0%b9%ec%96%b4/38887/">Ubuntu – ps 명령어</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-c69b779f      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#ps-process-status" class="uagb-toc-link__trigger">ps (Process Status)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#출력-열의-의미" class="uagb-toc-link__trigger">출력 열의 의미</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#주요-ps-명령어-옵션" class="uagb-toc-link__trigger">주요 PS 명령어 옵션</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#사용-예시" class="uagb-toc-link__trigger">사용 예시</a></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">ps (Process Status)</h2>



<p class="wp-block-paragraph">Linux와 Unix 계열 시스템에서 <strong>현재 실행 중인 프로세스의 상태를 확인</strong>하는 데 사용되는 강력한 유틸리티</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">출력 열의 의미</h3>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>열 이름</th><th>설명</th></tr></thead><tbody><tr><td>UID</td><td>프로세스 소유자의 사용자 ID</td></tr><tr><td>PID</td><td>프로세스 ID</td></tr><tr><td>PPID</td><td>부모 프로세스 ID</td></tr><tr><td>C</td><td>CPU 사용률</td></tr><tr><td>STIME</td><td>프로세스 시작 시간</td></tr><tr><td>TTY</td><td>터미널 타입</td></tr><tr><td>TIME</td><td>CPU 사용 시간</td></tr><tr><td>CMD</td><td>실행된 명령어</td></tr></tbody></table></figure>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1041" height="131" src="https://lycos7560.com/wp-content/uploads/2024/12/image-23.png" alt="" class="wp-image-38888" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-23.png 1041w, https://lycos7560.com/wp-content/uploads/2024/12/image-23-300x38.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-23-768x97.png 768w" sizes="(max-width: 1041px) 100vw, 1041px" /></figure>



<figure class="wp-block-image size-full"><img decoding="async" width="957" height="623" src="https://lycos7560.com/wp-content/uploads/2024/12/image-24.png" alt="" class="wp-image-38889" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-24.png 957w, https://lycos7560.com/wp-content/uploads/2024/12/image-24-300x195.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-24-768x500.png 768w" sizes="(max-width: 957px) 100vw, 957px" /></figure>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">주요 PS 명령어 옵션</h3>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th>옵션</th><th>설명</th><th>사용 예시</th></tr></thead><tbody><tr><td>ps</td><td>현재 터미널에서 실행 중인 프로세스 표시</td><td><code>ps</code></td></tr><tr><td>ps aux</td><td>시스템의 모든 프로세스 상세 정보 표시</td><td><code>ps aux</code></td></tr><tr><td>ps -ef</td><td>모든 프로세스의 전체 형식 정보 표시</td><td><code>ps -ef</code></td></tr><tr><td>-u [username]</td><td>특정 사용자의 프로세스만 표시</td><td><code>ps -u ubuntu</code></td></tr><tr><td>-p [PID]</td><td>특정 프로세스 ID의 프로세스 정보 표시</td><td><code>ps -p 1234</code></td></tr><tr><td>-f</td><td>풀 형식으로 프로세스 정보 표시</td><td><code>ps -f</code></td></tr><tr><td>&#8211;forest</td><td>프로세스 계층 구조를 트리 형태로 표시</td><td><code>ps aux --forest</code></td></tr><tr><td>-a</td><td>터미널에 종속되지 않은 모든 프로세스 표시</td><td><code>ps -a</code></td></tr><tr><td>-x</td><td>제어 터미널이 없는 프로세스 포함</td><td><code>ps -x</code></td></tr><tr><td>-l</td><td>긴 형식으로 프로세스 정보 표시</td><td><code>ps -l</code></td></tr><tr><td>-e</td><td>모든 프로세스 표시</td><td><code>ps -e</code></td></tr><tr><td>-o</td><td>지정한 형식으로 출력</td><td><code>ps -o pid,uname,comm</code></td></tr><tr><td>-H</td><td>계층 구조로 프로세스 표시</td><td><code>ps -H</code></td></tr><tr><td>-r</td><td>현재 실행 중인 프로세스만 표시</td><td><code>ps -r</code></td></tr><tr><td>-t [tty]</td><td>특정 TTY에서 실행 중인 프로세스만 표시</td><td><code>ps -t tty1</code></td></tr><tr><td>-U [username]</td><td>특정 사용자의 모든 프로세스 표시</td><td><code>ps -U root</code></td></tr><tr><td>-G [group]</td><td>특정 그룹의 모든 프로세스 표시</td><td><code>ps -G staff</code></td></tr><tr><td>-j</td><td>작업 제어 형식으로 프로세스 표시</td><td><code>ps -j</code></td></tr><tr><td>-S</td><td>모든 세션 표시</td><td><code>ps -S</code></td></tr><tr><td>-L</td><td>프로세스의 쓰레드 정보 표시</td><td><code>ps -L -p 1234</code></td></tr><tr><td>&#8211;sort</td><td>특정 키로 정렬하여 표시</td><td><code>ps --sort=-%cpu</code></td></tr></tbody></table></figure>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">사용 예시</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 현재 사용자의 프로세스 확인
ps

# 시스템의 모든 프로세스 상세 정보 확인
ps aux

# 특정 프로세스 검색 (grep 활용)
ps aux | grep nginx
ps aux | less
ps aux | head 5
ps aux | tail 5

# 특정 사용자의 프로세스 확인
ps -u root

# 모든 프로세스의 전체 형식 정보 표시
ps -ef

# 특정 프로세스 ID의 정보 확인
ps -p 1234

# 전체 형식으로 특정 프로세스 ID의 정보 확인
ps -f -p 1234

# 프로세스 계층 구조를 트리 형태로 표시
ps -e --forest

# CPU 사용률에 따라 정렬하여 표시
ps -e --sort=-%cpu

# 특정 터미널에서 실행 중인 프로세스 확인
ps -t tty1

# 특정 그룹의 프로세스 확인
ps -G staff

# 특정 프로세스의 쓰레드 정보 표시
ps -L -p 1234

# 작업 제어 형식으로 프로세스 표시
ps -j

# 특정 형식으로 출력
ps -o pid,uname,comm
</pre>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="907" height="668" src="https://lycos7560.com/wp-content/uploads/2024/12/image-25.png" alt="" class="wp-image-38890" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-25.png 907w, https://lycos7560.com/wp-content/uploads/2024/12/image-25-300x221.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-25-768x566.png 768w" sizes="(max-width: 907px) 100vw, 907px" /><figcaption class="wp-element-caption">ps -ef &#8211;forest</figcaption></figure>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-embed is-type-wp-embed"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="YNQhGmEziE"><a href="https://lycos7560.com/ubuntu/ubuntu-process-%ed%94%84%eb%a1%9c%ec%84%b8%ec%8a%a4/38880/">Ubuntu – Process 프로세스</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Ubuntu – Process 프로세스&#8221; &#8212; 어제와 내일의 나 그 사이의 이야기" src="https://lycos7560.com/ubuntu/ubuntu-process-%ed%94%84%eb%a1%9c%ec%84%b8%ec%8a%a4/38880/embed/#?secret=YWvfslABun#?secret=YNQhGmEziE" data-secret="YNQhGmEziE" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-ps-%eb%aa%85%eb%a0%b9%ec%96%b4/38887/">Ubuntu – ps 명령어</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu-ps-%eb%aa%85%eb%a0%b9%ec%96%b4/38887/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu – cron / crontab / at 명령어</title>
		<link>https://lycos7560.com/ubuntu/ubuntu-cron-crontab-at-%eb%aa%85%eb%a0%b9%ec%96%b4/38842/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu-cron-crontab-at-%eb%aa%85%eb%a0%b9%ec%96%b4/38842/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Sun, 01 Dec 2024 21:49:31 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[at]]></category>
		<category><![CDATA[at 명령어]]></category>
		<category><![CDATA[at 서비스 시작]]></category>
		<category><![CDATA[at 서비스 재시작]]></category>
		<category><![CDATA[at 서비스 중지]]></category>
		<category><![CDATA[at 설치]]></category>
		<category><![CDATA[atd]]></category>
		<category><![CDATA[backup.sh]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[cron 데몬]]></category>
		<category><![CDATA[cron 로그 파일 저장]]></category>
		<category><![CDATA[cron 서비스 시작]]></category>
		<category><![CDATA[cron 서비스 재시작]]></category>
		<category><![CDATA[cron 서비스 중지]]></category>
		<category><![CDATA[cron 서비스 확인]]></category>
		<category><![CDATA[cron 작업 추가]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[crontab 삭제]]></category>
		<category><![CDATA[crontab 파일]]></category>
		<category><![CDATA[crontab 파일 형식]]></category>
		<category><![CDATA[crontab 편집]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[logrotate]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[디렉토리 생성]]></category>
		<category><![CDATA[디렉토리 확인]]></category>
		<category><![CDATA[로그 기록]]></category>
		<category><![CDATA[로그 정리]]></category>
		<category><![CDATA[로그 파일]]></category>
		<category><![CDATA[로그 파일 경로]]></category>
		<category><![CDATA[리눅스]]></category>
		<category><![CDATA[명령어]]></category>
		<category><![CDATA[명령어 예약]]></category>
		<category><![CDATA[백업 대상 디렉터리]]></category>
		<category><![CDATA[백업 스크립트]]></category>
		<category><![CDATA[백업 스크립트 예시]]></category>
		<category><![CDATA[백업 저장 디렉터리]]></category>
		<category><![CDATA[사용자별 작업 관리]]></category>
		<category><![CDATA[상대적 시간]]></category>
		<category><![CDATA[쉘 스크립트]]></category>
		<category><![CDATA[스케줄링 예시]]></category>
		<category><![CDATA[스크립트 실행]]></category>
		<category><![CDATA[시간 기반 스케줄링]]></category>
		<category><![CDATA[시간 지정]]></category>
		<category><![CDATA[시간 형식]]></category>
		<category><![CDATA[시스템 관리]]></category>
		<category><![CDATA[시스템 로그]]></category>
		<category><![CDATA[시스템 백업]]></category>
		<category><![CDATA[시스템 유틸리티]]></category>
		<category><![CDATA[시스템 재부팅]]></category>
		<category><![CDATA[시스템 전반 스케줄링]]></category>
		<category><![CDATA[압축 백업]]></category>
		<category><![CDATA[예약 작업]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[일회성 작업 예약]]></category>
		<category><![CDATA[작업 스케줄 정의]]></category>
		<category><![CDATA[작업 스케줄러]]></category>
		<category><![CDATA[작업 실행 시간]]></category>
		<category><![CDATA[작업 자동화]]></category>
		<category><![CDATA[전역 작업 설정]]></category>
		<category><![CDATA[터미널]]></category>
		<category><![CDATA[파일 권한]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=38842</guid>

					<description><![CDATA[<p>cron cron은 작업 스케줄러 데몬(demon)으로, 주기적으로 정해진 시간에 작업을 실행하는 역할 cron 데몬(demon)은 분, 시간, 일, 월, 요일에 기반하여 주기적으로 작업을 실행 cron 데몬(demon)은 백그라운드에서 실행되며, crontab 파일에 정의된 작업을 일정에 따라 실행 반복적인 작업, 예를 들어 매일 백업을 수행하거나 매주 리포트를 생성하는 작업에 적합 특징 명령어 crontab 특정 작업을 예약하기 위한 설정 파일 또는 [&#8230;]</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-cron-crontab-at-%eb%aa%85%eb%a0%b9%ec%96%b4/38842/">Ubuntu – cron / crontab / at 명령어</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-71984b4f      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#cron" class="uagb-toc-link__trigger">cron</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#특징" class="uagb-toc-link__trigger">특징</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#명령어" class="uagb-toc-link__trigger">명령어</a></li></ul></li><li class="uagb-toc__list"><a href="#crontab" class="uagb-toc-link__trigger">crontab</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#명령어" class="uagb-toc-link__trigger">명령어</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#crontab-파일-형식" class="uagb-toc-link__trigger">crontab 파일 형식</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#기본-형식" class="uagb-toc-link__trigger">기본 형식</a></li></ul><li class="uagb-toc__list"><a href="#etccrontab" class="uagb-toc-link__trigger">/etc/crontab</a></li></ul></li></ul></li><li class="uagb-toc__list"><a href="#at" class="uagb-toc-link__trigger">at</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#설치" class="uagb-toc-link__trigger">설치</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#명령어" class="uagb-toc-link__trigger">명령어</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#at-명령어-시간-형식" class="uagb-toc-link__trigger">at 명령어 (시간 형식)</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#사용-예시" class="uagb-toc-link__trigger">사용 예시</a></ul></ul></ul></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">cron</h2>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<p class="wp-block-paragraph"><strong><code>cron</code></strong>은 작업 스케줄러 데몬(demon)으로, 주기적으로 정해진 시간에 작업을 실행하는 역할</p>



<p class="wp-block-paragraph"><code><strong>cron 데몬(demon)</strong></code>은 <strong>분, 시간, 일, 월, 요일</strong>에 기반하여 주기적으로 작업을 실행</p>



<p class="wp-block-paragraph"><code><strong>cron 데몬(demon)</strong></code>은 백그라운드에서 실행되며,<strong> <code>crontab</code> </strong>파일에 정의된 작업을 일정에 따라 실행</p>



<p class="wp-block-paragraph">반복적인 작업, 예를 들어 매일 백업을 수행하거나 매주 리포트를 생성하는 작업에 적합</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">특징</h3>



<ul class="wp-block-list">
<li><strong>시간 기반 스케줄링</strong>: <code>cron</code> 데몬은 <strong>분, 시간, 일, 월, 요일</strong>에 기반하여 주기적으로 작업을 실행</li>



<li><strong>백그라운드 실행</strong>: <code>cron</code> 데몬은 백그라운드에서 실행되며, <code>crontab</code> 파일에 정의된 작업을 일정에 따라 실행</li>



<li><strong>자동화에 적합</strong>: 반복적인 작업을 자동화하는 데 매우 적합</li>
</ul>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">명령어</h3>



<ul class="wp-block-list">
<li><strong><code>cron</code></strong> 서비스의 상태를 확인</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl status cron
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1208" height="313" src="https://lycos7560.com/wp-content/uploads/2024/12/image-5.png" alt="" class="wp-image-38843" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-5.png 1208w, https://lycos7560.com/wp-content/uploads/2024/12/image-5-300x78.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-5-768x199.png 768w" sizes="(max-width: 1208px) 100vw, 1208px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><strong><code>cron</code></strong> 서비스 시작</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl start cron
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><strong><code>cron</code></strong> 서비스 중지</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl stop cron
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><strong><code>cron</code></strong> 서비스 재시작 명령어</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl restart cron
</pre>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">crontab</h2>



<p class="wp-block-paragraph">특정 작업을 예약하기 위한 설정 파일 또는 편집 도구</p>



<p class="wp-block-paragraph">각 사용자는 자신의 crontab 파일을 통해 작업을 예약할 수 있으며, 이 파일은 <strong><code>cron</code> 데몬</strong>에 의해 주기적으로 읽혀 실행</p>



<p class="wp-block-paragraph"><strong> <code>crontab</code></strong> 명령어를 사용하여 이 파일을 편집하거나, 작업을 추가/제거</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">명령어</h3>



<ul class="wp-block-list">
<li>crontab 파일 편집</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 현재 사용자의 crontab 파일을 열어 편집합니다.
crontab -e</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="988" height="618" src="https://lycos7560.com/wp-content/uploads/2024/12/image-6.png" alt="" class="wp-image-38844" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-6.png 988w, https://lycos7560.com/wp-content/uploads/2024/12/image-6-300x188.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-6-768x480.png 768w" sizes="(max-width: 988px) 100vw, 988px" /></figure>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>현재 사용자의 <code>crontab</code> 파일을 열어 편집합니다.</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 현재 사용자의 예약된 작업 목록을 확인합니다.
crontab -l</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><code>cron</code> 로그 파일 저장</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 모든 cron 출력 로그를 파일에 저장
0 3 * * * /path/to/command.sh > /path/to/logfile.log 2>&amp;1</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>모든 작업 제거</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 현재 사용자의 모든 예약 작업을 제거합니다.
crontab -r</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>특정 사용자 작업 관리</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 특정 사용자의 crontab 파일을 편집합니다.
sudo crontab -u [사용자명] -e</pre>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">crontab 파일 형식</h3>



<p class="wp-block-paragraph"><code>crontab</code> 파일은 시간과 명령으로 구성된 간단한 텍스트 파일</p>



<p class="wp-block-paragraph">각 행은 특정 시간에 실행할 명령을 정의</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">기본 형식</h4>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 분   시   일   월   요일   사용자   명령어
  *    *    *    *    *      사용자   명령어
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><strong>분 (0-59)</strong>: 실행할 분을 지정</li>



<li><strong>시 (0-23)</strong>: 실행할 시각을 지정</li>



<li><strong>일 (1-31)</strong>: 실행할 일을 지정</li>



<li><strong>월 (1-12)</strong>: 실행할 월을 지정</li>



<li><strong>요일 (0-7)</strong>: 실행할 요일을 지정 (0 또는 7은 일요일)</li>



<li><strong>사용자</strong>: 명령어를 실행할 사용자</li>



<li><strong>명령어</strong>: 실제 실행할 명령어</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>매일 오후 2시에 스크립트 실행</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">0 14 * * * /path/to/script.sh</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>매년 특정 날짜와 시간에 시스템 재부팅</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">0 0 1 1 * /sbin/reboot
# 매년 1월 1일 자정에 시스템 재부팅</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>매주 월요일 오전 3시에 로그 정리</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">0 3 * * 1 /usr/bin/logrotate /etc/logrotate.conf</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>매월 1일 자정에 시스템 백업</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">0 0 1 * * /usr/local/bin/backup.sh

# backup.sh 예시

#!/bin/bash

# 백업 대상 디렉터리
SOURCE_DIR="/home/user/data"

# 백업 저장 디렉터리
BACKUP_DIR="/backup"

# 백업 파일 이름 (날짜 포함)
BACKUP_FILE="$BACKUP_DIR/backup_$(date +%Y-%m-%d).tar.gz"

# 로그 파일 경로
LOG_FILE="/var/log/backup.log"

# 로그 기록 시작
echo "Backup started at $(date)" >> $LOG_FILE

# 디렉터리 존재 여부 확인
if [ ! -d "$SOURCE_DIR" ]; then
  echo "Source directory $SOURCE_DIR does not exist. Backup failed." >> $LOG_FILE
  exit 1
fi

# 백업 저장 디렉터리 생성 (없으면 생성)
mkdir -p $BACKUP_DIR

# 백업 실행 (압축)
tar -czf $BACKUP_FILE $SOURCE_DIR

if [ $? -eq 0 ]; then
  echo "Backup completed successfully. File: $BACKUP_FILE" >> $LOG_FILE
else
  echo "Backup failed at $(date)" >> $LOG_FILE
  exit 1
fi

# 로그 기록 종료
echo "Backup finished at $(date)" >> $LOG_FILE

# 정상 종료
exit 0
</pre>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">/etc/crontab</h3>



<p class="wp-block-paragraph"><strong>크론(cron)</strong>&nbsp;서비스와 관련된 중요한 시스템 파일로, 리눅스와 유닉스 시스템에서 주기적으로 실행되는 작업들을 관리하는 데 사용</p>



<p class="wp-block-paragraph">이 파일은&nbsp;<strong>시스템 전반의 스케줄링된 작업</strong>을 정의하고 있으며, 모든 사용자가 실행하는 주기적인 작업들을 관리할 수 있는 권한을 제공</p>



<p class="wp-block-paragraph"><code>/etc/crontab</code>은 시스템 관리자(root 사용자)가 설정한 전역적인&nbsp;<strong>크론 작업</strong>을 정의할 때 사용</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo vi /etc/crontab
sudo vim /etc/crontab</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img decoding="async" width="1086" height="751" src="https://lycos7560.com/wp-content/uploads/2024/12/image-8.png" alt="" class="wp-image-38846" srcset="https://lycos7560.com/wp-content/uploads/2024/12/image-8.png 1086w, https://lycos7560.com/wp-content/uploads/2024/12/image-8-300x207.png 300w, https://lycos7560.com/wp-content/uploads/2024/12/image-8-768x531.png 768w" sizes="(max-width: 1086px) 100vw, 1086px" /></figure>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">at</h2>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<p class="wp-block-paragraph"><code>at</code>&nbsp;명령어는 리눅스 및 유닉스 시스템에서&nbsp;<strong>한 번만 실행되는 작업</strong>을 예약하는 데 사용</p>



<p class="wp-block-paragraph">즉, 특정 시점에 단 한 번 실행되어야 할 작업을 예약할 수 있게 해주는 명령어</p>



<p class="wp-block-paragraph"><code>cron</code>과는 달리,&nbsp;<code>at</code>은 주기적인 작업이 아니라 특정 시간에 한 번만 실행되는 작업을 설정할 때 사용</p>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">설치</h3>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo apt update 
sudo apt install at</pre>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">명령어</h3>



<ul class="wp-block-list">
<li><code>at</code>&nbsp;서비스 시작</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl start atd
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><code>at</code>&nbsp;서비스 확인</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl status atd
</pre>



<ul class="wp-block-list">
<li>시작 시 실행</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl enable atd
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><code>at</code>&nbsp;서비스 중지</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl stop atd
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><code>at</code>&nbsp;서비스 재시작</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl restart atd
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><code>at</code> 예약된 명령어 확인</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">at -l
atq</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li><code>at</code> 예약된 작업 취소</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">atrm 작업ID
# atrm 2</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">at 명령어 (시간 형식)</h4>



<p class="wp-block-paragraph"><code>at</code>&nbsp;명령어는 기본적으로&nbsp;<strong>실행할 명령어를 지정하는 것</strong>과&nbsp;<strong>실행할 시간을 설정하는 것</strong>으로 구성</p>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">at [옵션] 시간
</pre>



<ul class="wp-block-list">
<li><strong>정확한 시간</strong>:&nbsp;<code>HH:MM</code>&nbsp;(24시간 형식)
<ul class="wp-block-list">
<li>예:&nbsp;<code>14:30</code>&nbsp;(오후 2시 30분)</li>
</ul>
</li>



<li><strong>날짜와 시간</strong>:&nbsp;<code>MM/DD/YYYY HH:MM</code>
<ul class="wp-block-list">
<li>예:&nbsp;<code>12/25 15:00</code>&nbsp;(12월 25일 오후 3시)</li>
</ul>
</li>



<li><strong>상대적인 시간</strong>: 현재 시간 기준으로 상대적인 시간을 지정
<ul class="wp-block-list">
<li>예:&nbsp;<code>now + 2 hours</code>&nbsp;(현재로부터 2시간 후)</li>



<li>예:&nbsp;<code>now + 1 day</code>&nbsp;(현재로부터 하루 후)</li>



<li>예:&nbsp;<code>now + 30 minutes</code>&nbsp;(현재로부터 30분 후)</li>
</ul>
</li>
</ul>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<h4 class="wp-block-heading">사용 예시</h4>



<ul class="wp-block-list">
<li>지정한 시간에 명령어 실행</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 15:00에 "Hello, World!"를 /tmp/hello.txt 파일에 작성하도록 예약

$ at 15:00
at> echo "Hello, World!" > /tmp/hello.txt
at> &lt;EOT> # CTRL + D  저장

</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>현재로부터 2시간 후 실행</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 현재로부터 2시간 후에 특정 스크립트를 실행

$ at now + 2 hours
at> /path/to/script.sh
at> &lt;EOT> # CTRL + D  저장

</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>



<ul class="wp-block-list">
<li>특정 날짜와 시간에 명령어 실행</li>
</ul>



<pre class="EnlighterJSRAW" data-enlighter-language="bash" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group=""># 12월 25일 오후 2시에 특정 스크립트를 실행

at 12/25 14:00
at> /path/to/script.sh
at> &lt;EOT> # CTRL + D  저장
</pre>



<div style="height:20px" aria-hidden="true" class="wp-block-spacer"></div>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-cron-crontab-at-%eb%aa%85%eb%a0%b9%ec%96%b4/38842/">Ubuntu – cron / crontab / at 명령어</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu-cron-crontab-at-%eb%aa%85%eb%a0%b9%ec%96%b4/38842/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu &#8211; Virtual Terminals (console)</title>
		<link>https://lycos7560.com/ubuntu/ubuntu-virtual-terminals-console/38794/</link>
					<comments>https://lycos7560.com/ubuntu/ubuntu-virtual-terminals-console/38794/#respond</comments>
		
		<dc:creator><![CDATA[lycos7560]]></dc:creator>
		<pubDate>Mon, 25 Nov 2024 19:37:34 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Console Login]]></category>
		<category><![CDATA[File System]]></category>
		<category><![CDATA[Getty]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[halt]]></category>
		<category><![CDATA[Hardware Control]]></category>
		<category><![CDATA[init]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Log Analysis]]></category>
		<category><![CDATA[Multiuser]]></category>
		<category><![CDATA[Network Configuration]]></category>
		<category><![CDATA[Process Management]]></category>
		<category><![CDATA[Remote Access]]></category>
		<category><![CDATA[Runlevel]]></category>
		<category><![CDATA[Screen Management]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[System Maintenance]]></category>
		<category><![CDATA[System Monitoring]]></category>
		<category><![CDATA[System Troubleshooting]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[Text-Based Interface]]></category>
		<category><![CDATA[TTY]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[User Management]]></category>
		<category><![CDATA[Virtual Console]]></category>
		<category><![CDATA[Virtual Terminal]]></category>
		<category><![CDATA[VT]]></category>
		<category><![CDATA[VT Switching]]></category>
		<category><![CDATA[가상터미널]]></category>
		<category><![CDATA[공부]]></category>
		<category><![CDATA[기초]]></category>
		<category><![CDATA[네트워크서비스]]></category>
		<category><![CDATA[네트워킹]]></category>
		<category><![CDATA[단일사용자모드]]></category>
		<category><![CDATA[데이터관리]]></category>
		<category><![CDATA[런레벨]]></category>
		<category><![CDATA[런레벨변경]]></category>
		<category><![CDATA[멀티유저]]></category>
		<category><![CDATA[멀티유저모드]]></category>
		<category><![CDATA[모니터링]]></category>
		<category><![CDATA[백업]]></category>
		<category><![CDATA[복구]]></category>
		<category><![CDATA[사용자관리]]></category>
		<category><![CDATA[성능최적화]]></category>
		<category><![CDATA[소프트웨어관리]]></category>
		<category><![CDATA[쉘스크립트]]></category>
		<category><![CDATA[시스템관리]]></category>
		<category><![CDATA[시스템로그]]></category>
		<category><![CDATA[시스템보안]]></category>
		<category><![CDATA[시스템유지보수]]></category>
		<category><![CDATA[시스템재부팅]]></category>
		<category><![CDATA[시스템종료]]></category>
		<category><![CDATA[업그레이드]]></category>
		<category><![CDATA[우분투]]></category>
		<category><![CDATA[콘솔]]></category>
		<category><![CDATA[터미널]]></category>
		<category><![CDATA[텍스트 터미널]]></category>
		<category><![CDATA[파일시스템]]></category>
		<category><![CDATA[프로세스관리]]></category>
		<guid isPermaLink="false">https://lycos7560.com/?p=38794</guid>

					<description><![CDATA[<p>Ubuntu &#8211; Virtual Terminals (console) 개요 가상 터미널(Virtual Terminals)은 단일 물리적 콘솔에서 여러 독립적인 텍스트 기반 로그인 세션을 제공하는 Linux 시스템의 기능 여러 개의 터미널을 동시에 사용할 수 있는 기능 Ubuntu 가상 터미널 특징 주의사항 유용한 팁 및 단축키</p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-virtual-terminals-console/38794/">Ubuntu &#8211; Virtual Terminals (console)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></description>
										<content:encoded><![CDATA[				<div class="wp-block-uagb-table-of-contents uagb-toc__align-left uagb-toc__columns-1  uagb-block-064080ae      "
					data-scroll= "1"
					data-offset= "30"
					style=""
				>
				<div class="uagb-toc__wrap">
						<div class="uagb-toc__title">
							목차						</div>
																						<div class="uagb-toc__list-wrap ">
						<ol class="uagb-toc__list"><li class="uagb-toc__list"><a href="#ubuntu-virtual-terminals-console" class="uagb-toc-link__trigger">Ubuntu &#8211; Virtual Terminals (console)</a><ul class="uagb-toc__list"><li class="uagb-toc__list"><a href="#개요" class="uagb-toc-link__trigger">개요</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#ubuntu-가상-터미널-특징" class="uagb-toc-link__trigger">Ubuntu 가상 터미널 특징</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#주의사항" class="uagb-toc-link__trigger">주의사항</a><li class="uagb-toc__list"><li class="uagb-toc__list"><a href="#유용한-팁-및-단축키" class="uagb-toc-link__trigger">유용한 팁 및 단축키</a></ul></ol>					</div>
									</div>
				</div>
			


<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">Ubuntu &#8211; Virtual Terminals (console)</h2>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">개요</h3>



<p class="wp-block-paragraph">가상 터미널(Virtual Terminals)은 단일 물리적 콘솔에서 여러 독립적인 텍스트 기반 로그인 세션을 제공하는 Linux 시스템의 기능</p>



<p class="wp-block-paragraph"><strong>여러 개의 터미널을 동시에 사용할 수 있는 기능</strong></p>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">Ubuntu 가상 터미널 특징</h3>



<ul class="wp-block-list">
<li>기본 6개의 VT 지원</li>



<li>그래픽 세션은 보통 F7에 위치</li>



<li>로그인 및 터미널 작업에 최적화</li>
</ul>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">주의사항</h3>



<ul class="wp-block-list">
<li>Ubuntu 버전에 따라 VT 동작 slight 차이 가능</li>



<li>그래픽 데스크톱 환경(GNOME 등)에 영향 받을 수 있음</li>
</ul>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h3 class="wp-block-heading">유용한 팁 및 단축키</h3>



<ul class="wp-block-list">
<li><code><strong>Ctrl + Alt + F2 ~ F6</strong></code></li>



<li><strong><code><code><strong>Ctrl + Alt +</strong> </code></code>방향키</strong> <em> # VT 전환</em></li>



<li><code><strong>who </strong></code><em> # 명령어로 현재 활성 터미널 확인</em></li>



<li><code><strong>sudo chvt N</strong></code>  <em># N은 전환하고자 하는 가상 터미널 번호</em></li>



<li><code><strong>fgconsole</strong></code>    <em># 현재 활성화된 VT 번호 확인 </em></li>



<li><code><strong>deallocvt</strong></code>    <em># 사용하지 않는 VT 해제 </em></li>



<li><code><strong>openvt</strong></code><em><strong>  </strong>  # 새로운 프로그램을 지정된 VT에서 실행</em></li>



<li>시스템 문제 해결 시 텍스트 터미널 활용 추천</li>
</ul>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://lycos7560.com/ubuntu/ubuntu-virtual-terminals-console/38794/">Ubuntu &#8211; Virtual Terminals (console)</a> appeared first on <a href="https://lycos7560.com">어제와 내일의 나 그 사이의 이야기</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://lycos7560.com/ubuntu/ubuntu-virtual-terminals-console/38794/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
