上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 24 下一页
摘要: #! /bin/bash LOG_DIR=/var/log ROOT_UID=0 if [ "$UID" -ne "$ROOT_UID" ] then echo "Must be root to run this script" exit 1 fi cd $LOG_DIR || { echo "Ca 阅读全文
posted @ 2020-08-16 00:21 pwcc 阅读(160) 评论(0) 推荐(0)
摘要: [root@centos7 ~]# docker images|grep centos centos latest 0d120b6ccaa8 4 days ago 215MB [root@centos7 ~]# 导出镜像: [root@centos7 ~]# docker save centos > 阅读全文
posted @ 2020-08-16 00:16 pwcc 阅读(1031) 评论(0) 推荐(1)
摘要: 1,由于默认插件源在国外服务器,大多数网络无法顺利下载,需修改国内插件源地址: cd jenkins_home/updates sed -i 's/http:\/\/updates.jenkins-ci.org\/download/https:\/\/mirrors.tuna.tsinghua.ed 阅读全文
posted @ 2020-08-15 12:57 pwcc 阅读(590) 评论(0) 推荐(0)
摘要: [root@centos7 jenkins]# ll total 20 -rw-r--r--. 1 root root 1558 Aug 15 10:47 deployment.yml -rw-r--r--. 1 root root 349 Jan 5 2020 ingress.yml -rw-r- 阅读全文
posted @ 2020-08-15 11:24 pwcc 阅读(353) 评论(0) 推荐(0)
摘要: 1,先安装好K8S集群。 [root@centos7 ~]# [root@centos7 ~]# kubectl get pods -n kube-system NAME READY STATUS RESTARTS AGE coredns-575bd6d498-9pdkk 1/1 Running 0 阅读全文
posted @ 2020-08-13 22:50 pwcc 阅读(592) 评论(0) 推荐(0)
摘要: 1.psutil是一个跨平台库(http://pythonhosted.org/psutil/)能够轻松实现获取系统运行的进程和系统利用率(包括CPU、内存、磁盘、网络等)信息。 它主要用来做系统监控,性能分析,进程管理。它实现了同等命令行工具提供的功能,如ps、top、lsof、netstat、i 阅读全文
posted @ 2020-08-11 23:43 pwcc 阅读(390) 评论(0) 推荐(0)
摘要: #! /usr/bin/python3 # -*- coding: utf-8 -*- from email.mime.text import MIMEText from email.header import Header from smtplib import SMTP_SSL import s 阅读全文
posted @ 2020-08-11 21:40 pwcc 阅读(221) 评论(0) 推荐(0)
摘要: #! /usr/bin/python3# 首先导入email模块构造邮件 from email.mime.text import MIMEText # 构造邮件,内容为hello world msg = MIMEText('hello world') # 设置邮件主题 msg["Subject"] 阅读全文
posted @ 2020-08-10 21:58 pwcc 阅读(193) 评论(0) 推荐(0)
摘要: vim a.sh#! /bin/bash yum -y install zlib-devel bzip2-devel libffi-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db 阅读全文
posted @ 2020-08-10 21:07 pwcc 阅读(140) 评论(0) 推荐(0)
摘要: dd测试IO,经常会用到,用来简单测试某个目录的读写性能。 本次测试环境:自己电脑的ubuntu系统~其他Unix/Linux系统也可以用dd. Tips:dd操作需要三思而行,搞清楚确认没问题再进行操作!一旦方向搞反了数据就没有了。 ① /var目录写速度测试,在/var目录下写入一个约800M大 阅读全文
posted @ 2020-08-10 20:13 pwcc 阅读(902) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 24 下一页