nginx显示中文乱码 1.编辑conf下面的nginx.conf 2.在server段里加以下两行 default_type 'text/html';charset utf-8;3.然后重启就行了 sudo nginx -s reload