EC2 시작
발행: (2026년 3월 29일 PM 02:46 GMT+9)
1 분 소요
원문: Dev.to
Source: Dev.to
Step 1: Launch an EC2 Instance
- Name:
my-web-server
Step 2: Choose a Key Pair
Step 3: Configure Network Settings
Step 4: Launch the Instance
Step 5: Connect to the Instance
ssh -i your-key.pem ec2-user@
Step 6: Install a Web Server
sudo yum update -y
sudo yum install httpd -y
Step 7: Start the Web Server
sudo systemctl start httpd
sudo systemctl enable httpd
Step 8: Create a Simple Web Page
echo "Hello from EC2" | sudo tee /var/www/html/index.html
Step 9: Get the Public IP
Step 10: Access from Your Browser
http://
모든 설정이 올바르게 완료되면 다음과 같은 화면이 표시됩니다:
Hello from EC2