[root@Monitor conf]# /usr/local/nginx2/sbin/nginx -t
nginx: the configuration file /usr/local/nginx2/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx2/conf/nginx.conf test is successful
[root@Monitor conf]# /usr/local/nginx2/sbin/nginx -s reload
[root@Monitor conf]#
(5)在浏览器上查看请求:
至此,http2.0配置完毕。
下面关于Nginx的文章您也可能喜欢,不妨参考下:
CentOS 7.2下编译安装PHP7.0.10+MySQL5.7.14+Nginx1.10.1
搭建基于Linux6.3+Nginx1.2+PHP5+MySQL5.5的Web服务器全过程