linux安装openssl拓展

1.进入目录
cd /usr/local/php-7.3.29/ext/openssl/

2.复制为config.m4 文件
cp config0.m4 config.m4

3.运行phpize
/usr/local/php/bin/phpize

4.运行
./configure
5.运行
make && make install

 

 之后再php.ini中加入

extension=openssl.so
后重启php
php-fpm restart

 

posted @ 2021-10-09 17:19  zhang_you_wu  阅读(99)  评论(0编辑  收藏  举报