๋กœ์ผ“๐Ÿพ
article thumbnail
[MySQL] AWS EC2์— ์„ค์น˜ํ•œ MySQL ์™ธ๋ถ€ ์ ‘์† ํ—ˆ์šฉํ•˜๊ธฐ
... 2021. 10. 7. 09:45

1. ec2 ์ ‘์† ํ›„ cd/etc/mysql/mysql.conf.d ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค. 2. sudo vi mysqld.cnf 3. bind-address 127.0.0.1 ๊ฐ€ ์ ํžŒ์ค„ ๋งจ์•ž์— # ๋ฅผ ๋„ฃ์–ด ์ฃผ์„์ฒ˜๋ฆฌ ํ•ด์ฃผ๊ธฐ 4. mysql ์ ‘์†(sudo /usr/bin/mysql -u root -p) 5. ์™ธ๋ถ€์ ‘์† ํ—ˆ์šฉ sql๋ฌธ ์ž…๋ ฅ mysql> create user 'root'@'%' identified by '[password]'; mysql> grant all privileges on *.* to 'root'@'%' with grant option; 'root' ๋Œ€์‹  ์œ ์ € ์ด๋ฆ„์„ ๋„ฃ์–ด์ฃผ์‹œ๋ฉด๋˜๊ณ , %๋Š” ๋ชจ๋“  ๊ณณ์—์„œ ์ ‘์† ํ—ˆ์šฉ์ด๋ผ๋Š” ๋œป์ž…๋‹ˆ๋‹ค. 6. mysql ์žฌ์‹œ์ž‘ํ•˜๊ธฐ sudo service mysql res..

article thumbnail
[EKS] AWS EKS๋กœ k8s ํด๋Ÿฌ์Šคํ„ฐ ์ƒ์„ฑ ํ›„ ALB๋กœ ๋ฐฐํฌํ•˜๊ธฐ
... 2021. 10. 5. 22:15

์ด๋ฒˆ ๊ธ€์„ ์ง„ํ–‰ํ•˜๋ ค๋ฉด ๋จผ์ € ์„ ํ–‰๋˜์–ด์•ผ ํ•  ์ž‘์—…์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ aws, k8s์— ๋Œ€ํ•œ ๊ธฐ์ดˆ ์ง€์‹์ด ์—†์œผ๋ฉด ์–ด๋ ค์šธ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. -k8s 1.19๋ฒ„์ „ -aws cli ์„ค์น˜ ํ›„ aws์— ์•ก์„ธ์Šค ํ•˜๊ธฐ -eksctl ์„ค์น˜ -์•„๋ž˜์™€ ๊ฐ™์€ vpc ๊ตฌ์ถ• ์œ„ 3๊ฐ€์ง€ ์„ ํ–‰์ž‘์—…์ด ๋˜์—ˆ๋‹ค๋Š” ๊ฐ€์ •ํ•˜์— ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. k8s ํด๋Ÿฌ์Šคํ„ฐ ์ƒ์„ฑ ์šฐ์„  ํผ๋ธ”๋ฆฟ ์„œ๋ธŒ๋„ท 3๊ฐœ๋ฅผ ๊ฐ€์ง€๋Š” VPC๋ฅผ ํ†ตํ•ด EKS๋ฅผ ์ด์šฉํ•˜์—ฌ k8s ํด๋Ÿฌ์Šคํ„ฐ๋ฅผ ๋งŒ๋“ค์–ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. $ eksctl create cluster -f create-cluster.yaml ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•˜์—ฌ k8s ํด๋Ÿฌ์Šคํ„ฐ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค. * create-cluster.yaml apiVersion: eksctl.io/v1alpha5 kind: ClusterConfig metadata: name: "..

article thumbnail
[Linux] ๋ฆฌ๋ˆ…์Šค ๊ทธ๋ฃน ์ƒ์„ฑ/์‚ญ์ œ/ํ™•์ธ/์ถ”๊ฐ€ - groupadd
... 2021. 10. 5. 15:51

