In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Linux systemctl commonly used commands have what related knowledge, detailed and easy to understand, simple and fast operation, has a certain reference value, I believe everyone read this Linux systemctl commonly used commands which articles will have some harvest, let's take a look at it.
systemd is the latest initialization system (init) for Linux systems, which is used to speed up system startup, start as few processes as possible, and start as many processes concurrently as possible.
systemctl common commands Systemd versions systemd --versionsystemd and systemctl binaries and libraries installation location # whereis systemd systemd: /usr/lib/systemd /etc/systemd/usr/share/systemd/usr/share/man/man/1/systemd. 1.gz # whereis systemctl systemctl: /usr/bin/systemctl /usr/share/man/1/systemctl. 1.gz List all available units # systemctl list-unit-files UNIT FILE STATE proc-sys-fs-binfmt_misc.automount static dev-hugepages.mount static dev-mqueue.mount static proc-sys-fs-binfmt_misc.mount static sys-fs-fuse-connections.mount static sys-kernel-config.mount static sys-kernel-debug.mount static tmp.mount disabled brandbot.path disabled ..... List all units # systemctl list-units UNIT LOAD ACTIVE SUB DESCRIPTION proc-sys-fs-binfmt_misc.automount loaded active waiting Arbitrary Executable File Formats File Syste sys-devices-pc... 0-1:0:0:0-block-sr0.device loaded active plugged VBOX_CD-ROM sys-devices-pc...: 00:03.0-net-enp0s3.device loaded active plugged PRO/1000 MT Desktop Adapter sys-devices-pc... 00:05.0-sound-card0.device loaded active plugged 82801AA AC'97 Audio Controller sys-devices-pc...: 0:0-block-sda-sda1.device loaded active plugged VBOX_HARDDISK sys-devices-pc...: 0:0-block-sda-sda2.device loaded active plugged LVM PV Qzyo3l-qYaL-uRUa-Cjuk-pljo-qKtX-VgBQ8 sys-devices-pc... 0-2:0:0:0-block-sda.device loaded active plugged VBOX_HARDDISK sys-devices-pl... erial8250-tty-ttyS0.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS0 sys-devices-pl... erial8250-tty-ttyS1.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS1 sys-devices-pl... erial8250-tty-ttyS2.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS2 sys-devices-pl... erial8250-tty-ttyS3.device loaded active plugged /sys/devices/platform/serial8250/tty/ttyS3 sys-devices-virtual-block-dm\x2d0.device loaded active plugged /sys/devices/virtual/block/dm-0 sys-devices-virtual-block-dm\x2d1.device loaded active plugged /sys/devices/virtual/block/dm-1 sys-module-configfs.device loaded active plugged /sys/module/configfs ... Check whether the unit is enabled? [root@10 ~]# systemctl is-enabled kubelet enabled Check if the unit or service is running? [root@10 ~]# systemctl status kubelet -l ● kubelet.service - kubelet: The Kubernetes Node Agent Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: disabled) Drop-In: /etc/systemd/system/kubelet.service.d └─10-kubeadm.conf Active: active (running) since Sat 2019-11-16 02:33:56 CST; 1 weeks 1 days ago Docs: https://kubernetes.io/docs/ Main PID: 566971 (kubelet) Memory: 90.4M CGroup: /system.slice/kubelet.service └─566971 /usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --cgroup-driver=cgroupfs --network-plugin=cni --pod-infra-container-image=10.10.101.175/k8s-deploy/pause:3.1 --system-reserved=memory=782Mi --system-reserved-cgroup=/system.slice How to start, restart, stop, Reload and Check Services Status of (httpd.service)# systemctl start httpd.service # systemctl restart httpd. service # systemctl stop httpd. service # systemctl reload httpd. service #systemctl status httpd.service How to activate services and enable or disable services at boot time # systemctl is-active httpd.service # systemctl enable httpd. service #systemctl disable httpd.service About "What are the commonly used commands of Linux systemctl" The content of this article is introduced here, thank you for reading! I believe that everyone has a certain understanding of the knowledge of "what are the commonly used commands of Linux systemctl". If you still want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.