<?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>웹 서버 Nginx 설치 &#8211; 준우블로그</title>
	<atom:link href="https://junewoo.com/tag/%ec%9b%b9-%ec%84%9c%eb%b2%84-nginx-%ec%84%a4%ec%b9%98/feed/" rel="self" type="application/rss+xml" />
	<link>https://junewoo.com</link>
	<description>또 하나의 준우블로그 사이트</description>
	<lastBuildDate>Sat, 16 Mar 2024 11:30:00 +0000</lastBuildDate>
	<language>ko-KR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
<site xmlns="com-wordpress:feed-additions:1">199246569</site>	<item>
		<title>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6</title>
		<link>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/</link>
					<comments>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/#respond</comments>
		
		<dc:creator><![CDATA[cvilla]]></dc:creator>
		<pubDate>Wed, 06 Mar 2024 11:02:26 +0000</pubDate>
				<category><![CDATA[우분투서버 만들기]]></category>
		<category><![CDATA[sudo apt install nginx]]></category>
		<category><![CDATA[웹 서버 Nginx 설치]]></category>
		<category><![CDATA[현재 iptables 규칙 초기화]]></category>
		<guid isPermaLink="false">https://junewoo.com/?p=1519</guid>

					<description><![CDATA[<p>Contents 1. 개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립 2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV ... <a title="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6" class="read-more" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/" aria-label="개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6에 대해 더 자세히 알아보세요">더 읽어보기</a></p>
<p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Contents</p>
<table style="border-collapse: collapse; width: 100%; height: 375px;">
<tbody>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;">1. <a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-1/">개인 서버 만들기, 파워, 케이스, 메인보드, CPU쿨러, SSD, 메모리(RAM), CPU 선정과 주문 조립</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-2/">2. 공유기 설정하기, 공유기1 브릿지 모드 설정, iptime 공유기2 IPTV 연결 설정<br />
</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-3/">3. 개인 서버에 Ubuntu 22.04.4 LTS 설치하기, Universal-USB-Installer를 사용하여 부팅 가능한 USB를 생성하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-4/">4. 개인 PC에 우분투 서버 접속용 3가지 SSH 설치, <span style="font-size: inherit; font-family: inherit;">자료실의 Putty, </span>EditPlus, <span style="font-size: inherit; font-family: inherit;">FileZilla 다운 후 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-5/">5. 우분투 서버 환경 date 설정하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #ebe309;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-6/">6. 웹 서버 Nginx 설치, <span style="font-size: inherit; font-family: inherit;">현재 iptables 규칙 초기화</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-7/">7. Ubuntu sever 폴더 권한 설정, <span style="font-size: inherit; font-family: inherit;">Nginx 페이지의 내용 수정과 권한 설정</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-8/">8. Nginx 서버에 PHP8.3 설치, <span style="font-size: inherit; font-family: inherit;">자주 쓰이는 php8.3 모듈 설치하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%EA%B0%9C%EC%9D%B8-%EC%84%9C%EB%B2%84%EC%97%90-ubuntu-lemp-wordpress-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-9/">9. apt update와 upgrade가 완료 후 mariadb를 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-10/">10. MariaDB 관리 도구 phpMyAdmin 설치하기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-11/">11. 아사달에서 도메인 연결하기, <span style="font-size: inherit; font-family: inherit;">카페24에서 도메인 연결하기</span></a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-12/">12. HTTPS 적용을 위한 SSL 인증서 발급, <span style="font-size: inherit; font-family: inherit;"><span style="font-size: inherit; font-family: inherit;">Nginx에 acme-challenge 폴더 위치를 알리기 위하여 letsencrypt.conf 파일 만들기, </span></span>Let’s Encrypt SSL 발급 받기</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-13/">13. MariaDB에서 데이터베이스(DB) 만들기, phpMyAdmin에서 DB생성</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-14/">14. 워드프레스 설치, 우분투 서버에 ko.wordpress.org/latest-ko_KR.zip 파일 설치, wordpress.zip 파일 압축 풀기, 서버 폴더 소유자 권한 및 사용자 그룹 변경</a></td>
</tr>
<tr style="height: 25px;">
<td style="width: 100%; height: 25px; background-color: #f7f7ed;"><a href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-15/">15. 워드프레스 설치 후 환경 설정, 우분투 서버에 wp-config.php에 임시디렉토리 설정, FTP 연결 정보 입력, Putty로 php.ini, nginx.conf를 수정</a></td>
</tr>
</tbody>
</table>
<h2>개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6</h2>
<p>개인 서버에 Ubuntu sever LEMP(Linux-ubuntu+Nginx+MariaDB-Phpmyadmin+PHP8.3) WORDPRESS 설치하기</p>
<p>웹 서버 Nginx는 고성는, 고가용성, 유연성을 제공하는 오픈 소스 웹 서버 소프트웨어입니다. 이 소프트웨어는 웹 서버 기능 뿐만 아니라 리버스 프록시, 메일 프록시, 일반 TCP/UDP 프록시 서버로도 사용할 수 있습니다. Nginx는 비동기 이벤트 기반 구조를 사용하여 동시에 많은 연결을 효율적으로 처리할 수 있으며, 이는 고성능 웹 사이트와 웹 애플리케이션을 호스팅하는 데 매우 적합합니다.</p>
<h2>6-1. 웹 서버 Nginx 설치</h2>
<p>우선 nginx의 설치 여부 및 현재 환경을 확인합니다.</p>
<p>명령어 창에서 sudo apt-cache policy nginx 를 입력해 봅니다.</p>
<p>설치 되어 있지 않으면 다음과 같이 출력됩니다.</p>
<pre class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-cache policy nginx</span>
nginx:
  <span style="color: #ff0000;">Installed: (none)</span>
  Candidate: 1.18.0-6ubuntu14.4
  Version table:
     1.18.0-6ubuntu14.4 500
        500 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages
     1.18.0-6ubuntu14 500
        500 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
junewoo@cvilla:~$
</code></pre>
<p>보시면 현재  설치 되어 있지 않으며, 해당 우분투는 14.4 버전이 있음을 알 수 있습니다.</p>
<h2>6-2. 내용의 확인과 nginx 설치</h2>
<p>명령어에서 sudo apt install nginx 를 입력합니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt install nginx</span>
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  grub-pc-bin
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip
  libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libxpm4
  nginx-common nginx-core
Suggested packages:
  libgd-tools fcgiwrap nginx-doc ssl-cert
The following NEW packages will be installed:
  fontconfig-config fonts-dejavu-core libfontconfig1 libgd3 libjbig0 libjpeg-turbo8 libjpeg8 libnginx-mod-http-geoip
  libnginx-mod-http-image-filter libnginx-mod-http-xslt-filter libnginx-mod-mail libnginx-mod-stream libtiff5 libwebp6 libxpm4
  nginx nginx-common nginx-core
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
Need to get 2462 kB of archives.
After this operation, 8210 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libjpeg-turbo8 amd64 1.5.2-0ubuntu5.18.04.3 [110 kB]
Get:2 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 fonts-dejavu-core all 2.37-1 [1041 kB]
Get:3 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 fontconfig-config all 2.12.6-0ubuntu2 [55.8 kB]
Get:4 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libfontconfig1 amd64 2.12.6-0ubuntu2 [137 kB]
Get:5 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libjpeg8 amd64 8c-2ubuntu8 [2194 B]
Get:6 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libjbig0 amd64 2.1-3.1build1 [26.7 kB]
Get:7 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtiff5 amd64 4.0.9-5ubuntu0.3 [153 kB]
Get:8 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libwebp6 amd64 0.6.1-2 [185 kB]
Get:9 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic/main amd64 libxpm4 amd64 1:3.5.12-1 [34.0 kB]
Get:10 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libgd3 amd64 2.2.5-4ubuntu0.4 [119 kB]
Get:11 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx-common all 1.14.0-0ubuntu1.7 [37.4 kB]
Get:12 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-geoip amd64 1.14.0-0ubuntu1.7 [11.2 kB]
Get:13 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-image-filter amd64 1.14.0-0ubuntu1.7 [14.6 kB]
Get:14 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-http-xslt-filter amd64 1.14.0-0ubuntu1.7 [13.0 kB]
Get:15 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-mail amd64 1.14.0-0ubuntu1.7 [41.8 kB]
Get:16 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libnginx-mod-stream amd64 1.14.0-0ubuntu1.7 [63.7 kB]
Get:17 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx-core amd64 1.14.0-0ubuntu1.7 [413 kB]
Get:18 http://ap-seoul-1-ad-1.clouds.archive.ubuntu.com/ubuntu bionic-updates/main amd64 nginx all 1.14.0-0ubuntu1.7 [3596 B]
Fetched 2462 kB in 11s (228 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libjpeg-turbo8:amd64.
(Reading database ... 100848 files and directories currently installed.)
Preparing to unpack .../00-libjpeg-turbo8_1.5.2-0ubuntu5.18.04.3_amd64.deb ...
Unpacking libjpeg-turbo8:amd64 (1.5.2-0ubuntu5.18.04.3) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../01-fonts-dejavu-core_2.37-1_all.deb ...
Unpacking fonts-dejavu-core (2.37-1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../02-fontconfig-config_2.12.6-0ubuntu2_all.deb ...
Unpacking fontconfig-config (2.12.6-0ubuntu2) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../03-libfontconfig1_2.12.6-0ubuntu2_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.12.6-0ubuntu2) ...
Selecting previously unselected package libjpeg8:amd64.
Preparing to unpack .../04-libjpeg8_8c-2ubuntu8_amd64.deb ...
Unpacking libjpeg8:amd64 (8c-2ubuntu8) ...
Selecting previously unselected package libjbig0:amd64.
Preparing to unpack .../05-libjbig0_2.1-3.1build1_amd64.deb ...
Unpacking libjbig0:amd64 (2.1-3.1build1) ...
Selecting previously unselected package libtiff5:amd64.
Preparing to unpack .../06-libtiff5_4.0.9-5ubuntu0.3_amd64.deb ...
Unpacking libtiff5:amd64 (4.0.9-5ubuntu0.3) ...
Selecting previously unselected package libwebp6:amd64.
Preparing to unpack .../07-libwebp6_0.6.1-2_amd64.deb ...
Unpacking libwebp6:amd64 (0.6.1-2) ...
Selecting previously unselected package libxpm4:amd64.
Preparing to unpack .../08-libxpm4_1%3a3.5.12-1_amd64.deb ...
Unpacking libxpm4:amd64 (1:3.5.12-1) ...
Selecting previously unselected package libgd3:amd64.
Preparing to unpack .../09-libgd3_2.2.5-4ubuntu0.4_amd64.deb ...
Unpacking libgd3:amd64 (2.2.5-4ubuntu0.4) ...
Selecting previously unselected package nginx-common.
Preparing to unpack .../10-nginx-common_1.14.0-0ubuntu1.7_all.deb ...
Unpacking nginx-common (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package libnginx-mod-http-geoip.
Preparing to unpack .../11-libnginx-mod-http-geoip_1.14.0-0ubuntu1.7_amd64.deb ...
Unpacking libnginx-mod-http-geoip (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package libnginx-mod-http-image-filter.
Preparing to unpack .../12-libnginx-mod-http-image-filter_1.14.0-0ubuntu1.7_amd64.deb ...
Unpacking libnginx-mod-http-image-filter (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package libnginx-mod-http-xslt-filter.
Preparing to unpack .../13-libnginx-mod-http-xslt-filter_1.14.0-0ubuntu1.7_amd64.deb ...
Unpacking libnginx-mod-http-xslt-filter (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package libnginx-mod-mail.
Preparing to unpack .../14-libnginx-mod-mail_1.14.0-0ubuntu1.7_amd64.deb ...
Unpacking libnginx-mod-mail (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package libnginx-mod-stream.
Preparing to unpack .../15-libnginx-mod-stream_1.14.0-0ubuntu1.7_amd64.deb ...
Unpacking libnginx-mod-stream (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package nginx-core.
Preparing to unpack .../16-nginx-core_1.14.0-0ubuntu1.7_amd64.deb ...
Unpacking nginx-core (1.14.0-0ubuntu1.7) ...
Selecting previously unselected package nginx.
Preparing to unpack .../17-nginx_1.14.0-0ubuntu1.7_all.deb ...
Unpacking nginx (1.14.0-0ubuntu1.7) ...
Setting up libjbig0:amd64 (2.1-3.1build1) ...
Setting up fonts-dejavu-core (2.37-1) ...
Setting up nginx-common (1.14.0-0ubuntu1.7) ...
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /lib/systemd/system/nginx.service.
Setting up libjpeg-turbo8:amd64 (1.5.2-0ubuntu5.18.04.3) ...
Setting up libnginx-mod-mail (1.14.0-0ubuntu1.7) ...
Setting up libxpm4:amd64 (1:3.5.12-1) ...
Setting up libnginx-mod-http-xslt-filter (1.14.0-0ubuntu1.7) ...
Setting up libnginx-mod-http-geoip (1.14.0-0ubuntu1.7) ...
Setting up libwebp6:amd64 (0.6.1-2) ...
Setting up libjpeg8:amd64 (8c-2ubuntu8) ...
Setting up fontconfig-config (2.12.6-0ubuntu2) ...
Setting up libnginx-mod-stream (1.14.0-0ubuntu1.7) ...
Setting up libtiff5:amd64 (4.0.9-5ubuntu0.3) ...
Setting up libfontconfig1:amd64 (2.12.6-0ubuntu2) ...
Setting up libgd3:amd64 (2.2.5-4ubuntu0.4) ...
Setting up libnginx-mod-http-image-filter (1.14.0-0ubuntu1.7) ...
Setting up nginx-core (1.14.0-0ubuntu1.7) ...
Setting up nginx (1.14.0-0ubuntu1.7) ...
Processing triggers for systemd (237-3ubuntu10.41) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ufw (0.36-0ubuntu0.18.04.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
junewoo@cvilla:~$
</code></pre>
<h2>6-3. 다시 nginx 설치가 잘 되었는지 확인해 봅니다.</h2>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs">junewoo@cvilla:~$ <span style="color: #ff0000;">sudo apt-cache policy nginx</span>
[sudo] password for junewoo:
nginx:
  <span style="color: #ff0000;">Installed: 1.18.0-6ubuntu14.4</span>
  Candidate: 1.18.0-6ubuntu14.4
  Version table:
 *** 1.18.0-6ubuntu14.4 500
        500 http://kr.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.18.0-6ubuntu14.3 500
        500 http://kr.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages
     1.18.0-6ubuntu14 500
        500 http://kr.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
junewoo@cvilla:~$</code></pre>
<p>보시면 Installed라고 떠 있는 것을 확인할 수 있습니다.</p>
<p>이제 서버에 접속이 되는지 확인해 보겠습니다.</p>
<h2>6-4. 현재 iptables 규칙 초기화</h2>
<p>명령 창에서 sudo iptables -F를 입력합니다.</p>
<p><code class="hljs">junewoo@cvilla:~$ sudo iptables -F</code></p>
<p>웹브라우저에서 IP주소를 입력하여 확인하여 봅니다.</p>
<p><img data-recalc-dims="1" fetchpriority="high" decoding="async" class="alignnone wp-image-1527" src="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-11-1.jpg?resize=860%2C665&#038;ssl=1" alt="" width="860" height="665" srcset="https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-11-1.jpg?resize=300%2C232&amp;ssl=1 300w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-11-1.jpg?resize=1024%2C793&amp;ssl=1 1024w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-11-1.jpg?resize=768%2C595&amp;ssl=1 768w, https://i0.wp.com/junewoo.com/wp-content/uploads/2024/03/%EB%8B%A4%EC%9A%B4%EB%A1%9C%EB%93%9C-11-1.jpg?w=1197&amp;ssl=1 1197w" sizes="(max-width: 860px) 100vw, 860px" /></p>
<p>Welcome to nginx!가 뜨면 정상적으로 nginx가 설치된 것입니다.</p>
<p id="OCI-5-2" data-ke-size="size20">설치시 오류가 난 경우 apt-get으로 설치합니다.</p>
<p data-ke-size="size20">먼저 apt-get을 업데이트 해 보겠습니다.</p>
<p data-ke-size="size20">명령어 창에서 sudo apt-get update 를 입력합니다.</p>
<p data-ke-size="size20">update후 명령어 창에서 sudo apt-get install nginx 를 입력해 보시기 바랍니다.</p>
<p data-ke-size="size20">그래도 설치 시 오류가 나신다면 아마도 우분투 패키지 업데이트 및 업그레이드가 되지 않아 나타나는 현상입니다.</p>
<p data-ke-size="size20">명령어 창에서 sudo apt update 와 sudo apt upgrade를 실행해 보시기 바랍니다.</p>
<pre id="code_1633400140094" class="bash" style="margin: 20px auto 0px; display: block; overflow: auto; padding: 20px; color: #383a42; background: #f8f8f8; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace; border: 1px solid #ebebeb; line-height: 1.71; cursor: default; z-index: 1; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;" data-ke-language="bash" data-ke-type="codeblock"><code class="hljs"><span style="color: #ff0000;">junewoo@cvilla:~$ sudo apt update</span>
[sudo] password for junewoo:
Hit:1 http://kr.archive.ubuntu.com/ubuntu jammy InRelease
Get:2 http://kr.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Hit:3 http://kr.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:4 http://kr.archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:5 http://kr.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [1,424 kB]
Get:6 http://kr.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,053 kB]
Get:7 http://kr.archive.ubuntu.com/ubuntu jammy-security/main amd64 Packages [1,208 kB]
Hit:8 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease
Ign:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Ign:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
Err:9 https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu bionic InRelease
  Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable) Could not connect to ftp.harukasan.org:443 (175.214.128.79). - connect (111: Connection refused) Could not connect to ftp.harukasan.org:443 (118.38.208.102), connection timed out
Fetched 3,914 kB in 38s (103 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
W: Failed to fetch https://ftp.harukasan.org/mariadb/repo/10.4/ubuntu/dists/bionic/InRelease  Cannot initiate the connection to ftp.harukasan.org:443 (2001:470:23:440::2). - connect (101: Network is unreachable) Could not connect to ftp.harukasan.org:443 (175.214.128.79). - connect (111: Connection refused) Could not connect to ftp.harukasan.org:443 (118.38.208.102), connection timed out
W: Some index files failed to download. They have been ignored, or old ones used instead.
<span style="color: #ff0000;">junewoo@cvilla:~$ sudo apt upgrade</span>
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  libmagickwand-6.q16-6 libmagickcore-6.q16-6 imagemagick-6-common
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
  libgpgme11
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
junewoo@cvilla:~$
</code></pre>
<p>&nbsp;</p>
<h2><a href="https://junewoo.com/?p=1535&amp;preview=true">7. 다음은 Linux 폴더 권한 설정입니다.</a></h2>
<div class='kakaotalk_link' style='float:right;'><a href="javascript:SendKakao('준우블로그', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/');"><img data-recalc-dims="1" src="https://i0.wp.com/junewoo.com/wp-content/plugins/kakao-talk-link/kakaotalk.png?w=860&#038;ssl=1" alt='Smart phone only'></a></div><div class="korea-sns"><div class="korea-sns-post korea-sns-pos-left"><div class="korea-sns-button korea-sns-facebook" OnClick="SendSNS('facebook', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/', '', 0);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/facebook.png');"></div><div class="korea-sns-button korea-sns-twitter" OnClick="SendSNS('twitter', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/', '', 0);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/twitter.png');"></div><div class="korea-sns-button korea-sns-telegram" OnClick="SendSNS('telegram', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/', '', 0);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/telegram.png');"></div><div class="korea-sns-button korea-sns-naverband" OnClick="SendSNS('naverband', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/', '', 0);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverband.png');"></div><div class="korea-sns-button korea-sns-naverblog" OnClick="SendSNS('naverblog', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/', '', 0);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/naverblog.png');"></div><div class="korea-sns-button korea-sns-copyurl" OnClick="SendSNS('copyurl', '개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6 - 준우블로그', 'https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/', '', 0);"  style="background-image:url('https://junewoo.com/wp-content/plugins/korea-sns/icons/copyurl.png');"></div></div><div style="clear:both;"></div></div><p>The post <a rel="nofollow" href="https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/">개인 서버에 Ubuntu LEMP WORDPRESS 설치하기 6</a> appeared first on <a rel="nofollow" href="https://junewoo.com">준우블로그</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://junewoo.com/%ea%b0%9c%ec%9d%b8-%ec%84%9c%eb%b2%84%ec%97%90-ubuntu-lemp-wordpress-%ec%84%a4%ec%b9%98%ed%95%98%ea%b8%b0-6/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1519</post-id>	</item>
	</channel>
</rss>
