الاتصال بـ EC2 وإدارته الأساسية
صِل إلى مثيل EC2 بأمان، وأدر دورة حياته، وتعرّف إلى مقاييس المراقبة الأساسية.
الاتصال بـ EC2 وإدارته الأساسية درس مجاني في AWS for Backend Developers (EC2, S3, RDS, Lambda) على CoddyKit. هذا هو الدرس 3 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في AWS for Backend Developers (EC2, S3, RDS, Lambda)، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة AWS for Backend Developers (EC2, S3, RDS, Lambda) 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Getting Inside Your Server
Your instance is running — now you need to get inside it. This lesson covers connecting securely and managing the basics: starting, stopping, and monitoring.
SSH Keys: Your Digital Lock
Your SSH key pair unlocks the instance: the private .pem stays on your machine, the public key lives on the server. SSH uses both to log you in without a password.
Connecting with SSH (Linux/macOS)
On Linux or macOS, connect with the ssh command and your key. First lock down the key's permissions, then point it at your instance's public DNS or IP.
ssh -i "my-key-pair.pem" ec2-user@ec2-18-200-0-1.compute-1.amazonaws.comConnecting from Windows
On Windows, WSL lets you use the same ssh command as Linux. PuTTY (convert the key to .ppk first) and Git Bash also work well.
EC2 Instance Lifecycle States
An instance moves through lifecycle states: pending, running, stopping, stopped, shutting-down, and terminated. Stopped still costs storage; terminated is gone for good.
Stopping and Starting Your Instance
Stopping saves the instance's state to disk so you can restart it — handy for pausing costs or changing instance type. Note: a fresh public IP is assigned on restart unless you use an Elastic IP.
Terminating Your Instance Safely
Terminating permanently deletes an instance and its instance-store data; attached EBS volumes persist by default. It's irreversible — always double-check first.
Basic Monitoring with CloudWatch
CloudWatch collects metrics from your AWS resources, including EC2. Check the Monitoring tab on an instance for real-time health and performance.
Key EC2 Metrics
Watch the key EC2 metrics: CPU utilization (high means under-resourced), network in/out for traffic bottlenecks, and disk read/write operations.
Quick Check on Instance States
Your EC2 instance is currently in the Stopped state. Which of the following is TRUE about its current status and billing?
Recap: Managing Your EC2
Recap: connect over SSH with a key pair, know the lifecycle states and their cost and data implications, and watch CloudWatch metrics like CPU and network.
الأسئلة الشائعة
هل درس «الاتصال بـ EC2 وإدارته الأساسية» مجاني؟
نعم — نص درس «الاتصال بـ EC2 وإدارته الأساسية» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة AWS for Backend Developers (EC2, S3, RDS, Lambda)، انتقل إلى CoddyKit PRO. تتضمن دورة AWS for Backend Developers (EC2, S3, RDS, Lambda) 4 دروس في المجموع.
ماذا ستتعلم في «الاتصال بـ EC2 وإدارته الأساسية»؟
صِل إلى مثيل EC2 بأمان، وأدر دورة حياته، وتعرّف إلى مقاييس المراقبة الأساسية. تتمرن على AWS for Backend Developers (EC2, S3, RDS, Lambda) مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ AWS for Backend Developers (EC2, S3, RDS, Lambda)؟
لا تُشترط خبرة سابقة. AWS for Backend Developers (EC2, S3, RDS, Lambda) على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 3 من أصل 4.
كم من الوقت يستغرق درس «الاتصال بـ EC2 وإدارته الأساسية»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس AWS for Backend Developers (EC2, S3, RDS, Lambda) هذا؟
نعم. كل درس في AWS for Backend Developers (EC2, S3, RDS, Lambda) يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- مقدمة إلى AWS للخلفية
- إطلاق أول مثيل EC2 لك
- الاتصال بـ EC2 وإدارته الأساسية
- التوسع التلقائي وموازنة التحميل