手机
当前位置:查字典教程网 >脚本专栏 >linuxshell >getcwd cannot access parent directories错误解决方法
getcwd cannot access parent directories错误解决方法
摘要:复制代码代码如下:[root@web-serverphp]#/etc/init.d/httpdrestartshell-init:error...

复制代码 代码如下:

[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 了这个目录,这时去执行某些 service 脚本的时候就会报 getcwd 错误。只需要 cd 到任何一个实际存在的目录下在执行命令即可。

【getcwd cannot access parent directories错误解决方法】相关文章:

一天一个shell命令 linux文件内容操作系列-cat命令详解

Shell中的函数、函数定义、作用域问题介绍

LINUX下的流量监控shell脚本

Centos下查看网卡的实时流量命令

Shell处理带空格的文件名的方法

Shell脚本统计当前目录下目录和文件的数量

shell脚本实现文件锁功能

获取站点的各类响应时间(dns解析时间,响应时间,传输时间)

bash scp command not found的解决方法

php编译安装常见错误大全和解决方法

精品推荐
分类导航