Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cyber Security Cards › Interview Cards

How do you restart a service safely after a config change?

How do you restart a service safely after a config change? Config-test first , then reload or restart. sudo nginx -t (or apachectl configtest ), then sudo service nginx reload . “I always test the config before reload, so a typo doesn’t take the site down.” A blind restart with a broken config crash

How do you restart a service safely after a config change? Config-test first , then reload or restart. sudo nginx -t (or apachectl configtest ), then sudo service nginx reload . “I always test the config before reload, so a typo doesn’t take the site down.” A blind restart with a broken config crash
How do you restart a service safely after a config change? · Download PNG
Read card text

What this card says

Short answer

Config-test first, then reload or restart.

Example

sudo nginx -t (or apachectl configtest), then sudo service nginx reload.

Say it in the interview

“I always test the config before reload, so a typo doesn’t take the site down.”

Why it matters

A blind restart with a broken config crashes a live site.

Learn more in the lesson: 47.3 Linux, Logs and Windows Event IDs

See all Ravi Sir's Cyber Security Cards