getcwd cannot access parent directories錯誤解決方法
來源:易賢網(wǎng) 閱讀:6317 次 日期:2015-01-30 14:12:53
溫馨提示:易賢網(wǎng)小編為您整理了“getcwd cannot access parent directories錯誤解決方法”,方便廣大網(wǎng)友查閱!

代碼如下:

[root@web-server php]# /etc/init.d/httpd restart

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

該錯誤表示 getcwd 命令無法定位到當前工作目錄。一般來說是因為你 cd 到了某個目錄之后 rm 了這個目錄,這時去執(zhí)行某些 service 腳本的時候就會報 getcwd 錯誤。只需要 cd 到任何一個實際存在的目錄下在執(zhí)行命令即可。

更多信息請查看IT技術專欄

更多信息請查看腳本欄目
易賢網(wǎng)手機網(wǎng)站地址:getcwd cannot access parent directories錯誤解決方法
關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權所有:易賢網(wǎng)