kangle安装SSH2
QQ反馈群:1065433015
先安装 libssh2
wget http://www.libssh2.org/download/libssh2-1.4.2.tar.gz tar -zxvf libssh2-1.4.2.tar.gz cd libssh2-1.4.2 ./configure --prefix=/usr/local/libssh2 make && make install
再安装ssh2,下面是php7以下的安装方法(如非php5624请将php5624更改为您的目录)
wget http://pecl.php.net/get/ssh2-0.12.tgz tar -zxvf ssh2-0.12.tgz cd ssh2-0.12 /vhs/kangle/ext/tpl_php5624/bin/phpize ./configure --prefix=/usr/local/ssh2 --with-ssh2=/usr/local/libssh2 --with-php-config=/vhs/kangle/ext/tpl_php5624/bin/php-config make make install echo -e "\nextension = \"/vhs/kangle/ext/tpl_php5624/lib/php/extensions/no-debug-non-zts-20131226/ssh2.so\"">>/vhs/kangle/ext/tpl_php5624/php-templete.ini
下面是php7以上的安装方法(如非php709请将php709更改为您的目录)
wget http://pecl.php.net/get/ssh2-1.1.2.tgz tar -zxvf ssh2-1.1.2.tgz cd ssh2-1.1.2 /vhs/kangle/ext/tpl_php709/bin/phpize ./configure --prefix=/usr/local/ssh2 --with-ssh2=/usr/local/libssh2 --with-php-config=/vhs/kangle/ext/tpl_php709/bin/php-config make make install echo -e "\nextension = \"/vhs/kangle/ext/tpl_php709/lib/php/extensions/no-debug-non-zts-20151012/ssh2.so\"">>/vhs/kangle/ext/tpl_php709/php-templete.ini