php安裝ssh2擴展的方法(Linux平臺)
來源:易賢網(wǎng) 閱讀:1287 次 日期:2016-08-12 14:16:55
溫馨提示:易賢網(wǎng)小編為您整理了“php安裝ssh2擴展的方法(Linux平臺)”,方便廣大網(wǎng)友查閱!

本文實例講述了php安裝ssh2擴展的方法。分享給大家供大家參考,具體如下:

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

wget http://pecl.php.net/get/ssh2-0.12.tgz

tar -zxvf ssh2-0.12.tgz

cd ssh2-0.12

phpize

./configure --prefix=/usr/local/ssh2 --with-ssh2=/usr/local/libssh2 --with-php-config=/usr/local/php/bin/php-config

make

#復(fù)制到php的擴展目錄

cp moduels/ssh2.so /usr/local/php/lib/php/extensions/no-debug-zts-20090626

/usr/local/php/sbin/php-fpm -t

/etc/init.d/php-fpm restart

希望本文所述對大家PHP程序設(shè)計有所幫助。

更多信息請查看網(wǎng)絡(luò)編程
易賢網(wǎng)手機網(wǎng)站地址:php安裝ssh2擴展的方法(Linux平臺)
關(guān)于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權(quán)所有:易賢網(wǎng)