宝塔环境下云锁Nginx模块自编译15589错误解决方法

云锁界面中如果没有自编译Nginx的话,自编译那里是灰色不可用的:则web防护不生效,但是系统防护是生效的。

也就意味着大部分功能是无法使用的,比如防CC,防SQL注入,防盗链,等功能无法生效。

Nginx自编译的小白教程有很多

和大半年来的几次一样,虽然按上边教程自编译成功了,但是宝塔的Nginx里生成了大量错误日志,如果不能解决,用不多久服务器就扛不住了,错误日志都是下边这样的:

宝塔环境下云锁Nginx模块自编译15589错误解决方法插图

直到今天云锁官方群管帮忙搞定:

在宝塔面板中找到服务器agent端 /usr/local/yunsuo_agent/FilterKernel.xml (vi修改)

注释掉一行代码,然后替换回去即可:

原始代码:

<?xml version=\'1.0\' encoding=\'utf-8\'?>
<Framework product_type=\"yunsuo\" retcode=\"404\">
  <!--PlugIn dllpath=\"libs/libbypass.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/-->
  <PlugIn dllpath=\"libs/libperformanceMonitor.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libpeer.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libipFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>  
  <PlugIn dllpath=\"libs/libmethodFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libhttpkeyFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libccFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libmultidownloadFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libbackgroundFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libbrowseprotectFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libabnormalfileFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libantistealinglink.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libsqlProtection.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libfiledownloadProtection.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libresponsecontentFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libsensitiveFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
</Framework>

修改后代码:

<?xml version=\'1.0\' encoding=\'utf-8\'?>
<Framework product_type=\"yunsuo\" retcode=\"404\">
  <!--PlugIn dllpath=\"libs/libbypass.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/-->
  <!--PlugIn dllpath=\"libs/libperformanceMonitor.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/-->
  <PlugIn dllpath=\"libs/libpeer.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libipFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>  
  <PlugIn dllpath=\"libs/libmethodFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libhttpkeyFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libccFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libmultidownloadFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libbackgroundFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libbrowseprotectFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libabnormalfileFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libantistealinglink.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libsqlProtection.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libfiledownloadProtection.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libresponsecontentFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
  <PlugIn dllpath=\"libs/libsensitiveFilter.so\" RunOn_Filter=\".*\" RunOn_Product=\".*\"/>
</Framework>

最后重启下Nginx和Php,终于没有新的错误日志生成了!

PS:如果正常编译后启动Nginx出现如下错误:

宝塔环境下云锁Nginx模块自编译15589错误解决方法插图1

Nginx配置规则错误:

nginx: the configuration file /www/server/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /www/server/nginx/conf/nginx.conf test failed

原因应该是之前有安装过宝塔的付费插件过期未付费导致的,重新续费或卸载后Nginx即可正常启动。

上一篇 SEO教你怎样做出高权重网站
下一篇 CentOS启动出现entering emergency mode错误的处理办法

探索站点内容

搜索文章、标签、分类

关注公众号
领美团外卖神券
领美团外卖神券
最新评论
小高网
小高网
11月2日
多用户版在线预览:https://lik.kdns.fr/qqspace/index.php?uid=4
dadaowokou
dadaowokou
10月22日
求更新的
日月先生
日月先生
10月8日
留个言看看
小高网
小高网
10月4日
有更新本帖会重新置顶
7777
7777
10月4日
麻烦置顶
7777
7777
10月3日
那些看剧的app好像没了
hghghg
hghghg
9月24日
强制更新升级,用不了
小高网

小高网管理员

小高网www.xx8g.com

本月创作热力图

少
多