《LINUX學(xué)習(xí):Linux審計(jì)服務(wù)Auditd systemctl重啟問題解決》要點(diǎn):
本文介紹了LINUX學(xué)習(xí):Linux審計(jì)服務(wù)Auditd systemctl重啟問題解決,希望對(duì)您有用。如果有疑問,可以聯(lián)系我們。
在RHEL7&&CentOS7時(shí)代,默認(rèn)的服務(wù)通過systemd控制,并通過systemctl命令完成啟停.但是并不是所有的服務(wù)都可以完美的通過systemctl來控制,比如本日要提到的Auditd
編輯audit.rules添加規(guī)則后,當(dāng)然要通過restart服務(wù)來重啟生效,但是通過
systemctl restart auditd
就會(huì)報(bào)如下差錯(cuò):
[root@abc]#? systemctl restart auditd
Failed to restart auditd.service: Operation refused, unit auditd.service may be requested by dependency only
因?yàn)槲也]有編輯過/usr/lib/systemd/system/auditd.service 下的文件,所以不是人為修改導(dǎo)致服務(wù)重啟失敗,經(jīng)過GOOGLE大神的贊助,終于找到了如下答復(fù):原文如下:
The audit daemon must be controlled from the service command. It will decide which commands can be sent to systemctl and which ones are supported by legacy actions. So, you should do:
?
service auditd restart
?
Unfortunately, it has to be this way.
既然Steve Grubb 都不能辦理這個(gè)問題,看來有些古老應(yīng)用還是需要service 這種傳統(tǒng)方式才能辦理呀.
本文永遠(yuǎn)更新鏈接地址:
歡迎參與《LINUX學(xué)習(xí):Linux審計(jì)服務(wù)Auditd systemctl重啟問題解決》討論,分享您的想法,維易PHP學(xué)院為您提供專業(yè)教程。
轉(zhuǎn)載請(qǐng)注明本頁(yè)網(wǎng)址:
http://www.fzlkiss.com/jiaocheng/10553.html