![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网站开发
zhang_can
这个作者很懒,什么都没留下…
展开
-
php 执行 shell 脚本环境变量设置
未设置环境变量问题 当使用php的脚本执行命令(如:shell_exec())时,若脚本需要系统环境变量PATH支持(如:python使用import等),则会出现找不到的错误。并且查看系统PATH,如下: echo(shell_exec('echo $PATH')); /usr/sbin:/usr/bin:/sbin:/bin 可以看出,系统和用户PATH均未被设置,这是由于Apache...原创 2018-03-09 21:22:24 · 3364 阅读 · 0 评论 -
ubuntu两条命令安装nodejs8.x或nodejs9.x
安装nodejs 8.x版本: curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - sudo apt-get install -y nodejs 如果安装nodejs 9.x版本: curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash - sudo a...原创 2018-03-09 21:25:58 · 5001 阅读 · 0 评论 -
Linux和Windows下php ssh2扩展安装方法(确保可用)
目录 1 Linux系统下安装php ssh2扩展(Ubuntu为例) 1.1 安装libssh 1.2 安装php ssh2扩展 1.3 配置php.ini 2 Windows系统下安装php ssh2扩展 1 Linux系统下安装php ssh2扩展(Ubuntu为例) 1.1 安装libssh 下载libssh2-1.2.8 wget https...原创 2018-03-09 21:29:22 · 2691 阅读 · 3 评论