系統:Linux
升級http2.0
- 修改Nginx配置: listen 443 ssl http2 default_server;
- nginx -t // 報錯
- nginx -s reload // error.log中報錯
解決辦法:
- 重新編譯和安裝
- 下載最新Nginx源碼
- ./configure --prefix=...... --with-http_v2_module // 指明需要http2模塊
- make
- make install
- 重啓nginx
- nginx -s stop;
- nginx