当前位置:网站首页>PHP installation SSH2 extension
PHP installation SSH2 extension
2022-06-26 04:25:00 【Shrimp stuff】
linux System
Be careful :
1. Before installation, you need openssl
It can be used which openssl See if it is installed
2. install ssh2 Install first. libssh2
Installation starts
1. Download package
wget http://www.libssh2.org/download/libssh2-1.4.2.tar.gz$
wget http://pecl.php.net/get/ssh2-0.12.tgz2. install libssh2
* decompression
tar -zxvf libssh2-1.4.2.tar.gz
* Entry directory
cd libssh2-1.4.2
* To configure --prefix It's the installation directory
./configure --prefix=/usr/local/libssh2
* compile install
make
make install
* After installation, return to the parent directory
cd ..3. install ssh2
* decompression ssh2
tar -zxvf ssh2-0.12.tgz
* Entry directory
cd ssh2-0.12
* perform phpize -- The path of the pagoda is as follows 56 by PHP Version of
/www/server/php/56/bin/phpize
* To configure
--with-php-config Fill in the following PHP config route --with-ssh2 Fill in the back libssh2 The path of
./configure --prefix=/usr/local/ssh2 --with-ssh2=/usr/local/libssh2 --with-php-config=/www/server/php/56/bin/php-config
compile install
make
make Warning may be given when , Warnings can be ignored , direct make install
make install4. modify php.ini Add configuration
extension=ssh2.so
restart PHP Be on the safe side ,Nginx Also restart
And then it's done
边栏推荐
- "Eight hundred"
- China air compressor manufacturing market demand analysis and investment prospect research report 2022-2028
- Review of number theory
- Capture packets (Wireshark)
- How do wechat applets delay? Timing? Execute a piece of code after? (kengji)
- pip 批量完全卸载包
- redis集群的方式
- win10 系统打开的软件太小,如何变大(亲测有效)
- Gateway can not connect to tcp://127.0.0.1: Connection refused
- OSS CDN alicloud configuration method
猜你喜欢

Conditional variables for thread synchronization

Nailing open platform - applet development practice (nailing applet server side)

Verrouillage de lecture et d'écriture pour la synchronisation des fils

2021/11/6-burpsuit packet capturing and web page source code modification

Install SVN in Pagoda and build SVN version Library

Clickhouse stand alone installation

使用Jsoup提取接口中的图片

Etcd watch principle

6、 Project practice --- identifying cats and dogs

Swagger
随机推荐
SixTool-多功能多合一代挂助手源码
Laravel uses phpword to generate word documents
Minecraft 1.16.5 biochemical 8 module 1.9 version 1.18 version synchronization
35岁程序员炒Luna 千万资产3天归零,网友:和赌博一样
Compiling and installing phpredis extension on MAC
Composer version rollback version switching
Swagger
解析JSON接口并批量插入到数据库中
Alipay failed to verify the signature (sandbox test indicates fishing risk?) [original]
Video label forbids downloading. The test is valid. Hide button. The test is valid at three points
digital image processing
[从零开始学习FPGA编程-45]:视野篇 - 集成电路助力数字化时代高质量发展-2-市场预测
In 2022, what professional competitions can college students majoring in automation, electrical engineering and automation participate in?
Oracle 数据泵导表
Zhubo Huangyu: all the precious metals you want to know are here
Tp6 multi table Association (table a is associated with table B, table B is associated with table C, and table d)
[QT] dialog box
[geek challenge 2019] rce me
Laravel file stream download file
[Qunhui] import certificate