摘要: ansible ssh 互信 ssh-keygen 阅读全文
posted @ 2024-05-16 19:49 longer3281 阅读(57) 评论(0) 推荐(0)
摘要: 1)创建Python的MySQL连接 conn=MySQLdb.connect(host='localhost',port=3066,user='longer',passwd='longer123',db='demo') 2)通过连接获取游标 mycur=conn.cursor() 3)执行一个建表 阅读全文
posted @ 2018-04-10 10:16 longer3281 阅读(117) 评论(0) 推荐(0)
摘要: 1 安装 createrepo-0.4.11-3.el5.noarch.rpm #rpm -ivh createrepo-0.4.11-3.el5.noarch.rpm 2 创建yum数据库 #createrepo /yum/server 3 修改 /etc/yum.conf gpgcheck=0 阅读全文
posted @ 2018-04-10 10:14 longer3281 阅读(96) 评论(0) 推荐(0)
摘要: 【一】目标 外网网段192.168.123.0的机器通过跳板机器访问目标机器CentOS65--192.168.100.65 【二】配置说明 CentOS69:跳板机器 eth0--192.168.123.69 (外网地址) eth1--192.168.100.69 (内网地址) CentOS65: 阅读全文
posted @ 2018-04-10 10:05 longer3281 阅读(339) 评论(0) 推荐(0)
摘要: SHELL last_day 闰年判断 阅读全文
posted @ 2018-04-10 09:52 longer3281 阅读(757) 评论(0) 推荐(0)