摘要: 1、卸载数据盘 [root@localhost ~]# umount /dev/sda1 2、使用fdisk /dev/sda 对数据盘分区操作 [root@localhost ~]# fdisk /dev/sda WARNING: The size of this disk is 3.0 TB ( 阅读全文
posted @ 2021-08-30 15:58 没有猫的猫奴 阅读(360) 评论(0) 推荐(0)
摘要: echo 1 2 4|sed s/[[:space:]]//g 阅读全文
posted @ 2021-08-11 14:33 没有猫的猫奴 阅读(86) 评论(0) 推荐(0)
摘要: stage('获取git提交信息') { steps { script { git_commit = sh (script: 'git log -1 --pretty=%B ${GIT_COMMIT}', returnStdout: true).trim() echo "git_commit: ${ 阅读全文
posted @ 2021-08-11 14:28 没有猫的猫奴 阅读(151) 评论(0) 推荐(0)
摘要: stage('获取触发任务用户') { steps { script { def BUILD_TRIGGER_BY = "${currentBuild.getBuildCauses()[0].shortDescription}" BUILD_TRIGGER_BY = sh (script: "ech 阅读全文
posted @ 2021-08-11 14:26 没有猫的猫奴 阅读(171) 评论(0) 推荐(0)
摘要: curl -I -o /dev/null -s -w %{http_code} www.baidu.com 参考: http://events.jianshu.io/p/c286f9c25c94 http://beerpla.net/2010/06/10/how-to-display-just-th 阅读全文
posted @ 2021-08-06 18:04 没有猫的猫奴 阅读(184) 评论(0) 推荐(0)
摘要: 1.关闭服务器selinux和防火墙 2.安装软件包smba yum -y install samba 3.创建共享专用帐号并修改密码 useradd -s /sbin/nologin liu pdbedit -a liu 4.修改配置文件 /etc/samba/smb.conf,在最后加入: [d 阅读全文
posted @ 2021-07-14 17:39 没有猫的猫奴 阅读(283) 评论(0) 推荐(0)
摘要: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/re 阅读全文
posted @ 2021-07-12 14:49 没有猫的猫奴 阅读(55) 评论(0) 推荐(0)
摘要: 1:查看防火状态 systemctl status firewalld service iptables status 2:暂时关闭防火墙 systemctl stop firewalld service iptables stop 3:永久关闭防火墙 systemctl disable firew 阅读全文
posted @ 2021-07-12 14:47 没有猫的猫奴 阅读(924) 评论(0) 推荐(0)
摘要: 一、安装 NFS 服务器所需的软件包: yum install -y nfs-utils 二、编辑exports文件,添加从机 vim /etc/exports /data/br/nfs/sohu71 10.10.0.71/24(rw,sync,no_subtree_check,no_root_sq 阅读全文
posted @ 2021-07-12 10:45 没有猫的猫奴 阅读(119) 评论(0) 推荐(0)
摘要: ssh-keygen -t rsa 阅读全文
posted @ 2021-07-12 10:43 没有猫的猫奴 阅读(62) 评论(0) 推荐(0)