宝塔面板安装云锁自编译
第一步自然就是安装宝塔面板并且安装好网站环境了,我是这样的,希望你也是

然后
cd /www/server/nginx/sbin/ #如果不出意外nginx一定是在这个文件夹
cp nginx nginx.bak #备份
cd ~ #返回到用户目录
wget https://codeload.github.com/yunsuo-open/nginx-plugin/zip/master -O nginx-plugin-master.zip #下载云锁防护模块压缩包
unzip nginx-plugin-master.zip #解压压缩包
cd nginx-plugin-master/
pwd #获取当前云锁模块所在目录的全路径等下要用
然后查看你当前的 nginx 用了哪些模块
/www/server/nginx/sbin/nginx -V
这一步会出现很多的字 注意不要清掉它们因为等下要用

然后就是要进入到 nginx 源码的目录,准备进行编译了
cd /www/server/nginx/src
然后就是进行编译,编译的内容就是./configure + 上一步的出现的字./configure arguents: 之后的字 +--add-module = 云锁模块所在目录的全路径
比如我的就是
./configure --user=www --group=www --prefix=/www/server/nginx --with-openssl=/www/server/nginx/src/openssl --add-module=/www/server/nginx/src/ngx_devel_kit --add-module=/www/server/nginx/src/lua_nginx_module --add-module=/www/server/nginx/src/ngx_cache_purge --add-module=/www/server/nginx/src/nginx-sticky-module --add-module=/www/server/nginx/src/nginx-http-concat --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_image_filter_module --with-http_gzip_static_module --with-http_gunzip_module --with-stream --with-stream_ssl_module --with-ipv6 --with-http_sub_module --with-http_flv_module --with-http_addition_module --with-http_realip_module --with-http_mp4_module --with-ld-opt=-Wl,-E --with-pcre=pcre-8.42 --with-cc-opt=-Wno-error --with-ld-opt=-ljemalloc --add-module=/root/nginx-plugin-master
Nginx1.8.0 以上和 Tengine 2.1.2 则需要修改 objs/Makefile 文件来支持 post 过滤,在 Makefile 文件中的 CFLAGS=...-Werror -g 后追加宏定义 -DHIGHERTHAN8
vi objs/Makefile
然后就是在 - Werror -g 添加 -DHIGHERTHAN8 搞完之后就是 make 了
make
make 完就要把系统中原有的 nginx 替换了,然后重启就好了
rm -rf /www/server/nginx/sbin/nginx
cp objs/nginx /www/server/nginx/sbin/
service nginx restart
然后看一下宝塔客户端里面的应用防护中的自编译亮了没,亮了就是好了

这个网站应该是忘记管理密码了。
使用这个模块是否需要先安装云锁?还是直接编译之后就能直接生效了?
可以先编译完再安装云锁的,只编译不安装云锁的话也控制不了呀
用什么 bt,直接 yum install -y nginx 一把梭 另外催更
然而并不会那种高端操作 更新更不存在的,说出来你可能不信,但我确实是现在在电子厂干活
可以找找前端实习的啊,不要钱倒贴
哈哈,问题不大,下个月月底我就回家了,主要是为了赚点钱还花呗白条啥的
充钱就完事了
更新啊我 cao!
更鸡儿
现在都是用 docker 跑 caddy+phpfpm,不用面板很久了
云锁还不错,增加了服务器的安全,但是感觉好久没更新了。
对 有时候还会登陆不上
牛逼哦!技术佬!
我会说我是抄袭你的?
..........