分类 shell 下的文章
Let's Encrypt 是全球最大的免费证书颁发机构,由 ISRG(互联网安全研究小组)运营。特点:✅ 完全免费✅ 自动续期(有效期 90 天)✅ 支持通配符证书申请方式:使用 Certbot 工具自动申请:# 安装 Certbot sudo apt install certbot python3-certbot-nginx # 为 Nginx 自动申请并配置 sudo certbot --nginx -d example.com -d www.example.com # 设置自动续期 sudo certbot renew --dry-run或使用 acme.sh 脚本:# 安装 acme.sh curl https://get.acme.sh | sh # 申请证书 acme.sh --issue -d example.com -w /var/www/html # 安装到 Nginx acme.sh --install-cert -d example.com \ --key-file /etc/nginx/ssl/key.pem \ --fullchain-...
Let's Encrypt免费获取 SSL 证书

Let's Encrypt免费获取 SSL 证书

tlmgr是texlive中包含的包和配置管理器的名称。它完全独立于操作系统可能提供的任何包管理器。您可以运行tlmgr --help 查看命令安装宏包tlmgr install <packagename> 移除tlmgr remove <packagename> 查看所有更新的宏包指令:tlmgr update --list 更新所有需要更新的宏包tlmgr update --self --all 如果遇到更新宏包过程中,某一个宏包更新失败,可以使用指令继续更新:tlmgr update --reinstall-forcibly-removed --all 这里的tlmgr就相当于Python中的pip,tlmgr是 Tex Live Package Manger进阶选手可以选择上述更新清单中自己想更新的宏包进行更新。tlmgr update --usepackage_name
texlive包管理器tlmgr

texlive包管理器tlmgr

经常需要将多个 PDF 合并为一个文件,这里收集了网上给出的一些方案,并总结一下。推荐使用cpdfcpdf命令行工具cpdf全称是Coherent PDF Command Line Tools,是一个强大的PDF处理工具。PDF合并只是它的一个功能之一。cpdf input1.pdf input2.pdf -o output.pdfpdfunitepdfunite是Poppler提供的一个工具,一般系统都已经安装了Poppler,所以这个工具在Linux下是很常见的。pdfunite input1.pdf input2.pdf input3.pdf output.pdf该命令用法简单,没有多余的选项,需要注意的是该命令的最后一个PDF文件为输出文件名。pdfjam如果你安装了TeXLive,并且安装了pdfpages包,则其中包含了pdfjam工具。pdfjam input1.pdf input2.pdf input3.pdf -o output.pdf该命令的选项很多,可以通过pdfjam --help查看。pdfjoin是pdfjam的一个封装,也可以直接使用:pdfjoin...
Linux 下合并 PDF

Linux 下合并 PDF

配置location ~ .*\.(jpg|gif|png|bmp)$ { gzip on; gzip_buffers 32 4K; gzip_comp_level 6; gzip_disable "MSIE [1-6]\."; # ie6及以下不启用gzip gzip_min_length 200; gzip_http_version 1.1; gzip_types application/javascript text/css text/xml; gzip_vary on; }查看http响应的头部信息Content-Encoding:gzip   # 开启了gzip压缩 Transfet-Encoding:chunked  # 压缩后分块传输参数详解gzip on|off; # 是否开启gzip gzip\_buffers 32 4K|16 8K; # 缓冲(压缩在内存中缓冲几块? 每块多大?) gzip\_comp\_level [1-9]; # 推荐6 压缩级别(级别越高,压的越小,越浪...
nginx开启gzip

nginx开启gzip

linux下php有多种方式来安装拓展, 主要有包管理式的安装、pecl 安装和源码编译安装。 包管理式的安装卸载尤为方便,而源码编译式的安装则方便参数调优。一般搭建本机开发环境推荐包管理式的安装,节约时间。而线上部署环境则推荐编译安装, 方便调优。本文以CentOS下\`MongoDB 扩展安装举例。yum安装yum方式安装能自动安装拓展的.so动态库,并配置好php.ini 注: 1. 请确保自己yum源里面有对应扩展 2. 安装完成后重启服务器 Nginx 或者 Apacheyum search mongodb | grep php # 搜索yum 源里面MongoDB拓展 yum -y install php72u-pecl-mongo # 安装 PHP 对应版本的MongoDB扩展 systemctl restart nginx # 重新启动 Nginxpecl安装pecl install mongodb安装完成后在PHP配置文件php.ini里面加载 MongoDB扩展,然后重启服务器源码编译安装wget http://pecl.php.net/get/mongodb...
linux下php拓展安装方法

linux下php拓展安装方法