当前位置:网站首页>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
边栏推荐
- The select option in laravel admin contains a large amount of data
- 2021-01-31
- Laravel framework Alipay payment fails to receive asynchronous callback request [original]
- CTF serialization and deserialization
- A brain map to summarize the needs analysis (a supplement to the actual situation at work)
- Force buckle 515 Find the maximum value in each tree row
- Lua grammar explanation
- Laravel pay payment access process
- 使用Jsoup提取接口中的图片
- What should I do if the 51 SCM board cannot find the device in keil
猜你喜欢

SQL related knowledge - DDL

Implementation of seven classes of BlockingQueue interface

Navicat connects the pit of shardingsphere sub table and sub library plug-ins
![[Qunhui] Internet access + custom port](/img/7d/c00caeade209a48c8f44a4fecb59d5.jpg)
[Qunhui] Internet access + custom port

A brain map to summarize the needs analysis (a supplement to the actual situation at work)

6、 Project practice --- identifying cats and dogs

CTF PHP audit bypasses filtering learning from topics
![Tp6 is easy to tread [original]](/img/e9/4b2fbd485387c5ed9e75bd0451a19c.jpg)
Tp6 is easy to tread [original]

The stc-isp burning program for 51 single chip microcomputer always shows that "the target single chip microcomputer is being detected..." the cold start board does not respond

Threejs special sky box materials, five kinds of sky box materials are downloaded for free
随机推荐
一幅脑图总结一下需求分析(工作上实际遇到的情况的补充)
How much do you make by writing a technical book? To tell you the truth, 2million is easy!
Analysis of updatechild principle of widget update mechanism of fluent
Analysis report on the development trend and operation status of China's environmental monitoring instrument industry from 2022 to 2028
Syntax error of go language generic in IDE
Minecraft 1.16.5 biochemical 8 module 1.9 version 1.18 version synchronization
PHP small factory moves bricks for three years - interview series - my programming life
How does virtual box virtual machine software accelerate the network speed in the virtual system?
Create alicloud test instances
[从零开始学习FPGA编程-45]:视野篇 - 集成电路助力数字化时代高质量发展-2-市场预测
Etcd watch principle
Mysql8.0 configuring my SQL in INI file_ mode=NO_ AUTO_ CREATE_ User can start
Principle and implementation of syn cookie
[learn FPGA programming from scratch -45]: vision chapter - integrated circuits help high-quality development in the digital era -2- market forecast
What should I do if I don't understand the precious metal indicators
mysql自带的性能测试工具mysqlslap执行压力测试
[Qunhui] import certificate
Simple use of redis in laravel
ctf [RoarCTF 2019]easy_ calc
Threejs special sky box materials, five kinds of sky box materials are downloaded for free