• news
  • pics
  • linux
  • windows
  • proxmox
  • game
  • news
  • pics
  • linux
  • windows
  • proxmox
  • game
Home
linux

centos7 安装php扩展-ssh2

centos7 安装php扩展-ss2

  1. 安装ssh2的依赖

yum install libssh2 libssh2-devel

  1. 安装ssh2

首先下载ssh2 地址:http://pecl.php.net/package/ssh2 v1.0 以上是php7相关

wget http://pecl.php.net/get/ssh2-1.1.2.tgz
tar zxvf ssh2-1.1.2.tgz
cd ssh2-1.1.2
phpize
./configure
make
make test
make install
完成make install后会返回一个地址:

[[email protected] ssh2-1.1.2]# make install
Installing shared extensions: /usr/lib64/php/modules/

  1. 编辑php.ini

添加一行

extension=ssh2.so

  1. 重启php

systemctl restart php-fpm

php -m | grep ssh2

Previous article 如果埃及艳后生的如此模样,那么凯撒死的冤不冤?
Next article “甘雨”牌椰汁,全国销量遥遥领先!!

therock

Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Categories
  • game
  • linux
  • news
  • pics
  • proxmox
  • windows
Recent Posts
  • 紧身胶衣问谁看不下贱?“HK416”:真的不鼓包的哦!~…
  • Using local directory bind mount points
  • Proxmox中Lxc容器挂载远程目录
  • livego流媒体服务实现无插件播放视频(支持hls,flv)
  • PVE直通核显给虚拟机
Recent Comments
  • Degebu on Proxmox中Lxc容器挂载远程目录
  • Bxdizx on Using local directory bind mount points
  • Markvem on livego流媒体服务实现无插件播放视频(支持hls,flv)
  • Eron Plus on livego流媒体服务实现无插件播放视频(支持hls,flv)
  • buy generic cialis online with mastercard on livego流媒体服务实现无插件播放视频(支持hls,flv)
Archives
  • April 2022 (1)
  • February 2022 (5)
  • January 2022 (2)
  • December 2021 (3)
  • November 2021 (1)
  • October 2021 (2)
  • September 2021 (1)
  • August 2021 (1)
  • July 2021 (8)
  • June 2021 (14)
  • May 2021 (2)
  • April 2021 (2)
  • March 2021 (10)
  • January 2021 (4)
  • December 2020 (4)
  • November 2020 (13)
  • April 2020 (276)
  • March 2020 (1)
  • June 2019 (5)
  • May 2019 (10)
  • December 2015 (1)