विज्ञापन

क्रिप्टो एक्सचेंज बोनस पाएँ

सिर्फ़ साइन अप करने पर मिलने वाले बोनस। शर्तें हर एक्सचेंज की घोषणा से ज्यों की त्यों ली गई हैं।

systemctl

प्रोसेस और सिस्टम

इस्तेमाल

systemctl <verb> <unit>

systemd सेवाओं को शुरू, बंद और जाँचता है; `enable` केवल बूट व्यवहार तय करता है, इसलिए अभी भी चालू करने के लिए `enable --now` लें, और unit फ़ाइल बदलने के बाद `daemon-reload` चलाएँ।

आम विकल्प

विकल्पअर्थ
status <unit>Whether it is running, its PID, and the last log lines.
start / stop / restartAct on the service now, without changing boot behaviour.
reloadRe-read the config without dropping connections, if the service supports it.
enable --now <unit>Start it now and also start it at every boot.
daemon-reloadRequired after you edit a .service file, before restarting it.
list-units --failedEverything that failed to start.
--userAct on your own user units instead of the system ones.

उदाहरण

sudo systemctl restart nginx

Restart the web server.

systemctl status sshd --no-pager

Print the state and recent log lines without opening a pager.

sudo systemctl enable --now docker

Start Docker and make it come back after a reboot.

क्या चल रहा है और क्या मशीन खा रहा है। मारने से पहले पहचानना क्रम है।

कैसे पढ़ें

  • बड़े कोष्ठक [ ] उस हिस्से को दिखाते हैं जिसे छोड़ा जा सकता है।
  • तीन बिंदु … का मतलब है एक से ज़्यादा दिए जा सकते हैं।
  • विकल्पों में बड़े-छोटे अक्षर मायने रखते हैं — कुछ कमांड में -r और -R अलग काम करते हैं।

आम सवाल

Qsystemctl क्या करता है?

systemd सेवाओं को शुरू, बंद और जाँचता है; `enable` केवल बूट व्यवहार तय करता है, इसलिए अभी भी चालू करने के लिए `enable --now` लें, और unit फ़ाइल बदलने के बाद `daemon-reload` चलाएँ।

Qइसे कैसे लिखें?

systemctl <verb> <unit> — बड़े कोष्ठक वह हिस्सा दिखाते हैं जो छोड़ा जा सकता है।

Qकितने विकल्प जानने लायक़ हैं?

यहाँ 7 दिए हैं; पूरी सूची man systemctl में है। यह कमांड प्रोसेस और सिस्टम में आती है।

मिलती-जुलती कमांड

man पेज: man systemctl