ubuntu openssl php,ubuntu 安装 php7.4

wget https://www.php.net/distributions/php-7.4.4.tar.gz

tar -zxvf php-7.4.4.tar.gz cd php-7.4.4

./configure --prefix=/home/php --with-config-file-path=/home/php/etc --with-fpm-user=daokr --with-fpm-group=daokr --with-pdo-mysql --with-openssl --with-pear --with-mhash --with-xmlrpc --with-zlib --with-curl --enable-gd --without-sqlite3 --without-pdo-sqlite --disable-rpath --without-pear --enable-fpm --enable-maintainer-zts --enable-pcntl --with-tsrm-pthreads --enable-mbstring --enable-mbregex --enable-bcmath --enable-sockets --enable-soap --enable-xml --enable-inline-optimization --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-ftp --with-gettext --enable-opcache

make && make install

来源:https://www.cnblogs.com/wanglijun/p/12578462.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
安装Ubuntu上的OpenSSL需要执行以下步骤: 1. 打开终端并执行以下命令安装Apache、OpenSSL和相应的开发库: ``` $ sudo apt-get install apache2 $ sudo apt-get install openssl $ sudo apt-get install libssl-dev $ sudo apt-get install bless ``` 2. 将下载的OpenSSL压缩包解压,并将解压后的文件夹改名为openssl: ``` $ tar -zxvf openssl-1.1.1o.tar.gz $ mv openssl-1.1.1o openssl ``` 3. 进入解压后的openssl目录: ``` $ cd openssl ``` 4. 配置安装目录为/usr/local/openssl,并进行编译: ``` $ ./config --prefix=/usr/local/openssl $ sudo make ``` 5. 安装完成后,可以查看OpenSSL的信息。输入以下命令以确认安装的版本: ``` $ openssl version ``` 这将显示安装OpenSSL版本信息。安装完成后,你可以在项目中添加OpenSSL的配置和调用。在Qt项目的.pro文件中添加openssl头文件和动态库的配置: ``` INCLUDEPATH += /usr/local/openssl/include LIBS += /usr/local/openssl/lib/libssl.so /usr/local/openssl/lib/libcrypto.so ``` 在程序中可使用以下代码调用OpenSSL的功能: ``` #include <openssl/ssl.h> #include <openssl/sha.h> #include <openssl/aes.h> ``` 这样,你就成功安装Ubuntu上的OpenSSL。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [Ubuntu安装OpenSSL](https://blog.csdn.net/weixin_34378045/article/details/92348747)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [Ubuntu安装openssl](https://blog.csdn.net/weixin_45684629/article/details/127772553)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值