🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 4 Min Lesezeit
0

100 Days of DevOps and Cloud (AWS), Day 14: Restoring a Broken httpd, and the One EC2 Command With No Undo

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

Some commands you can walk back. Terminating an EC2 instance is not one of them. Day 14 paired a recoverable problem, a web server knocked over by a rogue process, with an unrecoverable one, deleting a server on purpose, and the contrast is the whole lesson.



One Linux task, one AWS task. Track down the process blocking Apache and restore the service, then terminate an EC2 instance and confirm it is gone. The tasks come from the KodeKloud Engineer platform.






httpd: diagnose in order, then restore



When httpd will not start, resist the urge to guess. Work in order. Start with what the service itself reports:




CODE
# What does httpd think is wrong
systemctl status httpd
systemctl start httpd






The status output usually names the problem, and a failed bind on the port is the classic one. Before assuming a rogue process, check that httpd's own config is sane, because a wrong port or hostname produces the same "won't start" symptom:




CODE
# Check the configured listen port and server name
grep -i listen /etc/httpd/conf/httpd.conf
vi /etc/httpd/conf/httpd.conf
# Fix the ServerName directive if it is wrong: ServerName hostname:<port>






If the config is fine and the port is genuinely taken, then you go hunting for the process holding it:




CODE
# Find the PID on the conflicting port
sudo su -
yum install -y net-tools
netstat -tulpn

# Clear it, then bring httpd back
kill -9 <PID>
systemctl enable httpd
systemctl start httpd
systemctl status httpd






kill -9 is SIGKILL, the instant, no-cleanup kill. It is the right tool when a process is wedged and ignoring a polite request, but as a default habit, it is worth trying a plain kill first. The order that matters here is diagnostic: config before process, gentle signal before forceful one. Rushing to kill -9 at the first sign of trouble is how you mask the real cause instead of fixing it.






Terminating EC2: the command with no undo



Day 9 was about protecting an instance from termination. Day 14 is the other side of that lever, actually terminating one, on purpose:




CODE
# Terminate the instance
aws ec2 terminate-instances --instance-ids i-1234567890abcdef0

# Confirm the state moved to 'terminated'
aws ec2 describe-instances \
--instance-ids i-1234567890abcdef0 \
--query "Reservations[*].Instances[*].State.Name"






There is no recycle bin here. Once an instance is terminated, it and its instance-store data are gone for good. The thing worth checking before you run this is what happens to the storage. By default, the root EBS volume is set to delete on termination, so it goes with the instance. Extra volumes you attached usually survive, they detach instead of being deleted, but do not assume it. The DeleteOnTermination flag is set per volume, and you should know its value before you pull the trigger.



One quirk that confuses people. A terminated instance still appears in describe-instances for a little while, in the terminated state, before it disappears completely. That is normal, not a failed termination. And if this is a box you cannot afford to lose, that is precisely what Day 9's termination protection is for. Turn it on, and this command bounces instead of executing.






The contrast



The two tasks sit at opposite ends of reversibility. A downed web server is a puzzle you can take your time on, because nothing is lost while you diagnose. A termination is a decision you make once and cannot take back. Knowing which kind of action you are about to perform, recoverable or final, is what should change how carefully you move.



So here is the Day 14 question. Before you run a command, do you actually know whether you can undo it, or do you find out only when you try and can't?



Day 14 down. Eighty-six to go.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
3 Quellen
GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
1 Quelle
Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
1 Quelle
Major AI platforms go down in unprecedented simultaneous outage
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten 100 Days of DevOps and Cloud (AWS), Day 14: Restoring a Broken httpd, and the One EC2 Command With No Undo

Thematisch verwandte Begriffe: Days, DevOps, Cloud, Restoring · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...