๋ฆฌ๋ˆ…์Šค์‹œ์Šคํ…œ์—๋Š” ์‚ฌ์šฉ์ž๋ฅผ ์ƒ์„ฑํ•˜๋ฉด ์ž๋™์œผ๋กœ ์‚ฌ์šฉ์ž๋ช…๊ณผ ๊ฐ™์€ ๊ทธ๋ฃน์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ๋ฆฌ๋ˆ…์Šค์—์„œ๋Š” ์ž์‹ ์˜ ๊ณ„์ • ์ด๋ฆ„๊ณผ ๋™์ผํ•œ ๊ทธ๋ฃน์— ๋ฐ˜๋“œ์‹œ ์†ํ•˜๊ฒŒ ๋˜๋ฉฐ, ํŠน์ • ๊ทธ๋ฃน์„ ๋งŒ๋“ค์–ด์„œ ๊ธฐ์กด์˜ ์‚ฌ์šฉ์ž๋“ค์ด ์†Œ์†๋˜๊ฒŒ ํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ฃน ์ถ”๊ฐ€ - groupadd groupadd ๋ช…๋ น์–ด๋กœ ์ƒ์„ฑ๋˜๋Š” ๊ทธ๋ฃน์€ ํŠน๋ณ„ํ•œ ์˜ต์…˜์ด ์ฃผ์–ด์ง€์ง€ ์•Š๋Š” ํ•œ GID๋Š” 499 ๊นŒ์ง€๋Š” ํ• ๋‹น๋˜์ง€ ์•Š๋Š”๋‹ค. ์ฆ‰, GID ๊ฐ€ 500 ์ด์ƒ์ธ ๊ทธ๋ฃน๋“ค ๊ฐ€์šด๋ฐ ๊ฐ€์žฅ ๋‚ฎ์€ GID ๋ฒˆํ˜ธ๋กœ ๊ทธ๋ฃน์„ ์ƒ์„ฑํ•˜๊ฒŒ ๋œ๋‹ค( -r ์˜ต์…˜ ์‚ฌ์šฉ์‹œ์—๋Š” ์˜ˆ์™ธ). BASH $ groupadd teamzezz ์•„๋ฌด ์˜ต์…˜์—†์ด ์ƒˆ๋กœ์šด ๊ทธ๋ฃน์„ ์ƒ์„ฑํ•˜๋ฉด ๊ธฐ์กด์— ์žˆ๋˜ ๊ทธ๋ฃน์˜ ๋งˆ์ง€๋ง‰ ๋ฒˆํ˜ธ ๋‹ค์Œ๋ฒˆํ˜ธ๋ฅผ GID ๋กœ ํ• ๋‹นํ•˜์—ฌ teamzezz ๋ผ๋Š” ๊ทธ๋ฃน์ด ์ƒ์„ฑ๋œ๋‹ค. BASH grep teamzezz /e..

article thumbnail
[AWS] EC2 root ๊ณ„์ • ์‚ฌ์šฉํ•˜๊ธฐ
... 2021. 10. 5. 15:29

โ–ถ 1. root ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ๋จผ์ € ๋ณ€๊ฒฝํ•˜์—ฌ ์ค€๋‹ค. #sudo passwd root โ–ถ 2. sshd_config ์„ค์ •์ •๋ณด ๋ณ€๊ฒฝ #sudo vi /etc/ssh/sshd_config :set nu ๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ๋ณด๊ธฐ ์ข‹๊ฒŒ ๋ผ์ธ์ˆ˜ ํ‘œ์‹œ. 38 ๋ผ์ธ์˜ "PermitRootLogin yes" ๋ถ€๋ถ„์˜ ์ฃผ์„์„ ํ•ด์ œํ•˜๊ณ  ์ €์žฅ (:wq) โ–ถ 3. ๋ฃจํŠธ ๊ฒฝ๋กœ์— .ssh ๊ฒฝ๋กœ๋ฅผ ์ƒ์„ฑํ•˜์—ฌ ์ค€๋‹ค. #sudo mkdir /root/.ssh ๋‚˜์™€ ๊ฐ™์€ ๊ฒฝ์šฐ๋Š” ์ด๋ฏธ ๋””๋ ‰ํ† ๋ฆฌ๊ฐ€ ์žˆ์–ด ์ƒ์„ฑ๋˜์ง„ ์•Š์•˜๋‹ค. โ–ถ 4. ec2์œ ์ €์˜ ์ธ์ฆํ‚ค๋ฅผ root๋กœ ๋ณต์‚ฌํ•œ๋‹ค. #sudo cp /home/ec2-user/.ssh/authorized_keys /root/.ssh โ–ถ 5. sshd๋ฅผ ๋ฆฌ์Šคํƒ€ํŠธ ํ•œ๋‹ค. #sudo systemctl restart ssh..

