-bash: php: command not found 命令找不到
来源:互联网 发布:淘宝刷真实无线流量 编辑:程序博客网 时间:2024/05/21 10:01
Linux命令找不到?(找不到命令)
这个问题其实很简单,如果你在终端输入一个命令,而系统提示你说命令没有找到(Command not found)的话,要么是因为你没有装相应的软件包,要么就是因为路径设置的问题。如果是因为软件包的问题,那没有别的好说的,安装相应的软件包就好了。而另外一种情况,则需要对用户的路径进行设置。
-bash: ls: command not found 或者 -bash: ll: command not found
原因:在设置环境变量时,编辑profile文件没有写正确,导致在命令行下 ls等命令不能够识别。
解决方案:
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
bash: php: command not found
解决:
export PATH=$PATH:/usr/local/php/bin
然后,再 echo $PATH 看看,就看见了。
usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/php/bin
这时候,你可以在系统的任意目录直接敲入php -i 都可以执行了。
-bash:unzip: command not found
-bash: wget: command not found的两种解决方法
一般linux最小化安装时,wget不会默认被安装。
可以通过以下两种方法来安装:
1、rpm 安装
rpm 下载源地址:http://mirrors.163.com/centos/6.2/os/x86_64/Packages/
下载wget的RPM包:http://mirrors.163.com/centos/6.2/os/x86_64/Packages/wget-1.12-1.4.el6.x86_64.rpm
rpm ivh wget-1.12-1.4.el6.x86_64.rpm 安装即可。
2、yum安装
yum -y install wget
80端口提示已经被占用
httpd not running, trying to start
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
解决:
# netstat -lnp|grep :80
tcp 0 0 :::80 :::* LISTEN 2184/httpd
杀掉服务
# killall -9 httpd
重启
# /etc/init.d/httpd start
- -bash: php: command not found 命令找不到
- -bash: php: command not found 命令找不到
- -bash: php: command not found 命令找不到
- -bash: php: command not found 命令找不到
- -bash: php: command not found 命令找不到
- -bash:ls:command not found,执行命令总是报找不到
- linux jar命令找不到 -bash: jar: command not found
- 找不到rz命令-bash: rz: command not found的解决方法
- -bash:ls:command not found,执行命令总是报找不到
- bash: .... command not found... 命令无效
- liunx -bash:ls:command not found,执行命令总是报找不到
- liunx -bash:ls:command not found,执行命令总是报找不到
- Linux命令找不到Command not found
- CentOS, 找不到dump命令:command not found
- bash:command not found
- bash:command not found
- bash:command not found
- bash:command not found
- JSP实现文件下载
- 关于 window.showModalDialog()弹出框刷新父页面的问题
- python .9 文件操作
- 什么是句柄
- myeclipse8.5破解
- -bash: php: command not found 命令找不到
- 蓝天碧水中国梦-风电(2)-中国发展情况
- SSH2项目最完整实例
- Ubuntu 14.04 conkeror启动问题
- [LeetCode] 003. Longest Substring Without Repeating Characters (Medium) (C++/Java/Python)
- spring 源码解读与设计详解:3 FactoryBean
- 蓝桥杯之兰顿蚂蚁
- 程序员不成熟的若干个特征
- .net com开发