Failed to restart crond.service: Unit crond.service not found.
because on ubuntu the service named cron.not crond
because on ubuntu the service named cron.not crond
centos7 安装php扩展-ss2
yum install libssh2 libssh2-devel
首先下载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/
添加一行
extension=ssh2.so
systemctl restart php-fpm
php -m | grep ssh2