最近常常發生描述檔管理程式,打開來一片空白
話不多說,直接上終端機輸入以下指令
sudo serveradmin stop devicemgr
關閉描述檔管理程式
sudo -u _devicemgr psql -U _devicemgr -d devicemgr_v2m0 -h /Library/Server/ProfileManager/Config/var/PostgreSQL-12 -c "DELETE FROM library_item_tasks WHERE completed_at IS NULL"
刪除啟用中的作業
sudo -u _devicemgr psql -U _devicemgr -d devicemgr_v2m0 -h /Library/Server/ProfileManager/Config/var/PostgreSQL-12 -c "DELETE FROM library_item_tasks WHERE completed_at IS NOT NULL"
刪除已完成的作業
sudo serveradmin start devicemgr
打開描述檔管理程式
即可解決
沒有留言:
張貼留言