
基于宝塔面板 Docker 安装 Gitea
本文使用最新版本的宝塔面板、docker 环境、Nginx 用于反代、Debian 12 前言 为什么要自建 git 托管,众所周知在国内网络的环境的情况下,github 已经不能正常的使用,有时候会出现断联的情况。国内的很多都有条条框框的限制,基于这个需求,为什么不自建属于自己的 git 托管。 ...

本文使用最新版本的宝塔面板、docker 环境、Nginx 用于反代、Debian 12 前言 为什么要自建 git 托管,众所周知在国内网络的环境的情况下,github 已经不能正常的使用,有时候会出现断联的情况。国内的很多都有条条框框的限制,基于这个需求,为什么不自建属于自己的 git 托管。 ...
Brotli介绍 Brotli是Google推出的开源压缩算法,通过变种的LZ77算法、Huffman编码以及二阶文本建模等方式进行数据压缩,与其他压缩算法相比,它有着更高的压缩效率,性能也比我们目前常见的Gzip高17-25%,可以帮我们更高效的压缩网页中的各类文件大小及脚本,从而提高加载速度,提升网页浏览体验。 ...
今天新安装的宝塔面板,想编译云锁模块。怎么也编译不上,提示这个。原来是pcra在做怪。修改到pcre安装目录就可以了。问题完美解决。记录一下 报错信息如下: 1make -f objs/Makefile 2make[1]: Entering directory `/work/tengine-2.3.2' 3cd /pcre-8.43 \ 4&& if [ -f Makefile ]; then make distclean; fi \ 5&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \ 6./configure --disable-shared 7/bin/sh: line 0: cd: /pcre-8.43: No such file or directory 8make[1]: *** [/pcre-8.43/Makefile] Error 1 9make[1]: Leaving directory `/work/tengine-2.3.2' 10make: *** [build] Error 2 编译信息参数: 1./configure --user=www --group=www --prefix=/www/server/nginx --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 --with-openssl=/www/server/nginx/src/openssl --with-pcre=/pcre-8.43 --with-http_v2_module --with-stream --with-stream_ssl_module --with-http_stub_status_module --with-http_ssl_module --with-http_image_filter_module --with-http_gzip_static_module --with-http_gunzip_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-cc-opt=-Wno-error --with-ld-opt=-ljemalloc --add-module=/work/nginx-plugin-master 这里看报错信息发现一个参数是pcre的地址,由错误 cd: /pcre-8.43: No such file or directory 可以看出来是,应该是没有找到pcre-8.43的路径,看一下磁盘根目录,没有发现pcre安装的目录,凭我感觉,宝塔nginx已经安装了,应该存在pcre-8.43目录。于是我在宝塔的安装目录下找到了。 ...
##操作步骤: 1、配置编译环境:(如果已经存在,可以略过) 1yum install -y gcc gcc-c++ pcre-devel openssl openssl-devel 2、建立工作目录/work,下载并解压云锁Nginx防护模块:(记住防护模块解压后的目录/data/nginx-plugin-master) ...