article thumbnail
[AWS] ์•„๋งˆ์กด ๋ฆฌ๋ˆ…์Šค์— nginx ์„ค์น˜ํ•˜๊ธฐ
... 2021. 9. 26. 12:58

Amazon Linux 2 OS์˜ EC2์—์„œ nginx ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. Amazon Linux 2์—์„œ๋Š” yum์„ ํ†ตํ•œ nginx ์„ค์น˜๊ฐ€ ์ง€์›๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ์ผ๋ฐ˜์ ์ธ yum ์„ ํ†ตํ•œ ์„ค์น˜ ์‹œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ๊ฒƒ์„ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. sudo yum install nginx yum์œผ๋กœ๋Š” nginx ํŒจํ‚ค์ง€๋ฅผ ์ฐพ์ง€ ๋ชปํ•ฉ๋‹ˆ๋‹ค. To use, run ์— ๋‚˜์™€์žˆ๋Š” amazon-linux-extras install : topic ๋ฅผ ์ด์šฉํ•˜์—ฌ nginx ์„ค์น˜๋ฅผ ์ง„ํ–‰ํ•˜๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. amazon-linux-extras list ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์„ค์น˜ํ•  nginx๋ฅผ ์ฐพ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. amazon-linux-extras list | grep nginx ์กฐํšŒ๋œ nginx1์— ๋Œ€ํ•ด์„œ ์„ค์น˜๋ฅผ ์ง„ํ–‰ํ•ด ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ..

article thumbnail
[JavaScript] ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์—์„œ Reflection ์‚ฌ์šฉํ•˜๊ธฐ
... 2021. 9. 13. 15:06

