Home  >  Article  >  Backend Development  >  【php】php的ssh2扩展的安装

【php】php的ssh2扩展的安装

WBOY
WBOYOriginal
2016-06-23 14:29:49927browse


ssh2(secure shell2),对于远端主机提供高安全性的资料传输工作。

 安装:

1、首先要装OpenSSL。

2、要安装 libssh2.

./configure && make all install

3、再然后,安装PECL/ssh2

可以使用 pear install ssh2安装(有的说是 pear install ssh2-beta)

也可以到 PECL/SSH2 下载源码安装

phpize && ./configure ?with-ssh2 && make

 

4、在 php.ini中加入 extension=ssh2.so

5、重启 服务器。

这样,php 的 ssh2扩展即安装成功。

 

#php -m查看下,是否加载进来了。呵呵

下一篇我们将介绍php使用 ssh2扩展进行安全的资料传输。

 

 

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn