当前位置:网站首页>SYSTEMd common component description
SYSTEMd common component description
2022-06-24 13:18:00 【johnazhang】
systemd To optimize the service Only the disadvantages of linear service . Here is a note about the functions of some common components , Know which to use when you want to do something . Do not record the writing of the command in detail .
- systemctl
systemd Master order , For management system , It can be restarted 、halt、 Rescue mode, etc .
- systemd-analyze
Analyze the service startup time .
- hostnamectl
see / Set the current host information .
- localectl
see / Set localization related information .
- timedatectl
see / Set time zone related information .
- loginctl
View current user information .
- journalctl
Log management , The configuration file for the log is /etc/systemd/journald.conf
You can see / Set the log information and storage method .
Support customized viewing in various ways , Including viewing user status / Kernel mode 、 At a certain time 、 Number of specific rows 、 Specific users, etc .
Unit:
every last unit In fact, it can be understood as a service, All have a profile . For the writing method of configuration file, please refer to https://www.freedesktop.org/software/systemd/man/systemd.unit.html
unit adopt systemctl Command to control .
- enable
Enable service , To be exact, it means getting the service to /etc/systemd/system Under the table of contents , Make it readable . It is equivalent to activation of startup .
- disable
Disable service ,enable The inverse .
- list-units
View the current units The state of , You can view various statuses ( Boot failure 、 Configuration file not found ).
- status
Look at the individual unit state .
- start
- stop
- restart
- kill
- show
- reload
Overloaded single unit The configuration file .
- daemon-reload
Reload all changed configuration files .
- set-property
Modify a unit The specified parameters in the configuration .
- list-dependency
Make a list of unit All dependencies of .
- list-unit-files
List all profiles , You can view the status of the corresponding configuration file .
边栏推荐
- go Cobra命令行工具入门
- Design and implementation of high performance go log library zap
- Dingding, Feishu, and enterprise wechat: different business approaches
- Understanding openstack network
- 脚本之美│VBS 入门交互实战
- Sinomeni vine was selected as the "typical solution for digital technology integration and innovative application in 2021" of the network security center of the Ministry of industry and information te
- J'a i ouvert quelques mots d'un ami et quelques réflexions personnelles sur le livre des six ancêtres
- Several common DoS attacks
- Perhaps the greatest romance of programmers is to commemorate their dead mother with a software
- 我開導一個朋友的一些話以及我個人對《六祖壇經》的一點感悟
猜你喜欢

使用 Abp.Zero 搭建第三方登录模块(一):原理篇

1. Snake game design

Who is the fish and who is the bait? Summary of honeypot recognition methods from the perspective of red team

How stupid of me to hire a bunch of programmers who can only "Google"!

Mlife forum | microbiome and data mining

关于被黑数据库那些事

WPF from zero to 1 tutorial details, suitable for novices on the road

Main steps of system test

Teach you how to use airtestide to connect your mobile phone wirelessly!

Getting started with the go Cobra command line tool
随机推荐
openGauss内核:简单查询的执行
“有趣” 是新时代的竞争力
go Cobra命令行工具入门
Beauty of script │ VBS introduction interactive practice
IOMMU (VII) -vfio and mdev
YOLOv6:又快又准的目标检测框架开源啦
CVPR 2022 - Interpretation of selected papers of meituan technical team
“我这个白痴,招到了一堆只会“谷歌”的程序员!”
I have fundamentally solved the problem of wechat occupying mobile memory
nifi从入门到实战(保姆级教程)——环境篇
Creation and use of unified links in Huawei applinking
SMS SMS
About the hacked database
Mlife forum | microbiome and data mining
Megacli online management raid installation and use steps
爱可可AI前沿推介(6.24)
Sinomeni vine was selected as the "typical solution for digital technology integration and innovative application in 2021" of the network security center of the Ministry of industry and information te
我从根上解决了微信占用手机内存问题
Parse NC format file and GRB format file dependent package edu ucar. API learning of netcdfall
Brief introduction to cluster analysis