This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"s3:CreateBucket", | |
"s3:PutBucketOwnershipControls", | |
"s3:PutObject", | |
"s3:PutBucketPublicAccessBlock", | |
"s3:ListBucket", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/focal64" | |
config.vm.box_version = "20240223.0.0" | |
config.vm.network "private_network", ip: "192.168.33.20" #새로운 lan 카드 생성 | |
config.vm.synced_folder ".", "/dockerfiles" #현재 폴더를 vm의 /dockerfiles와 연동해서 사용 | |
config.vm.provision "shell", inline: "curl -fsSL https://get.docker.com -o get-docker.sh" | |
config.vm.provision "shell", inline: "sh get-docker.sh" | |
config.vm.provision "shell", inline: "usermod -aG docker vagrant" #vagrant라는 유저 만들어서 추가 | |
config.vm.provision "shell", inline: "echo 'sudo su -' >> .bashrc" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/focal64" | |
config.vm.box_version = "20240223.0.0" | |
config.vm.network "private_network", ip: "192.168.33.10" #새로운 lan 카드 생성됨. | |
config.vm.hostname = "mz-web-server" | |
config.vm.provision "shell", inline: <<-SHELL | |
# Create a new user mzuser with password mzuser | |
useradd -m -s /bin/bash -p $(echo 'mzuser' | openssl passwd -1 -stdin) mzuser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = new mysqli('db', 'root', 'wordpress', 'team1'); | |
if($db->connect_error){ | |
die('Not Connected : ' . $db->connect_error); | |
} | |
//team list 출력 | |
{ | |
echo '<p>' . "team1" . '</p>'; | |
echo "-------------------------------------------------------"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conf t | |
int lo0 | |
ip add 10.1.1.1 255.255.255.0 | |
no shut | |
exit | |
int s1/0 | |
ip add 10.1.10.1 255.255.255.252 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conf t | |
int s1/0 | |
ip add 10.1.10.6 255.255.255.252 | |
no shut | |
exit | |
int f0/1 | |
ip add 1.1.123.2 255.255.255.248 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conf t | |
int s1/0 | |
ip add 10.1.10.2 255.255.255.252 | |
no shut | |
exit | |
int f0/1 | |
ip add 1.1.123.1 255.255.255.248 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conf t | |
int f0/0 | |
ip add 1.1.100.2 255.255.255.252 | |
no shut | |
exit | |
int s1/0 | |
ip add 1.1.100.5 255.255.255.252 | |
no shut | |
exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conf t | |
int f0/0 | |
ip add 1.1.123.3 255.255.255.248 | |
no shut | |
exit | |
int f0/1 | |
ip add 1.1.100.1 255.255.255.252 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conf t | |
int f0/1 | |
ip add 10.3.3.3 255.255.255.0 | |
no shut | |
exit | |
int s1/0 | |
ip add 1.1.100.10 255.255.255.252 |