libssh2安装全过程
华聪
2023-12-01
1.sudo apt-get install openssl
2.cd /usr/src/
3.sudo wget http://libssh2.org/download/libssh2-1.3.0.tar.gz
4.sudo tar zxvf libssh2-1.3.0.tar.gz
5.cd libssh2-1.3.0/
6. ./configure
7.sudo make all install
8.sudo pecl install -f ssh2
9.sudo find / -name ssh2.so
10.cp ssh2.so /opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/
11. vim php.ini 加入 extension=ssh2.so
12.sudo /opt/lampp/lampp restart
OK!