nghttp2

lnmp 的swoole安装以及部分问题解决

泄露秘密 提交于 2021-01-17 04:02:57
服务器环境:ubuntu+nginx+php7.0 1.安装nghttp2库: sudo apt-get install nghttp2 或者 sudo wget https://github.com/nghttp2/nghttp2/releases/download/v1.30.0/nghttp2-1.30.0.tar.bz2 sudo tar -jxvf nghttp2-1.30.0.tar.bz2 cd nghttp2-1.30.0 sudo ./configure sudo make && make instal 2.下载swoole : sudo pecl install swoole 在进行编译的时候,根据自己需求选择开启的扩展(PostgreSQL 这个选项我选择的是no) 3.修改php.ini cd /etc/php/7.0/cli sudo vi php.ini 加入 extension=swoole.so 保存退出。 附: 确认php.ini的位置 sudo php -i|grep php.ini 如果在执行php -v报错如下 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/swoole.so' - libnghttp2.so.14: cannot

curl 源码编译.

一个人想着一个人 提交于 2020-08-12 06:21:07
LT_SYS_LIBRARY_PATH 下载 地址 https://curl.haxx.se/download.html 查看编译选项: ./configure --help Host setup: x86_64-pc-linux-gnu Install prefix: /opt/bin/curl770 Compiler: gcc CFLAGS: -Werror-implicit-function-declaration -O2 -Wno-system-headers -pthread CPPFLAGS: LDFLAGS: LIBS: -lidn2 -lssl -lcrypto -lssl -lcrypto -lldap -llber -lz curl version: 7.70.0 SSL: enabled (OpenSSL) SSH: no (--with-{libssh,libssh2}) zlib: enabled brotli: no (--with-brotli) GSS-API: no (--with-gssapi) TLS-SRP: enabled resolver: POSIX threaded IPv6: enabled Unix sockets: enabled IDN: enabled (libidn2) Build libcurl: Shared=yes,

CentOS7 升级 curl 到 HTTP2

别等时光非礼了梦想. 提交于 2020-04-23 10:26:46
目录 文章目录 目录 编译安装 YUM 升级 编译安装 安装编译环境: yum -y groupinstall "Development Tools" yum -y install libev libev-devel zlib zlib-devel openssl openssl-devel git 安装 OpenSSL: mkdir /var/tmp cd /var/tmp wget https://openssl.org/source/openssl-1.0.2.tar.gz tar -zxf openssl-1.0.2.tar.gz cd openssl-1.0.2 mkdir /opt/openssl ./config --prefix=/opt/openssl make make test make install 安装 nghttp2: git clone https://github.com/tatsuhiro-t/nghttp2.git cd nghttp2 autoreconf -i automake autoconf ./configure make make install echo '/usr/local/lib' > /etc/ld.so.conf.d/custom-libs.conf ldconfig ldconfig -p| grep

Jetty HTTP/2 client receive server push example

夙愿已清 提交于 2019-12-19 03:24:41
问题 Jetty's HTTP/2 client with server push support has been implemented in Jetty 9.3 RC (Link). However, I have not found any documentation or example code related to this. Could any one provide an example code for example to receive the pushed resource from this site : https://nghttp2.org (public server which has enabled http2 server push) ---UPDATE 1--- I have tried to test this file as sbordet has said. However, after executing this line mvn compile exec:java I ran onto this error [INFO] ---

Connecting to Apple's APNS using cURL with HTTP\2 support via nghttp2

醉酒当歌 提交于 2019-12-10 23:03:54
问题 I've attempted to compile cURL with HTTP/2 support by following this tutorial. I'm using Docker and my application is based off the official PHP Docker image, which uses Debian, although I've produced the same problems in an Ubuntu machine running inside a Vagrant VM. There appears to be no problem at first. Indeed, running curl --version shows everything I'd expect: curl 7.47.1 (x86_64-pc-linux-gnu) libcurl/7.47.1 OpenSSL/1.0.1k zlib/1.2.8 libidn/1.29 libssh2/1.4.3 nghttp2/1.7.1 librtmp/2.3

cURL is not working with nghttp2

点点圈 提交于 2019-12-08 02:41:35
问题 I want to use http/2 with cURL. First I got an error when I tried this curl --http2 https://http2.akamai.com/ - "Protocol not supported" . I installed nghttp2 and reinstalled cURL like it is described here. The error is gone and I can get data with the curl --http2 now. But the page https://http2.akamai.com/ tells me "This browser is not HTTP/2 enabled" , while in chrome or directly via nghttp2 it says " You are using HTTP/2 right now!" . I'm using mac os x and installed all dependencies in

using --http2.0 option with curl 7.33.0 gives unsupported protocol

一世执手 提交于 2019-11-30 04:55:03
问题 I am using centos 6.2, i needed to use curl --http2.0 in one of the server request, but i was having 7.19.6, after looking at http://curl.haxx.se/docs/manpage.html gives me that --http2.0 option is only supported with curl 7.33.0, so to overcome that problem, i have installed curl 7.33.0 by following the steps from http://www.linuxfromscratch.org/blfs/view/svn/basicnet/curl.html after installing curl, i have tried to use that, but it is still giving me the error as curl(1):unsupported