關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • Linux/FreeBSD 不能辨認新安裝程式

    Posted on September 7th, 2009 Sam Tang No comments

    如果在 Linux 或 FreeBSD 透過自行編譯安裝程式,系統不會立即辨認到新的程式,即是不可以只輸入程式的檔案名稱,要鍵入程式的絕對路徑才可以執行。

    這個問題是因為系統為了改善效能,會將存放程式的目錄加入快取。如果想更新快取,可以執行以下指令:

    # hash -r

    如果是 CSH 的話,便要輸入:
    # rehash


    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word