์ž๋ฐ”์—์„œ ๋ณ€์ˆ˜๋ช…์œผ๋กœ ํด๋ž˜์Šค๋ฅผ ์ธ์Šคํ„ด์Šคํ™” ํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฐฉ๋ฒ• 1-์ธ์ˆ˜๋Š” ์—†๊ณ  ์ƒ์„ฑ์ž๋งŒ ์žˆ๋Š” ํด๋ž˜์Šค์—๋งŒ ํ•ด๋‹น ํด๋ž˜์Šค์— ์ธ์ˆ˜๊ฐ€์—†๋Š” ์ƒ์„ฑ์ž๊ฐ€์žˆ๋Š” ๊ฒฝ์šฐ ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ Class๊ฐ์ฒด๋ฅผ ๊ฐ€์ ธ์˜ค๊ณ ์ด ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ธ์Šคํ„ด์Šค๋ฅผ ๋งŒ๋“ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. Class domainClass = Class.forName("com.femarket.domain." + domainName); Object domain = domainClass.newInstance(); ๋ฐฉ๋ฒ• 2 ํด๋ž˜์Šค์— ์ธ์ˆ˜๊ฐ€์—†๋Š” ์ƒ์„ฑ์ž๊ฐ€์—†๋Š” ๊ฒฝ์šฐ์—๋„ ์ž‘๋™ํ•˜๋Š” ๋” ์•ˆ์ „ํ•œ ๋ฐฉ๋ฒ•์€ ํด๋ž˜์Šค ๊ฐœ์ฒด๋ฅผ ์ฟผ๋ฆฌํ•˜์—ฌ ํ•ด๋‹น Constructor๊ฐœ์ฒด ๋ฅผ ๊ฐ€์ ธ์˜ค๊ณ ์ด ๊ฐœ์ฒด์— ๋Œ€ํ•œ newInstance()๋ฉ”์„œ๋“œ๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค. Class clazz = Class.forName("..

article thumbnail
[EKS] EKS๋กœ ๊ตฌ์ถ•ํ•œ cluster ์™ธ๋ถ€ ์ ‘๊ทผํ•˜๊ธฐ
... 2021. 9. 10. 13:08

kube config์—์„œ eks ์ •๋ณด๊ฐ€ ์žˆ์–ด์•ผํ•ด์š” ์›Œ์ปค๋…ธ๋“œ ์ƒ์„ฑ ์ „์—๋„ ์ ‘๊ทผ๊ฐ€๋Šฅํ•ด์š” ๋งˆ์Šคํ„ฐ๋Š” ์–ด์ฐจํ”ผ aws์—์„œ ๊ด€๋ฆฌํ•ด์„œ aws sts get-caller-identity ์ด๊ฑธ๋กœ ๋ณธ์ธ local ์ปดํ“จํ„ฐ์—์„œ access key, secret key ์„ค์ •ํ–ˆ๋Š”์ง€ ํ™•์ธํ•˜์‹œ๊ณ  aws eks --region ${region_name} update-kubeconfig --name ${cluster_name} ์ด๊ฑธ๋กœ kube config ํŒŒ์ผ ์—…๋ฐ์ดํŠธํ•˜์„ธ์š” https://docs.aws.amazon.com/ko_kr/eks/latest/userguide/managing-auth.html ํด๋Ÿฌ์Šคํ„ฐ ์ธ์ฆ - Amazon EKS ์ด ํŽ˜์ด์ง€์— ์ž‘์—…์ด ํ•„์š”ํ•˜๋‹ค๋Š” ์ ์„ ์•Œ๋ ค ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ์‹ค๋ง์‹œ์ผœ ๋“œ๋ ค ์ฃ„์†กํ•ฉ๋‹ˆ๋‹ค. ์ž ๊น ์‹œ๊ฐ„..

article thumbnail
[JavaScript] ํ˜„์žฌ ๋‚ ์งœ, ์‹œ๊ฐ„ ๊ตฌํ•˜๊ธฐ (yyyy-MM-dd HH:mm:ss)
... 2021. 9. 9. 14:18

์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ์—์„œ ํ˜„์žฌ ๋‚ ์งœ ๋ฐ ์‹œ๊ฐ„์„ ๊ตฌํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” Date ๊ฐ์ฒด๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด ๋œ๋‹ค. Date ๊ฐ์ฒด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ˜„์žฌ์˜ ๋‚ ์งœ๋ฅผ ์ถœ๋ ฅํ•˜๋ฉด YYYY-MM-DD์™€ ๊ฐ™์€ ํ˜•์‹์˜ ๋‚ ์งœ ํฌ๋งท์œผ๋กœ ์ถœ๋ ฅ๋˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์—, Date ๊ฐ์ฒด์—์„œ ์ œ๊ณตํ•˜๋Š” ์ถ”์ถœ ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋‚ ์งœ ํฌ๋งท์„ ๋ณ€ํ™˜ํ•˜๋Š” ์ž‘์—…์ด ์ถ”๊ฐ€์ ์œผ๋กœ ํ•„์š”ํ•˜๋‹ค. ํ˜„์žฌ ๋‚ ์งœ, ์‹œ๊ฐ„ ๊ตฌํ•˜๊ธฐ var today = new Date(); console.log(today); // ๊ฒฐ๊ณผ : Sun May 30 2021 15:47:29 GMT+0900 (๋Œ€ํ•œ๋ฏผ๊ตญ ํ‘œ์ค€์‹œ) // ๊ฒฐ๊ณผ : Sun May 30 2021 15:47:29 GMT+0900 (๋Œ€ํ•œ๋ฏผ๊ตญ ํ‘œ์ค€์‹œ) Date ๊ฐ์ฒด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ˜„์žฌ ์‹œ์Šคํ…œ์˜ ๋‚ ์งœ๋ฅผ ๊ฐ€์ ธ์™€์„œ ์ถœ๋ ฅํ•˜๋ฉด, ํ‰์ƒ์‹œ์— ์‚ฌ์šฉํ•˜๋Š” ๋‚ ์งœ ํฌ๋งท(YYYY-MM-DD ..

article thumbnail
[Javascript] JSON๊ณผ JavaScript Object์˜ ์ฐจ์ด์ 
... 2021. 9. 3. 10:33

ajax ์‚ฌ์šฉํ•˜๋˜ ์ค‘ ํ•œ๊ฐ€์ง€ ์˜๋ฌธ์ด ์ƒ๊ฒผ์Šต๋‹ˆ๋‹ค. ์™œ JSON.stringify๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  ๋ฐ์ดํ„ฐ๋ฅผ ๋ณด๋‚ด๋ฉด ์™œ ์Šคํ”„๋ง @RequestBody์—์„œ ๋ฐ›์งˆ ๋ชปํ•˜๋Š”์ง€ ๋ง์ž…๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ data : {test : "test"} ์™€ data : JSON.stringify์˜ ํƒ€์ž…๋“ค์„ ์ฝ˜์†”๋กœ ์ฐ์–ด๋ณธ ๊ฒฐ๊ณผ ์ „์ž๋Š” object์ด๊ณ  ํ›„์ž๋Š” string์ด์˜€์Šต๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ ์•„ํ•˜! ํ–ˆ์Šต๋‹ˆ๋‹ค. ๋‚ด๊ฐ€ ํ”ํžˆ ๋งํ•˜๋Š” json๊ณผ js์—์„œ ์‚ฌ์šฉํ•˜๋Š” javacscript Object๋Š” ๋‹ค๋ฅธ๊ฑฐ๊ตฌ๋‚˜! ๊ทธ๋ž˜์„œ ์ด๊ฑฐ์— ๋Œ€ํ•ด ๊ธ€์„ ์ฐพ์•„๋ณธ ํ›„ ์ •๋ง ์ž˜ ์„ค๋ช…ํ•ด์ฃผ์‹  ๊ธ€์ด ์žˆ์–ด์„œ ๊ฐ€์ ธ์™€๋ดค์Šต๋‹ˆ๋‹ค. ์ด๊ธ€์€ yongseong.log ๋‹˜์˜ ๊ธ€์ž…๋‹ˆ๋‹ค. [๊ฐœ๋ฐœ์ƒ์‹] JSON๊ณผ JavaScript Object์˜ ์ฐจ์ด์  ์•ˆ๋…•ํ•˜์„ธ์š”. ๊น€์šฉ์„ฑ์ž…๋‹ˆ๋‹ค.์ •๋ง ๋น„์Šทํ•˜๊ฒŒ ์ƒ๊ฒจ๋จน์€..

[JavaScript] ๊ฒ€์ƒ‰์€ ๊ท€์ฐฎ๊ณ  ๊ธฐ์–ต์€ ์•ˆ๋‚˜๊ณ  ajax ๊ธฐ๋ณธ ์˜ˆ์ œ
... 2021. 9. 3. 10:10

var data = {"name":"John Doe"} $.ajax({ type : "post", url : "/test", dataType : "json", //์„œ๋ฒ„์—์„œ ๋ฐ›์„ ๋ฐ์ดํ„ฐ ํƒ€์ž… contentType: "application/json; charset=utf-8", //์„œ๋ฒ„๋กœ ๋ณด๋‚ด๋Š” ๋ฐ์ดํ„ฐ ํƒ€์ž… data : JSON.stringify(data), success : function(result) { alert(result.success); }, error: function(e){ alert("fail"); } }); ๋งจ๋‚  ๊นŒ๋จน์–ด์„œ ์ œ๊ฐ€ ๋ณด๊ธฐ ์œ„ํ•ด ์”๋‹ˆ๋‹ค. $.ajax({ type : `http method type`, url : `url`, data : `์„œ๋ฒ„์— ์ „์†กํ•  ๋ฐ์ดํ„ฐ`, contentTy..

article thumbnail
[Network]์‚ฌ์ด๋”(CIDR) ๋ž€ ๋ฌด์—‡์ธ๊ฐ€?
... 2021. 8. 31. 21:51

CIDR? AWS, GCP, Azure ๋“ฑ ํผ๋ธ”๋ฆญ ํด๋ผ์šฐ๋“œ ๋“ฑ์„ ์‚ฌ์šฉํ•  ๋•Œ ๋„คํŠธ์›Œํฌ ์„ค์ •์—์„œ VPC ๋ฐ Subnet ์„ ์ƒ์„ฑํ•˜์—ฌ ๋„คํŠธ์›Œํฌ๋ฅผ ๊ตฌ์„ฑํ•˜๊ฒŒ ๋ฉ๋‹ˆ๋‹ค. ์ด ๋•Œ CIDR(Classless Inter-Domain Routing) ๋ธ”๋ก์„ ์ด์šฉํ•˜์—ฌ 10.10.1.0/24 ๋“ฑ๊ณผ ๊ฐ™์ด ํ‘œ์‹œํ•˜๊ฒŒ ๋˜๋Š”๋ฐ ์ฃผ๋‹ˆ์–ด ๊ฐœ๋ฐœ์ž ๊ผฌ๊ผฌ๋งˆ ์‹œ์ ˆ์—๋Š” AWS ์ฝ˜์†”์—์„œ ๋„คํŠธ์›Œํฌ, ์‹œํ๋ฆฌํ‹ฐ๊ทธ๋ฃน ๋“ฑ์—์„œ ๋งŽ์ด ๋ด ์™”์ง€๋งŒ ์„ ๋ฐฐ๋“ค์ด ์•Œ๋ ค์ค€ ๋Œ€๋กœ ๊ทธ๋ƒฅ Cํด๋ž˜์Šค์ผ๋•Œ๋Š” /24, ํŠน์ •IP๋งŒ ์ง€์ •ํ• ๋•Œ๋Š” /32 ๋กœ ์•Œ๊ณ  ์‚ด์•„์™”์—ˆ๊ณ , ์•„์ง๋„ ๊ทธ๋ ‡๊ฒŒ ์•Œ๊ณ  ์žˆ๋Š” ์‚ฌ๋žŒ๋“ค์ด ๋ถ„๋ช…ํžˆ ์žˆ์„ ๊ฒƒ ๊ฐ™์•„์„œ ๊ฐ„๋‹จํ•˜์ง€๋งŒ ์ •ํ™•ํ•˜๊ฒŒ! ํฌ์ŠคํŠธ๋ฅผ ์ž‘์„ฑ ํ•ด ๋ณด๋ ค ํ•ฉ๋‹ˆ๋‹ค. ์ฐธ๊ณ ๋กœ CIDR๋Š” ์‚ฌ์ด๋” ๋ผ๊ณ  ์ฝ์œผ๋ฉด ๋˜๊ณ , ์œ ํˆฝ์—์„œ ๋ฏธ๊ตญ์ธ ๊ฐœ๋ฐœ์ž๊ฐ€ ๋ฐœ์Œํ•˜๋Š”๊ฑธ ๋“ค์–ด๋ณด๋‹ˆ ์‹ธ์ด๋” ์ •๋„๋กœ ๋ฐœ์Œ ํ•ฉ..

article thumbnail
[MySQL] ํ”„๋กœ์‹œ์ €๋ฅผ ์ด์šฉํ•œ ๋”๋ฏธ๋ฐ์ดํ„ฐ ์‚ฝ์ž…ํ•˜๊ธฐ
... 2021. 8. 31. 09:54

๋”๋ฏธ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฝ์ž…ํ•˜๋Š” ํ”„๋กœ์‹œ์ € ์ƒ์„ฑ ํŽ˜์ด์ง• ํ…Œ์ŠคํŠธ์™€ ๊ฐ™์ด ๋งŽ์€ ์–‘์˜ ๋”๋ฏธ๋ฐ์ดํ„ฐ(dummy data)๊ฐ€ ํ•„์š”ํ•œ ๊ฒฝ์šฐ, ํ”„๋กœ์‹œ์ €๋ฅผ ์ƒ์„ฑํ•ด์„œ ๋”๋ฏธ๋ฐ์ดํ„ฐ๋ฅผ ์‚ฝ์ž…ํ•  ์ˆ˜ ์žˆ๋‹ค. Workbench์—์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ž…๋ ฅํ•œ๋‹ค. DELIMITER $$ DROP PROCEDURE IF EXISTS loopInsert$$ CREATE PROCEDURE loopInsert() BEGIN DECLARE i INT DEFAULT 1; WHILE i

article thumbnail
[Network] L4 LoadBalancer์™€ L7 LoadBalancer ๋น„๊ต
... 2021. 8. 31. 09:08

๋กœ๋“œ๋ฐธ๋Ÿฐ์„œ๋ž€? ๋กœ๋“œ๋ฐธ๋Ÿฐ์„œ๋Š” ์„œ๋ฒ„์— ๊ฐ€ํ•ด์ง€๋Š” ๋ถ€ํ•˜(=๋กœ๋“œ)๋ฅผ ๋ถ„์‚ฐ(=๋ฐธ๋Ÿฐ์‹ฑ)ํ•ด์ฃผ๋Š” ์žฅ์น˜ ๋˜๋Š” ๊ธฐ์ˆ ์„ ํ†ต์นญํ•œ๋‹ค. ํด๋ผ์ด์–ธํŠธ์™€ ์„œ๋ฒ„ํ’€(Server Pool, ๋ถ„์‚ฐ ๋„คํŠธ์›Œํฌ๋ฅผ ๊ตฌ์„ฑํ•˜๋Š” ์„œ๋ฒ„๋“ค์˜ ๊ทธ๋ฃน) ์‚ฌ์ด์— ์œ„์น˜ํ•˜๋ฉฐ, ํ•œ ๋Œ€์˜ ์„œ๋ฒ„๋กœ ๋ถ€ํ•˜๊ฐ€ ์ง‘์ค‘๋˜์ง€ ์•Š๋„๋ก ํŠธ๋ž˜ํ”ฝ์„ ๊ด€๋ฆฌํ•ด ๊ฐ๊ฐ์˜ ์„œ๋ฒ„๊ฐ€ ์ตœ์ ์˜ ํผํฌ๋จผ์Šค๋ฅผ ๋ณด์ผ ์ˆ˜ ์žˆ๋„๋ก ํ•œ๋‹ค. ๋งŒ์•ฝ Scale-out์˜ ๋ฐฉ์‹์œผ๋กœ ์„œ๋ฒ„๋ฅผ ์ฆ์„คํ•˜๊ธฐ๋กœ ๊ฒฐ์ •ํ–ˆ๋‹ค๋ฉด ์—ฌ๋Ÿฌ ๋Œ€์˜ ์„œ๋ฒ„๋กœ ํŠธ๋ž˜ํ”ฝ์„ ๊ท ๋“ฑํ•˜๊ฒŒ ๋ถ„์‚ฐํ•ด์ฃผ๋Š” ๋กœ๋“œ๋ฐธ๋Ÿฐ์‹ฑ์ด ๋ฐ˜๋“œ์‹œ ํ•„์š”ํ•˜๋‹ค. OSI 7 ๊ณ„์ธต์ด๋ž€? ๋„คํŠธ์›Œํฌ ํ†ต์‹  ์‹œ์Šคํ…œ์€ ํฌ๊ฒŒ ์ผ๊ณฑ ๊ฐ€์ง€์˜ ๊ณ„์ธต(OSI 7 layers, ๊ฐœ๋ฐฉํ˜• ํ†ต์‹ ์„ ์œ„ํ•œ ๊ตญ์ œ ํ‘œ์ค€ ๋ชจ๋ธ)์œผ๋กœ ๋‚˜๋‰œ๋‹ค. ๊ฐ๊ฐ์˜ ๊ณ„์ธต(Layer)์ด L1/L2/L3โ€ฅโ€ฅL7์— ํ•ด๋‹นํ•œ๋‹ค. ์ƒ์œ„ ๊ณ„์ธต์—์„œ ์‚ฌ์šฉ๋˜๋Š” ์žฅ๋น„๋Š” ํ•˜์œ„ ๊ณ„์ธต์˜ ์žฅ..

article thumbnail
[AWS] AWS ๊ด€๋ จ ์ฃผ๋œ ์„œ๋น„์Šค ๋ฐ ์šฉ์–ด
... 2021. 8. 30. 23:14

S3 S3๋Š” AWS๊ฐ€ ์ œ๊ณตํ•˜๋Š” ํด๋ผ์šฐ๋“œ ์Šคํ† ๋ฆฌ์ง€ ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค. 99.999999%๋ผ๋Š” ๋†’์€ ๋‚ด๊ตฌ์„ฑ์ด ํŠน์ง•์ธ ์Šคํ† ๋ฆฌ์ง€๋กœ ๋ฏธ๋ฆฌ ์Šคํ† ๋ฆฌ์ง€ ์šฉ๋Ÿ‰ ๋“ฑ์„ ์ •์˜ํ•˜์ง€ ์•Š๊ณ  ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ๋ฐ์ดํ„ฐ ๊ณต๊ฐœ ์ •์ฑ…, ๋ฐ์ดํ„ฐ ์•”ํ˜ธํ™”, ๋น„์šฉ ํšจ์œจ์ ์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ์žฅ๊ธฐ ๋ณด๊ด€ํ•˜๊ธฐ ์œ„ํ•œ ๋ผ์ดํ”„์‚ฌ์ดํด ์ •์ฑ… ๋“ฑ์˜ ๋งŽ์€ ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•˜๋Š” ์œ ์šฉํ•œ ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค. S3์—์„œ๋Š” ์Šคํ† ๋ฆฌ์ง€์˜ ๊ธฐ๋ณธ ๋‹จ์œ„๋กœ '๋ฒ„ํ‚ท'์ด๋ผ๊ณ  ๋ถˆ๋ฆฌ๋Š” ์˜์—ญ์„ ์ƒ์„ฑํ•˜๊ณ  ๊ทธ ์•ˆ์— ํŒŒ์ผ์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค. CloudFront CloudFront๋Š” AWS๊ฐ€ ์ œ๊ณตํ•˜๋Š” ์ฝ˜ํ…์ธ  ์ „์†ก ๋„คํŠธ์›Œํฌ(Content Delivery Network, CDN) ์„œ๋น„์Šค์ž…๋‹ˆ๋‹ค. CDN์€ ์ธํ„ฐ๋„ท์—์„œ ์›น ์ฝ˜ํ…์ธ , ์ด๋ฏธ์ง€, ๋™์˜์ƒ, ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋“ฑ์„ ๋น ๋ฅด๊ฒŒ ์ „์†กํ•˜๊ธฐ ์œ„ํ•œ ๊ตฌ์กฐ๋กœ ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. CloudFront๋Š” ์ „ ..

๋ณดํ˜ธ๋˜์–ด ์žˆ๋Š” ๊ธ€์ž…๋‹ˆ๋‹ค. ๋‚ด์šฉ์„ ๋ณด์‹œ๋ ค๋ฉด ๋น„๋ฐ€๋ฒˆํ˜ธ๋ฅผ ์ž…๋ ฅํ•ด์ฃผ์„ธ์š”.
profile on loading

Loading...