摘要: #!/usr/bin/env python # _*_coding:utf-8_*_ import OpenSSL from OpenSSL import crypto from dateutil import parser def get_cert_detail(cert_file): """ 获取证书信息 :param cert_file: :return: """ cert = crypto 阅读全文
posted @ 2019-09-04 15:54 _Goku 阅读(624) 评论(0) 推荐(0) 编辑
摘要: # 配置静态ip地址 # 配置iptables 使用配置静态ip方式1 可以使用 # 配置dns 阅读全文
posted @ 2019-05-06 10:57 _Goku 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 拉取镜像(使用docker-componse可以忽略) docker-componse.yml 启动fdfs 测试 阅读全文
posted @ 2019-04-02 13:46 _Goku 阅读(1084) 评论(0) 推荐(0) 编辑
摘要: 1 # apt install -y xz-utils 2 # xz -d Python-3.6.8.tar.xz 3 # xz -d Python-3.6.8.tar.xz 阅读全文
posted @ 2019-01-11 15:24 _Goku 阅读(2806) 评论(0) 推荐(0) 编辑
摘要: 第一种解决方式: 第二种解决方式: 1 # apt install -y ca-certificates 阅读全文
posted @ 2019-01-11 15:14 _Goku 阅读(2341) 评论(0) 推荐(0) 编辑
摘要: # apt update # apt install net-tools 阅读全文
posted @ 2019-01-11 15:00 _Goku 阅读(2766) 评论(0) 推荐(0) 编辑
摘要: # 运行用户 user nginx; # 工作进程数, 通常设置成和cpu的数量相等 worker_processes 4; # PID 文件, 记录当前启动的nginx 的进程ID pid /var/run/nginx.pid; # 全局错误日志 error_log /var/log/nginx/ 阅读全文
posted @ 2018-12-18 10:40 _Goku 阅读(225) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash function display_method(){ clearDisplayMetho=0 if [ $displayMethod -eq 0 ]; then echo -e "\033[${color};${backgroup_color}m ${message} \033[${clearDisplayMetho}m" else echo -e ... 阅读全文
posted @ 2018-12-17 17:27 _Goku 阅读(287) 评论(1) 推荐(0) 编辑
摘要: [root@localhost ~]# cat s2.sh #!/bin/bash color_name="red" red=31 color=`eval echo '$'"${color_name}"` echo ${color} [root@localhost ~]# sh s2.sh 31 [root@localhost ~]# 阅读全文
posted @ 2018-12-17 17:19 _Goku 阅读(4306) 评论(0) 推荐(2) 编辑
摘要: [root@localhost ~]# yum -y install pwgen [root@localhost ~]# pwgen -ncCyB1 8 1 kei%b3Xa [root@localhost ~]# pwgen -ncCyB1 8 2 Ahs3eib' Yo>u7eun [root@localhost ~]# [root@localhost ~]# echo $RANDO... 阅读全文
posted @ 2018-12-17 13:59 _Goku 阅读(534) 评论(0) 推荐(0) 编辑
摘要: docker-compose -f docker-compose.yml up -d 时候报错 device or resource busy 使用 docker-compose down 会导致一些容器异常结束,其状态变为Dead (可以使用查看:docker ps -a -q -f status 阅读全文
posted @ 2018-10-25 15:48 _Goku 阅读(2882) 评论(0) 推荐(0) 编辑
摘要: # 设置开机启动 [root@localhost ~]# systemctl enable nginx # 停止开机自动启动 [root@localhost ~]# systemctl disable nginx # 启动nginx服务 [root@localhost ~]# systemctl s 阅读全文
posted @ 2018-10-25 15:34 _Goku 阅读(2856) 评论(0) 推荐(0) 编辑
摘要: 安装 pip install pyyaml 阅读全文
posted @ 2018-08-16 13:43 _Goku 阅读(3453) 评论(0) 推荐(0) 编辑
摘要: docker pull 时报错: failed to register layer: devmapper: Thin Pool has 107394 free data blocks which is less than minimum required 163840 free data block 阅读全文
posted @ 2018-08-14 16:10 _Goku 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: Centos 7.X 安装docker 阅读全文
posted @ 2018-08-14 15:42 _Goku 阅读(341) 评论(0) 推荐(0) 编辑