Linux command
systemctl-set-property 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Set
systemctl set-property [unit] [property]=[value]
Example
systemctl set-property [unit] [prop1=val1 prop2=val2 ...]
Example
systemctl set-property [unit] [property]=[value] --runtime
Reset
systemctl set-property [unit] [property]=
说明
systemctl set-property modifies unit properties at runtime. By default, changes are persistent and stored in drop-in files under `/etc/systemd/system/<unit>.d/`. Common properties include CPUQuota, MemoryMax, IOWeight, and other resource control settings.
参数
- --runtime
- Make changes temporary (cleared on reboot)
FAQ
What is the systemctl-set-property command used for?
systemctl set-property modifies unit properties at runtime. By default, changes are persistent and stored in drop-in files under `/etc/systemd/system/<unit>.d/`. Common properties include CPUQuota, MemoryMax, IOWeight, and other resource control settings.
How do I run a basic systemctl-set-property example?
Run `systemctl set-property [unit] [property]=[value]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --runtime do in systemctl-set-property?
Make changes temporary (cleared on reboot)