1. 程式人生 > 實用技巧 >nsurlstorged是什麼,為什麼它在Mac上執行?

nsurlstorged是什麼,為什麼它在Mac上執行?

You’re browsing the applications running using Activity Monitor when you notice something you don’t recognize: nsurlstoraged. What is this, you might be wondering, and why is it using network and CPU resources? First, don’t panic: this is part of macOS.

當您發現無法識別的內容時,您正在瀏覽使用活動監視器執行的應用程式:nsurlstoraged。 您可能想知道,這是什麼?為什麼要使用網路和CPU資源? 首先,不要驚慌:這是macOS的一部分。

This article is part of our ongoing seriesexplaining various processes found in Activity Monitor, like kernel_task, hidd, mdsworker, installd, WindowServer, blued, launchd, backup, opendirectoryd, powerd, coreauthd, configd, mdnsresponder, UserEventAgent, and many others. Don’t know what those services are? Better start reading!

這篇文章是一部分我們正在進行一系列解釋各種程序在活動監視器中發現,像kernel_taskhiddmdsworkerINSTALLDWindowServer發藍launchd會備份opendirectoryd的powerdcoreauthdconfigdmdnsresponderUserEventAgent ,和其他許多人。 不知道這些服務是什麼? 最好開始閱讀!

This particular resource, nsurlstoraged, is a daemon, which means in runs in the background of your system. To be more specific, nsurlstoraged is the daemon in charge of managing local storage for web applications. To quote the man page, which you can find by typing man nsurlstoraged

from the Terminal:

這個特殊的資源nsurlstoraged是一個守護程式,它意味著在系統後臺執行。 更具體地說,nsurlstoraged是負責管理Web應用程式本地儲存的守護程式。 要引用手冊頁,您可以通過從終端輸入man nsurlstoraged來找到該手冊頁:

nsurlstoraged is a per-user daemon which manages the user’s HTTP storages.

nsurlstoraged是每個使用者的守護程式,用於管理使用者的HTTP儲存。

On the modern internet, websites can store some files locally on your computer: it’s part of HTML5. On macOS, nsurlstoraged is the daemon that makes this local storage possible. Safari is the main application that actually uses this capability, but a number of other Apple programs also use it: Mail, Calendar, and iCloud, for example.

在現代網際網路上,網站可以在您的計算機上本地儲存一些檔案:它是HTML5一部分。 在macOS上,nsurlstoraged是使該本地儲存成為可能的守護程序。 Safari是實際使用此功能的主要應用程式,但是其他許多Apple程式也使用它:例如,郵件,日曆和iCloud。

If nsurlstoraged is using up a lot of CPU, you might have a corrupt cache. But thankfully, ther’s a quick fix. First, force quit Safari; if nsurlstoraged CPU usage drops you know that Safari is the problem; if not, force quit other applications until you see CPU usage drop.

如果nsurlstoraged正在使用大量CPU,則可能是快取已損壞。 但值得慶幸的是,這是一個快速解決方案。 首先,強行退出Safari ; 如果nsurlstoraged CPU使用率下降,則說明Safari是問題所在; 如果不是,請強制退出其他應用程式,直到看到CPU使用率下降為止。

Next, head to ~/Library/Caches/—here’s how to access the hidden ~/Library folder if you don’t know—and find the cache for whatever program is causing the problem. For Safari, this is com.apple.safari:

接下來,轉到〜/ Library / Caches /(如果不知道的話,這裡是訪問隱藏的〜/ Library資料夾的方法),並找到引起問題的任何程式的快取。 對於Safari,這是com.apple.safari:

Drag the appropriate folder to the trash, then re-start the program that was causing the problem. All should be well now.

將適當的資料夾拖到垃圾箱,然後重新啟動引起問題的程式。 現在一切都應該很好。

Photo credit: guteksk/Shutterstock.com

圖片來源: guteksk / Shutterstock.com

翻譯自: https://www.howtogeek.com/340189/what-is-nsurlstoraged-and-why-is-it-running-on-my-mac/