- [root@martin001 ~]# yum install -y bind-utils
- [root@martin001 ~]# dig www.qq.com
- ANSWER SECTION:
- www.qq.com. 73 IN A 59.37.96.63
- www.qq.com. 73 IN A 14.17.42.40
- www.qq.com. 73 IN A 14.17.32.211
- [root@martin001 ~]# curl -x127.0.0.1:80 www.qq.com
- This is the default site.
- [root@martin001 ~]# /usr/local/nginx/sbin/nginx -t
- nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
- nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
- [root@martin001 ~]# /usr/local/nginx/sbin/nginx -s reload
- [root@martin001 ~]# curl -x127.0.0.1:80 www.qq.com -I
- HTTP/1.1 200 OK
- Server: nginx/1.12.1
- Date: Fri, 16 Mar 2018 14:24:38 GMT
- Content-Type: text/html; charset=GB2312
- Connection: keep-alive
- Vary: Accept-Encoding
- Vary: Accept-Encoding
- Expires: Fri, 16 Mar 2018 14:25:38 GMT
- Cache-Control: max-age=60
- Vary: Accept-Encoding
- Vary: Accept-Encoding
- X-Cache: HIT from tianjin.qq.com
来源: http://www.bubuko.com/infodetail-2529519.html