๋ฐ์ํ ์ ์ฒด ๊ธ224 not attempting to start nginx, port 80 is already in use. 80๋ฒ ํฌํธ๊ฐ ์ฌ์ฉ์ค์ผ๋ ๋์ค๋ ์๋ฌ $ sudo fuser -k 80/tcp $ sudo service nginx start ์ฌ์ฉ์ค์ธ 80ํฌํธ๋ฅผ ๊บผ์ค๋ค nginx ๋ฅผ ์์ํด์ค๋๋ค. :D 2022. 2. 9. Firewalld is not running ํด๊ฒฐํ๊ธฐ $ sudo systemctl start firewalld ์คํ์์ผ์ฃผ๋ฉด ์ ์์ ์ผ๋ก ๋์ํฉ๋๋ค. 2022. 2. 9. [Javascript] input ์ ๋ ฅ๊ฐ ์ถ๋ ฅํ๊ธฐ html function printName() { const name = document.getElementById('name').value; document.getElementById("result").innerText = name; } HTML ์ฝ์ ๋ฏธ๋ฆฌ๋ณด๊ธฐํ ์ ์๋ ์์ค 2022. 2. 7. 2์ฐจ์ ๋ฐฐ์ด ์ธํ๋ฝ๊ธฐ package G1_๋ฐฐ์ด์ฌํ1_ํ๊ฐ๋ฌธ์ ; public class ๋ฐฐ์ด6_ํ๋ก์ ํธ_์ธํ๋ฝ๊ธฐ2_์ ๋ต { /* * ์ ๋ฐ์ดํฐ๋ ์ธํ๋ฝ๊ธฐ ๊ธฐ๊ณ์ ๋ฐ์ดํฐ ์ด๋ค. (7 x 5) ์ฌ์ด์ฆ * [์ธํ๋ฒํธ] * [1 : ํธ๋์ด] [2 : ๊ณฐ] [3 : ์ฌ์] [4 : ๊ธฐ๋ฆฐ] * ------------------------------------------------- * [1] ์ซ์ 0 ์ ๋น์ด์๋๊ฒ์๋ปํ๋ค. * [2] ์ซ์ 0 ์ด ์๋๊ณณ์ ์ธํ์ด ์๋๊ฒ์ ๋ปํ๊ณ ์ซ์๋ ์ธํ๋ฒํธ์ด๋ค. * [3] input์ ๋ฐ์ดํฐ๋ ์ค๋ ์๋๋ค์ด ์ธํ์ ์ ํํ ์ธ๋ฑ์ค๋ฒํธ์ด๋ค. * [4] ์ธ๋ก๋จ์๋ก ํ๋ผ์ธ์ด๊ณ , ์ธ๋ฑ์ค๋ฒํธ๋ ๊ฐ๋ก๋ก ์ ํ์ด ๋๋ค. (์ 0~4๋ฒ๊น์ง ๊ฐ๋ฅ) * [5] ์ธํ์ ๊ฐ๋ผ์ธ๋ณ ์๋์ ๋ถํฐ๋ฝํ๋ค. ๋งค์๋๊ฐ ๋ฝํ๋ฏ๋ก ์ ๋ถ ํ.. 2022. 2. 3. ๋ฐฐ์ด ๊ฐ์ด๋ฐ ์๋ฆฌ ์์ ํฉ package G1_๋ฐฐ์ด์ฌํ1_ํ๊ฐ๋ฌธ์ ; import java.util.Arrays; public class ๋ฐฐ์ด์ฌํ1_๊ฐ์ด๋ฐ์์ํฉ_๋ฌธ์ { /* array[] = {123,9876,2,43,15342}; [1] ์ ๋ฐฐ์ด๊ฐ๊ฐ์ ๊ฐ์ด๋ฐ ์๋ฆฌ์ ํฉ์ ๊ตฌํ์์. [2] ์๋ฆฌ์๊ฐ ์ง์์ธ๊ฒฝ์ฐ ์๋ค2์๋ฆฌ๋ฅผ ๋ชจ๋ ๋ํ๋ค. [3] ๊ฐ๊ฐ์ ํฉ์ result๋ฐฐ์ด์ ์ ์ฅํ ์ถ๋ ฅ ์) 123 ==> 2 9876 ==> 8 + 7 2 ==> 2 43 ==> 4 + 3 15342 ==> 3 */ public static void main(String[] args) { int array[] = {123,9876,2,43,15342}; int result[] = new int[array.length]; for(int i=0; i0).. 2022. 1. 27. EC2 nginx ์ค์น ๋ฐ ํฐ์บฃ์ฐ๋ http -> https ๋ก ๋ณ๊ฒฝํ๊ธฐ์ํ ๊ณผ์ ์ ์ค์ค๋ก ๊ธฐ์ตํ๊ธฐ์ํด ์์ฑํฉ๋๋ค. *๋ณธ๊ธ์๋ AWS ๊ฐ์ ๋ฐ ec2 ์ค์ ํฐ์บฃ ์ค์น ํฐ์บฃ ํ๊ฒฝ๋ณ์ ๋ ์๋ตํฉ๋๋ค. $sudo apt-get --purge remove nginx-* ๊ธฐ์กด์ ์ค์นํ๋ nginx ๋ฅผ ์ญ์ ํด์ฃผ์๋ค. $sudo apt install nginxโ nginx ๋ค์์ค์น Do you want to countinue? [Y/n] y ์ค์น ์๋ฃํ $cd /etc/nginx/sites-available sites-available ํด๋๋ก ์ด๋ $sudo touch tomcat.conf tomcat.conf ํ์ผ์ ์์ฑํด์ค๋ค. $sudo vi tomcat.conf tomcat.conf ํ์ผ์ ์ด์ด ์์ฑํด์ฃผ์ ์๋ฒ์ ์ ์ํ ๋ ์ฌ์ฉํ public ip.. 2022. 1. 26. ์ด์ 1 ยทยทยท 34 35 36 37 38 ๋ค์ 300x250