网站首页 > 技术教程 正文
在/usr/local/nginx/conf/nginx.conf 配置文件中插入charset utf-8;或者charset 'utf-8';
server {
listen 80;
server_name localhost;
charset utf-8;
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
或者
server {
listen 80;
server_name localhost;
charset 'utf-8';
#access_log logs/host.access.log main;
location / {
root html;
index index.html index.htm;
}
重新加载配置文件
/usr/local/nginx/sbin/nginx -s reload
猜你喜欢
- 2024-10-10 「Spring 全家桶」70 道高频面试题
- 2024-10-10 我敢保证,全网没有再比这更详细的Java知识点总结了,送你啊
- 2024-10-10 Zabbix6 小版本内升级系列之-Web升级
- 2024-10-10 HttpClient详细使用示例(httpclient工具类)
- 2024-10-10 「Python教程」人类专用的爬虫库Requests
- 2024-10-10 Java秋招面试复习大纲(二):Spring全家桶+MyBatis+MongDB+微服务
- 2024-10-10 liunx系统基础命令及特殊符号知识考题
- 2024-10-10 Tomcat 和 JVM 的性能调优总结(tomcat jvm参数设置)
- 2024-10-10 一小时快速掌握zabbix配置的高效学习法【干货】
- 2024-10-10 面试妥了!2020 爬虫面试题目合集(爬虫面试有哪些面试题)
欢迎 你 发表评论:
- 最近发表
- 标签列表
-
- 下划线是什么 (87)
- 精美网站 (58)
- qq登录界面 (90)
- nginx 命令 (82)
- nginx .http (73)
- nginx lua (70)
- nginx 重定向 (68)
- Nginx超时 (65)
- nginx 监控 (57)
- odbc (59)
- rar密码破解工具 (62)
- annotation (71)
- 红黑树 (57)
- 智力题 (62)
- php空间申请 (61)
- 按键精灵 注册码 (69)
- 软件测试报告 (59)
- ntcreatefile (64)
- 闪动文字 (56)
- guid (66)
- abap (63)
- mpeg 2 (65)
- column (63)
- dreamweaver教程 (57)
- excel行列转换 (56)

本文暂时没有评论,来添加一个吧(●'◡'●)