1 年前

nginx+certbot申请免费ssl证书并自动续签

nginx ssl配置   免费ssl证书  

一、安装并配置ssl 1、安装 certbot yum install -y epel-release yum install -y certbot 2、执行申请命令 单域名SSL证书 certbot certonly --webroot -w [站点目录] -d [域名] -m [联系人email] --agree-tos 泛域名SSL证书 certbot certonly --ma…

1 年前

shell 如何处理带有空格的文件名

疑难杂症  

场景 对目录下的所有文件进行打包并加密码 但是某些文件名中存在空格例如 “xxxx .psd” 报错提示 zip warning: name not matched: ./风格搞0506.psd zip error: Nothing to do! (try: zip -rP xxxx /data/cos/test/d1ee1633d80e92e0740b8201812fc331.z…

1 年前

/dev/sdb 提示 Device /dev/sdb excluded by a filter解决办法

疑难杂症   运维技术  

无法创建PV,找不到分区表 [root@localhost etc]# pvcreate /dev/sdb Device /dev/sdb excluded by a filter 通过blkid发现磁盘类型为gpt [root@localhost etc]# blkid /dev/sdb: PTTYPE="gpt" /dev/sdc: PTTYPE="gpt" /dev/sdd: P…

2 年前

centos7编译安装cmake3

运维技术   cmake  

下载cmake源码 这是已经编译的版本,解压即可以使用 wget https://cmake.org/files/v3.15/cmake-3.15.0-Linux-x86_64.tar.gz 解压 tar -zxvf cmake-3.15.0-Linux-x86_64.tar.gz mv cmake-3.15.0-Linux-x86_64 /usr/local/cmake cd /usr/…

2 年前

centos7 安装rvm(ruby2.5.0)

运维技术   ruby  

一、下载密钥 curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import - 二、下载安装包 # curl -L get.rvm.io | bash -s stable % Total % Received % Xferd…