- 如何在 Archlinux 安裝 sar (sysstat)
1 |
sudo pacman –S sysstat |
- ➜ sar -d
Cannot open /var/log/sa/sa07: No such file or directory
Please check if data collecting is enabled
在 systemctl 啟動 sysstat
1 |
sudo systemctl start sysstat |
開機時自動開啟 sysstat
1 |
sudo systemctl enable sysstat |
- ➜ sar -d
Requested activities not available in file /var/log/sa/sa07
sysstat 沒有去擷取相關的資料,把他打開來。
1 2 3 |
> sudo nano /etc/conf.d/sysstat > SADC_OPTIONS=“-S DISK” > sudo systemctl restart sysstat |
- ➜ sar -d
Requested activities not available in file /var/log/sa/sa07
做完上面那一步還是出現這個問題。
1 |
等待時間的流動,讓他蒐集資料。 |
Leave a Reply