需要前置条件传送门
其实前置做完了,h2是很简单的事
1.apache启用http2_module
2.打开apche的配置文件,写上
Protocols h2 http/1.1
3.重启apache,打开浏览器看看吧