junbo24897
@junbo24897
Students
-
Reviews
-
Course Rating
-
Posts
Q&A
์ง๋ฌธ ํ๋ ๋๋ฆฝ๋๋ค..
๊ฐ์์์๋ docker container๊ฐ ๋๊ณ ์๋ ์ํ์ ๋๋ค. k8s๋ cri๋ผ๋ container runtime interface์คํ์ ๋ง๋ ์ปจํ ์ด๋ ๋ฐํ์์ด๋ฉด ์ค์นํด์ ์ฌ์ฉ ๊ฐ๋ฅํฉ๋๋ค.
- 0
- 1
- 417
Q&A
authorized key ์ง๋ฌธ
ํด๊ฒฐํ์ต๋๋ค.
- 0
- 2
- 673
Q&A
e๋ค๋ฅธ ip๋ก db์ ๊ทผ์ ์ค๋ฅ
๊ฒฐ๋ก ์ดMaster Node์์mysql -u root -p -h ${Worker_Node ip} ๋ช ๋ น์ด๋ก ์ ์ํ๊ฒ์ด ๊ฒฐ๊ตญ db001 ์๋น์ค์ ์ ์ํ ๊ฒ์ด ๋๋๊ฑด๊ฐ์ ?๊ทธ๋ฆฌ๊ณ ์ด๊ธฐ์ -e MYSQL_ROOT_PASSWORD ๋ก db001 ์๋น์ค์ ๋น๋ฒ์ root๋ก ์ฃผ์๋๋ฐ Worker Node์์ ๋น๋ฒ์ ๋ค์ root๋ก ๋ฐ๊พธ์ด์ผ ์ ์์ด ๋๋ ์ด์ ๊ฐ ๋ฌด์์ธ๊ฐ์? ์ ์๊ฐ์๋ ๋ง์คํฐ์์ ์์ปค ๋ ธ๋ ip๋ก ์ ์์ ํ ๋ ํด๋ฌ์คํฐ ๋ด๋ถ์ db001์ปจํ ์ด๋์ ์ ์์ด ๋๋ ๊ฒ์ด ์๋ ๊ทธ๋ฅ ์์ปค ๋ ธ๋ ์๋ฒ์ mysql์ ์ ์ํ๊ณ ์๋๊ฒ ๊ฐ์ต๋๋ค.
- 0
- 4
- 516
Q&A
e๋ค๋ฅธ ip๋ก db์ ๊ทผ์ ์ค๋ฅ
๊ฐ ์๋ฒ์ 3306 ์ด๋ ค์์ต๋๋ค
- 0
- 4
- 516
Q&A
e๋ค๋ฅธ ip๋ก db์ ๊ทผ์ ์ค๋ฅ
111์ค๋ฅ๊ฐ ์๋ 110 ์ค๋ฅ์ ๋๋ค.
- 0
- 4
- 516
Q&A
nginx.conf ์์ ๊ด๋ จ
๊ฐ์ฌํฉ๋๋ค ๋๋ถ์ ์ด์์ด์ ใ ใ ใ ใ ใ ใ
- 5
- 4
- 706
Q&A
docker run -d -p 9999:80 ๋ช ๋ น์ด์ ๋ํด
1)ec2 ํ๊ฒฝ์ ๋ณด์ ๊ทธ๋ฃน ์ธ๋ฐ์ด๋ ์ต์ ์ 9999ํฌํธ๋ฅผ ์ด์ด์ฃผ๋ฉด ๋ด ์ปดํจํฐ์ 9999๋ฒ ํฌํธ๋ก ์๋๋ฐฉ์ด ์์ฒญ์ ํ ์ ์์ต๋๋ค. ์ค์ตํ๊ฒฝ์ด ec2 ์๋ฒ ์์ ๋์ปค์ํ์น ์๋ฒ(์ปจํ ์ด๋)๊ฐ ์์ต๋๋ค ์น ๋ฐ๋ชฌ ์๋ฒ๋ 80(http)๋ฒ ํ๋กํ ์ฝ๋ก ํด๋ผ์ด์ธํธ์ http์์ฒญ์ ๋๊ธฐํฉ๋๋ค. ๊ทธ๋์ ์ธ๋ถ์์ ec2(๋ด ์ปดํจํฐ) 9999๋ฒ์ผ๋ก ๋ค์ด์ค๋ฉด ์ํ์น80 ๋ฒ์ผ๋ก ๋ค์ด์ค๊ฒ๋ ๋งค์นญ์ ์์ผ์ค ๊ฒ์ ๋๋ค. ํ๋์ ํฌํธํฌ์๋ฉ ๊ฐ๋ ์ ๋๋ค.ํด๋ผ์ด์ธํธ -> 9999๋ฒ ์์ฒญ -> 9999๋ฒ์ด์ด๋ฆฐ ์ปดํจํฐ(ec2) -> 9999๋ฒ์ผ๋ก ๋ค์ด์จ ๊ฒ์ 80๋ฒ ์ผ๋ก ๋ณด๋ด๋ผ -> 80๋ฒ์ ์น์๋ฒ 2) ์ํ์น2 ์น ์๋ฒ์ ๊ธฐ๋ณธ ํ์ผ ๊ฒฝ๋ก์ ๋๋ค. ํด๋น ๋๋ ํฐ๋ฆฌ์ html ๋ฌธ์๋ฅผ ๋ฃ๊ณ ์ธํฐ๋ท์์ ์ํ์น ์๋ฒ๋ก ์ ์ํ๋ฉด ๊ทธ html ๋ฌธ์๊ฐ ๋์ต๋๋ค. 3) ์ปจํ ์ด๋๋ ์ปค๋์ ํฌํจํ์ง ์๊ณ ์ปค๋ ์ธ๋ถ ์์๋ง ํฌํจํ ๊ฒฝ๋ ์๋ฒ ๋จ์๋ผ๊ณ ํ ์ ์์ต๋๋ค. ๊ทธ๋์ ๊ฒฝ๋ํ๋ฅผ ํ๋๊ฒ์ ๋๋ค. ํ๋๊ฐ ๋ค์ด๊ฐ ๋๋ ์๊ณ ์ฌ๋ฌ๊ฐ๊ฐ ๋ค์ด๊ฐ ๋๋ ์์ต๋๋ค. ์ด๋ค ์๋น์ค๋ฅผ ์ด์ํ๋๋์ ๋ฐ๋ผ ๋ค๋ฆ ๋๋ค.
- 0
- 1
- 637
Q&A
๋ธ๋ก๊ทธ ์ ๋ฆฌ์ ์ฌ์ฉํด๋ ๊ด์ฐฎ๋์?
๋น๊ณต๊ฐ๋ก ํ์ ์ผ ๋์
- 0
- 1
- 284
Q&A
์ค์น์๋ฌ
ํน์ ํด๊ฒฐํ์ จ๋์? ๊ฐ์ ๋ฌธ์ ๊ฐ ๋์ค๊ณ ์๋๋ฐ 2์ผ์งธ ํด๊ฒฐ ๋ชปํ๋ ์ค์ด์์ ใ ใ
- 0
- 2
- 266
Q&A
varant up ์ค๋ฅ
vagrant-vbguest 0.30 ์ผ๋$ vagrant upBringing machine 'cent1' up with 'virtualbox' provider...Bringing machine 'cent2' up with 'virtualbox' provider...Bringing machine 'cent3' up with 'virtualbox' provider...==> cent1: Preparing master VM for linked clones... cent1: This is a one time operation. Once the master VM is prepared, cent1: it will be used as a base for linked clones, making the creation cent1: of new VMs take milliseconds on a modern system.==> cent1: Importing base box 'rockylinux/8'...==> cent1: Cloning VM...==> cent1: Matching MAC address for NAT networking...==> cent1: Checking if box 'rockylinux/8' version '5.0.0' is up to date...==> cent1: Setting the name of the VM: cent1==> cent1: Clearing any previously set network interfaces...==> cent1: Preparing network interfaces based on configuration... cent1: Adapter 1: nat cent1: Adapter 2: hostonly cent1: Adapter 3: hostonly==> cent1: Forwarding ports... cent1: 22 (guest) => 2222 (host) (adapter 1)==> cent1: Running 'pre-boot' VM customizations...==> cent1: Booting VM...==> cent1: Waiting for machine to boot. This may take a few minutes... cent1: SSH address: 127.0.0.1:2222 cent1: SSH username: vagrant cent1: SSH auth method: private key cent1: cent1: Vagrant insecure key detected. Vagrant will automatically replace cent1: this with a newly generated keypair for better security. cent1: cent1: Inserting generated public key within guest... cent1: Removing insecure key from the guest if it's present... cent1: Key inserted! Disconnecting and reconnecting using new SSH key...==> cent1: Machine booted and ready![cent1] No Virtualbox Guest Additions installation found.Last metadata expiration check: 0:00:03 ago on Wed 05 Oct 2022 01:15:33 PM UTC.Package rocky-release-8.5-3.el8.noarch is already installed.Dependencies resolved.================================================================================ Package Architecture Version Repository Size================================================================================Upgrading: rocky-release noarch 8.6-4.el8 baseos 21 k rocky-repos noarch 8.6-4.el8 baseos 14 kTransaction Summary================================================================================Upgrade 2 PackagesTotal download size: 35 kDownloading Packages:(1/2): rocky-repos-8.6-4.el8.noarch.rpm 421 kB/s | 14 kB 00:00(2/2): rocky-release-8.6-4.el8.noarch.rpm 589 kB/s | 21 kB 00:00--------------------------------------------------------------------------------Total 57 kB/s | 35 kB 00:00Running transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transaction Preparing : 1/1 Running scriptlet: rocky-repos-8.6-4.el8.noarch 1/1 Upgrading : rocky-repos-8.6-4.el8.noarch 1/4 Upgrading : rocky-release-8.6-4.el8.noarch 2/4 Cleanup : rocky-release-8.5-3.el8.noarch 3/4 Cleanup : rocky-repos-8.5-3.el8.noarch 4/4 Running scriptlet: rocky-repos-8.5-3.el8.noarch 4/4 Verifying : rocky-release-8.6-4.el8.noarch 1/4 Verifying : rocky-release-8.5-3.el8.noarch 2/4 Verifying : rocky-repos-8.6-4.el8.noarch 3/4 Verifying : rocky-repos-8.5-3.el8.noarch 4/4Upgraded: rocky-release-8.6-4.el8.noarch rocky-repos-8.6-4.el8.noarchComplete!Last metadata expiration check: 0:00:05 ago on Wed 05 Oct 2022 01:15:33 PM UTC.No match for argument: kernel-devel-4.18.0-348.20.1.el8_5.x86_64Error: Unable to find a match: kernel-devel-4.18.0-348.20.1.el8_5.x86_64Unmounting Virtualbox Guest Additions ISO from: /mntumount: /mnt: not mounted.==> cent1: Checking for guest additions in VM... cent1: No guest additions were detected on the base box for this VM! Guest cent1: additions are required for forwarded ports, shared folders, host only cent1: networking, and more. If SSH fails on this machine, please install cent1: the guest additions and repackage the box to continue. cent1: cent1: This is not an error message; everything may continue to work properly, cent1: in which case you may ignore this message.The following SSH command responded with a non-zero exit status.Vagrant assumes that this means the command failed!umount /mntStdout from the command:Stderr from the command:umount: /mnt: not mounted. vagrant-vbguest 0.21 ์ผ๋ cent1: cent1: Complete!==> cent1: Running provisioner: shell... cent1: Running: C:/Users/junbo/AppData/Local/Temp/vagrant-shell20221005-3480-v071rw.sh cent1: hosts์ ๊ฐ ์๋ฒ๋ฅผ ๋ฑ๋กํฉ๋๋ค. cent1: fstab์ nfs์ ๋ณด๋ฅผ ๋ฑ๋กํฉ๋๋ค. cent1: root์ ์ ์ ํ๊ฒฝ์ค์ ์ ํฉ๋๋ค. cent1: ssh ์ค์ ์ ๋ฑ๋กํฉ๋๋ค. cent1: ์๋ฒ ์ ์ ๋ฉ์ธ์ง๋ฅผ ์ค์ ํฉ๋๋ค. cent1: selinux๋ฅผ ๋ฌดํจํํฉ๋๋ค. cent1: ์ฒ๋ฆฌํญ๋ชฉ์ ์๋ ์๋ฒ์ ๋๋ค. ํธ์คํธ๋ฅผ ํ์ธํด์ฃผ์ธ์. cent1: ์๋ฒ๋ฅผ ์ฌ์์ํฉ๋๋ค.==> cent2: Cloning VM...==> cent2: Matching MAC address for NAT networking...==> cent2: Checking if box 'rockylinux/8' version '5.0.0' is up to date...==> cent2: Setting the name of the VM: cent2==> cent2: Fixed port collision for 22 => 2222. Now on port 2200.==> cent2: Clearing any previously set network interfaces...==> cent2: Preparing network interfaces based on configuration... cent2: Adapter 1: nat cent2: Adapter 2: hostonly cent2: Adapter 3: hostonly==> cent2: Forwarding ports... cent2: 22 (guest) => 2200 (host) (adapter 1)==> cent2: Running 'pre-boot' VM customizations...==> cent2: Booting VM...==> cent2: Waiting for machine to boot. This may take a few minutes... cent2: SSH address: 127.0.0.1:2200 cent2: SSH username: vagrant cent2: SSH auth method: private key cent2: cent2: Vagrant insecure key detected. Vagrant will automatically replace cent2: this with a newly generated keypair for better security. cent2: cent2: Inserting generated public key within guest... cent2: Removing insecure key from the guest if it's present... cent2: Key inserted! Disconnecting and reconnecting using new SSH key...==> cent2: Machine booted and ready![cent2] No Virtualbox Guest Additions installation found.Last metadata expiration check: 0:00:01 ago on Wed 05 Oct 2022 01:25:18 PM UTC.Package rocky-release-8.5-3.el8.noarch is already installed.Dependencies resolved.================================================================================ Package Architecture Version Repository Size================================================================================Upgrading: rocky-release noarch 8.6-4.el8 baseos 21 k rocky-repos noarch 8.6-4.el8 baseos 14 kTransaction Summary================================================================================Upgrade 2 PackagesTotal download size: 35 kDownloading Packages:(1/2): rocky-repos-8.6-4.el8.noarch.rpm 454 kB/s | 14 kB 00:00(2/2): rocky-release-8.6-4.el8.noarch.rpm 477 kB/s | 21 kB 00:00--------------------------------------------------------------------------------Total 27 kB/s | 35 kB 00:01 Running transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transaction Preparing : 1/1 Running scriptlet: rocky-repos-8.6-4.el8.noarch 1/1 Upgrading : rocky-repos-8.6-4.el8.noarch 1/4 Upgrading : rocky-release-8.6-4.el8.noarch 2/4 Cleanup : rocky-release-8.5-3.el8.noarch 3/4 Cleanup : rocky-repos-8.5-3.el8.noarch 4/4 Running scriptlet: rocky-repos-8.5-3.el8.noarch 4/4 Verifying : rocky-release-8.6-4.el8.noarch 1/4 Verifying : rocky-release-8.5-3.el8.noarch 2/4 Verifying : rocky-repos-8.6-4.el8.noarch 3/4 Verifying : rocky-repos-8.5-3.el8.noarch 4/4Upgraded: rocky-release-8.6-4.el8.noarch rocky-repos-8.6-4.el8.noarchComplete!Error: Unknown repo: 'C*-base'==> cent2: Checking for guest additions in VM... cent2: No guest additions were detected on the base box for this VM! Guest cent2: additions are required for forwarded ports, shared folders, host only cent2: networking, and more. If SSH fails on this machine, please install cent2: the guest additions and repackage the box to continue. cent2: cent2: This is not an error message; everything may continue to work properly, cent2: in which case you may ignore this message.The following SSH command responded with a non-zero exit status.Vagrant assumes that this means the command failed!yum install -y kernel-devel-`uname -r` --enablerepo=C*-base --enablerepo=C*-updatesStdout from the command:Stderr from the command:Error: Unknown repo: 'C*-base'(์ฌ์ง)
- 0
- 5
- 474




