亚欧色一区w666天堂,色情一区二区三区免费看,少妇特黄A片一区二区三区,亚洲人成网站999久久久综合,国产av熟女一区二区三区

  • 發布文章
  • 消息中心
點贊
收藏
評論
分享
原創

systemctl常用命令

2024-09-05 09:26:38
23
0

systemctl操作
啟動
systemctl start xxx
systemctl stop xxx
systemctl restart xxx
查看狀態
systemctl status xxx
設置自啟動
systemctl enable xxx
systemctl disable xxx
修改了unit之后
# 如/usr/lib/systemd/system、/etc/systemd/system中xxx.service,xxx.service.d的東西
systemctl daemon-reload
查看開機項
systemctl list-unit-files  (查看開機啟動項)
systemctl list-unit-files  |  grep 程序名稱   (查看某些服務開機啟動狀態)
systemctl list-unit-files |  grep enable (查看哪些為開機啟動服務)
從失敗的列表中刪除unit
systemctl stop [servicename]
systemctl disable [servicename]
要重置所有狀態為失敗的unit:
systemctl reset-failed
或指定特定unit:
systemctl reset-failed xxx.service
CentOS修改了系統啟動文件后執行systemctl daemon-reload報錯 

Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)


[bin]$ systemctl daemon-reload

** (pkttyagent:31514): WARNING **: Unable to register authentication agent: Timeout was reached
Error registering authentication agent: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
解決辦法安裝polkit,再重載即可

yum -y install polkit

0條評論
作者已關閉評論
zzzzgj
9文章數
1粉絲數
zzzzgj
9 文章 | 1 粉絲
原創

systemctl常用命令

2024-09-05 09:26:38
23
0

systemctl操作
啟動
systemctl start xxx
systemctl stop xxx
systemctl restart xxx
查看狀態
systemctl status xxx
設置自啟動
systemctl enable xxx
systemctl disable xxx
修改了unit之后
# 如/usr/lib/systemd/system、/etc/systemd/system中xxx.service,xxx.service.d的東西
systemctl daemon-reload
查看開機項
systemctl list-unit-files  (查看開機啟動項)
systemctl list-unit-files  |  grep 程序名稱   (查看某些服務開機啟動狀態)
systemctl list-unit-files |  grep enable (查看哪些為開機啟動服務)
從失敗的列表中刪除unit
systemctl stop [servicename]
systemctl disable [servicename]
要重置所有狀態為失敗的unit:
systemctl reset-failed
或指定特定unit:
systemctl reset-failed xxx.service
CentOS修改了系統啟動文件后執行systemctl daemon-reload報錯 

Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)


[bin]$ systemctl daemon-reload

** (pkttyagent:31514): WARNING **: Unable to register authentication agent: Timeout was reached
Error registering authentication agent: Timeout was reached (g-io-error-quark, 24)
Failed to execute operation: Connection timed out
解決辦法安裝polkit,再重載即可

yum -y install polkit

文章來自個人專欄
文章 | 訂閱
0條評論
作者已關閉評論
作者已關閉評論
0
0