网站乱码,解决方法

2026-02-15 12:47:17

1、登陆SSH

2、修改文改何件


编辑 /etc/httpd/conf/下的httpd.conf
vi /etc/httpd/conf/httpd.conf

3、查找AddDefaultCharset

4、修改参数


将AddDefaultCharset后面的UTF-8修改为OFF

5、保存并重启Apache

 况鬼


设置完成后先保存文件,侵毙净然后重启Apache
service apache restart
猜你喜欢