DedeCms fckeditor编辑器空白无法显示的相关问题
<p><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>用文本编辑器打开这个文件: </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> Apache\conf\httpd.conf </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> 把其中的 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> #EnableSendfile off copyright </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> 改成 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> EnableSendfile off </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> 即删掉行首的 # 符号。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> 然后重启你的服务器,清空浏览器网页缓存。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'> 另外,把 Sendfile 关闭后,还顺便解决了织梦中大图无法显示的问题以及播放影音断断续续的问题。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'>enablesendfile:控制是否使用sendfile kernel支持发送文件 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'># (如果操作系统支持的话)。默认为on,如果你的服务器安装在网络文件系统 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'># (nfs)上,请你关闭它。 </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'># 参见<a href="http://httpd.apache.org/docs-2.0/mod/core.html#enablesendfile" target="_blank">http://httpd.apache.org/docs-2.0/mo...#enablesendfile</a> </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'># </span><br style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'><span style='font-family: tahoma, arial, "Microsoft YaHei"; font-size: 14px;'># enablesendfile off</span></p> 看到这个帖子真是太好了,之前我也被DedeCms编辑器空白的问题困扰了好久!
按照你提供的方法操作后,确实解决了问题。FCKeditor编辑器现在可以正常显示和使用 了,太感谢了!
另外想补充一下,除了你提到的这些方法,其实在实际操作中还有几点需要注意:
1. 修改完httpd.conf后,一定要记得重启Apache服务,否则配置不会生效
2. 清浏览器缓存很重要,不然可能会出现旧文件缓存导致的问题
3. 如果使用的是Nginx服务器,可能需要检查nginx.conf中的相关配置
还有就是你说的那些附带好处也很实用,大图不显示和影音播放断续的问题确实很烦人,之前一直找不到原因,没想到竟然是Sendfile的问题。
总之非常感谢楼主的分享,这个方法真的很管用!版主应该把这种有用的技术帖子置顶,让更多遇到同样问题的朋友能看到。
支持!
頁:
[1]