首页 > 其他 > 详细

Centos6.5部署Rsyslog+LogAnalyzer中文乱码解决

时间:2018-05-07 13:16:43      阅读:744      评论:0      收藏:0      [点我收藏+]

中文乱码

 技术分享图片

[root@log include]# pwd      

/zhang/app/loganalyzer-3.6.5/src/include

[root@log include]# vim functions_common.php

 

配置loganalyzer支持中文

function GetStringWithHTMLCodes($myStr)

{

        global $content;

 

        // Replace all special characters with valid html representations

        return htmlentities($myStr, ENT_NOQUOTES, $content[HeaderDefaultEncoding]); "UTF-8");

}

 

重启web

[root@log include]# /etc/init.d/httpd restart

Stopping httpd:                                            [  OK  ]

Starting httpd: httpd: apr_sockaddr_info_get() failed for log

httpd: Could not reliably determine the servers fully qualified domain name, using 127.0.0.1 for ServerName

                                                           [  OK  ]

 

设置管理中心

技术分享图片

技术分享图片

技术分享图片

 

Centos6.5部署Rsyslog+LogAnalyzer中文乱码解决

原文:https://www.cnblogs.com/daynote/p/9001808.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!