Loading... <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">no的选项变为yes,以便h5ai可以实现一些更丰富的功能。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">Public Cache directory和Private Cache directory</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">把h5ai程序_h5ai中private和public两个文件夹中的cache目录权限设置为777,刷新一下网页可以看到两个no变为yes了。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">Use EXIF thumbs</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">安装php的exif模块即可。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">主要参考http://www.vpser.net/manage/lnmp-php-install-ext.html</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">把需要的exif模块编译进去,然后重启lnmp即可。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">Movie thumbs</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">选择安装ffmpeg,安装方法参考官网。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">其中centos的安装ffmpeg方法记得好像很麻烦。最后找到两个打包好的源码包,直接就可以用。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">CentOS 64位:http://down.lc/Linux/Tool/ffmpeg-3.1-64bit-static.tar.xz</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">CentOS 32位:http://down.lc/Linux/Tool/ffmpeg-3.1-32bit-static.tar.xz</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">tar xvJf解压到系统某个地方,然后在/usr/bin/目录创建软链接ffmpeg,指向解压包里面的ffmpeg就可以了。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">完成后执行ffmpeg,显示版本等信息即可。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">也可以选择安装avconv,到http://libav.org/download/下载源码编译安装即可。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">PDF thumbs</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">选择安装convert,直接yum -y install ImageMagick即可。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">Shell tar,Shell zip和Shell du</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">这三项,根据h5ai官网,在php.ini被禁用函数中去掉exec和passthru即可,是否有危险不知道,自己掂量,禁用好像也不影响一些功能。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">另外顺便把scandir函数去掉禁用,不然会出现无非显示目录中文件的情况。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">上面的步骤完成,基本上所有选项都是yes了。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">h5ai最新版本0.29.0默认禁用了很多功能,例如搜索,文件和文件夹多选,显示文件和文件夹详细信息二维码支持等。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">可以通过修改/_h5ai/private/conf/options.json配置文件开启,或者直接把0.28.0的配置文件替换好像没出现什么大问题。</span><br style="word-wrap:break-word;color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;" /> <span style="color:#444444;font-family:Tahoma, "font-size:14px;white-space:normal;background-color:#FFFFFF;">楼主简单对照0.28.0修改的配置文件,可以解压后上传直接替换</span> 最后修改:1970 年 01 月 01 日 © 允许规范转载 打赏 赞赏作者 赞 如果觉得我的文章对你有用,请随意赞赏