Blogger Information
Blog 3
fans 0
comment 0
visits 1370
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php7.3安装ssh2拓展
Mr Jing
Original
337 people have browsed it

一、环境

1、电脑MacBook Pro
2、本地PHP版本是7.3

二、安装过程

SSH2资源包下载地址:https://pecl.php.net/package/ssh2
1、进入https://pecl.php.net/package/ssh2 网站下载ssh2-1.2压缩包
2、解压ssh2-1.2压缩包
3、cd ssh2-1.2/ssh2-1.2
4、执行 phpize 命令
5、./configure —with-php-config=/usr/local/Cellar/php@7.3/7.3.33_4/bin/php-config
(/usr/local/Cellar/php@7.3/7.3.33_4/bin/php-config 这里是我本地电脑php-config的路径)

三、如果没报错的话就可以编译了开始执行下面的命令

1、make
2、make install
3、进入你的php.ini文件添加extension =”ssh2.so” 保存并退出
4、重启php

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!