上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: # cat /etc/system-release #查看版本 开机后在内核grub.2上敲击 e 在linux16 行(倒数第二行)末加入 “rd.break” # ^x //按Ctrl + x 重启进入紧急救援模式 # mount –o remount,rw /sysroot # chroot 阅读全文
posted @ 2020-02-02 13:41 AlexG 阅读(247) 评论(0) 推荐(0) 编辑
摘要: Cobbler由python语言开发,是对PXE和Kickstart以及DHCP的封装。融合很多特性,提供了CLI和Web的管理形式,更加方便的实行大批量部署网络安装系统。 工作流程 设置客户端主机的网卡支持PXE模式网络启动 客户端得到IP地址后,需要提供一个引导程序pxelinux.0(类似于g 阅读全文
posted @ 2020-02-01 11:04 AlexG 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 打包并压缩文件 tar -zcf ansible.tar.gz ansible/* z gzip属性 c 建立压缩文件 f 指定文件名 v 显示过程 解压文件 tar xzf ansible.tar.gz tar xf ansible.tar.gz -C /tmp/ C 指定输出位置 PS: tar 阅读全文
posted @ 2020-01-30 13:24 AlexG 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Ansible 除了使用pssh做批量主机操作外,进阶选择就是使用Saltstack、Ansible、Puppet了。 Ansible基于Python开发,集合了众多优秀运维工具的优点,实现了批量运行命令、部署程序、配置系统等功能。默认通过SSH协议进行远程命令执行或下发配置,无需部署任何客户端代理 阅读全文
posted @ 2020-01-28 22:05 AlexG 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 按名称查找 find . -name filename [root@vps repo]# ls README.md vps.sh[root@vps repo]# find . -iname vps*./vps.sh[root@vps repo]# find . ! -iname vps* | gre 阅读全文
posted @ 2020-01-28 21:58 AlexG 阅读(282) 评论(0) 推荐(0) 编辑
摘要: gitlab是一个分布式的版本仓库,总比只是一个本地手动好些,上传你的本地代码后后还能web GUI操作,何乐不为? 贴上刚刚搭建的gitlab,看看git 如何操作标准命令行操作指导 1.命令行操作指引 yum install git Command line instructions You c 阅读全文
posted @ 2020-01-28 14:22 AlexG 阅读(1050) 评论(0) 推荐(0) 编辑
摘要: ssh登录巨慢怎么办,设计验证是好的,但是那些验证的确没啥用反而造成了一些不便修改/开启 /etc/ssh/ssh_config这三个参数再重启即可取消验证 StrictHostKeyChecking no GSSAPIAuthentication no UseDNS no # systemctl 阅读全文
posted @ 2020-01-08 23:37 AlexG 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1.执行单一命令 [root@vps ~]# ssh user@192.168.9.243 "pwd; ls; rm -f Cent* ;echo ; ls"/home/useranaconda-ks.cfgCentos7.imgmwgt.tar.gz anaconda-ks.cfgmwgt.tar 阅读全文
posted @ 2020-01-08 22:12 AlexG 阅读(1430) 评论(0) 推荐(0) 编辑
摘要: 主要是两个步骤 1.控制主机创建密钥对(私钥和公钥) 2.把密钥对的公钥加入对方的认证列表中 [root@vps ~]# ssh-keygen [root@vps ~]# ssh-copy-id user@192.168.9.111ssh-keygen -t dsassh-copy-id -i ~/ 阅读全文
posted @ 2020-01-08 16:32 AlexG 阅读(835) 评论(0) 推荐(0) 编辑
摘要: nc命令很强大,用来在内网传输小文件也不错,最主要的是仅一次传输的情况下不需要用户和密码即可直接接受与发送文件 不管是linux2linux 还是 linux2windows皆可 先决条件: 1.使用的网络端口不能被屏蔽 2.能使用nc命令,使用yum install nc 安装 2步实现免密传输文 阅读全文
posted @ 2020-01-08 00:37 AlexG 阅读(417) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 下一页