“systemctl restart too few arguments”错误解析与解决 1. 错误信息含义 当你看到“systemctl restart too few arguments”这样的错误信息时,这意味着你在使用systemctl restart命令时没有提供足够的参数。具体来说,systemctl restart命令需要一个服务名作为参数来指明要重启哪个服务,但在这个错误情况下,没有提供这个...
[root@zgxlinux-aliyun ~]# systemctl stop Too few arguments. [root@zgxlinux-aliyun ~]# systemctl is-enabled crond disabled [root@zgxlinux-aliyun ~]# systemctl enable crond Created symlink from /etc/systemd/system/multi-user.target.wants/crond.service to /usr/lib/systemd/system/crond.servi...
The state will usually beenabled,disabled,static, ormasked. In this context, static means that the unit file does not contain aninstallsection, which is used to enable a unit. As such, these units cannot be enabled. Usually, this means that the unit performs a one-off action or is...
Last problem, that we would like to highlight is potential information leak and false sense of security that hidepid= provides. Information (PID numbers, command line arguments, UID and GID) about system services are tracked by systemd. By default this information is available to everyone to rea...