kangle安装SSH2

ADMIN ssh2 , centos 2018-08-29 23:24:59 263 次浏览 0条评论

先安装 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


评论列表 (0)

发表评论

本网站仅限技术讨论,请不要发表不当言论,本站将会对所有留言审核后方可显示。如需给站长留言,请在下方评论区@admin,谢谢合作!