码迷,mamicode.com
首页 >  
搜索关键字:批量ssh信任 expect ssh-copy-id    ( 1515个结果
不定长参数和进程
不定长参数 就是不限定长度的参数 *arge(位置传参) →返回的是元组 案例: **kearge(带参数名传参)→返回的是字典 案例: 将俩者合在一起才是真的不定长参数(*args一定要放在前面) 案例: 函数生成器: 案例: 尝试执行try中的代码,如果有错,则被expect捕获,但是整个程序不 ...
分类:系统相关   时间:2019-08-09 21:33:22    阅读次数:116
linux下配置ansible
配置环境:管理机IP:192.168.43.176被管理及IP:192.168.43.213下载ansibleyuminstallansible-y生成公钥私钥:ssh-keygen一路回车进到.ssh下cd.ssh将公钥上传到被管理机ssh-copy-id-iroot@192.168.43.213(被管理机ip)```![](https://s1.51cto.com/images/blog/20
分类:系统相关   时间:2019-08-09 17:54:40    阅读次数:129
ibdata中system segment header的初始化
本步骤调用 trx_sys_create_sys_pages->trx_sysf_create进行,本步骤除了初始化transaction system segment以外还会初始化其header( ibdata page no 5)信息如下: /* Create the trx sys file ...
分类:其他好文   时间:2019-08-06 20:12:46    阅读次数:125
CentOS7 SSH免密码登录
利用ssh可以免密登录。 1.进入.ssh/目录①# cd .ssh/ 如果没有这个目录就执行一下#ssh 主机名 ②# ssh-keygen -t rsa 生产密钥文件 ③# ssh-copy-id root@主机名 ④# ssh 主机名 用ssh连接 可以直接登录了,不需要输入密码。 作者:Je ...
分类:其他好文   时间:2019-08-05 09:19:41    阅读次数:114
nginx+vsftpd下载上传服务部署
上篇文章写了《快速登录vsftpd的expect脚本》https://blog.51cto.com/amunlinux/2426471本篇讲一下nginx作为下载服务器,vsftpd作为上传服务器的结合。yum-yinstallnginxvsftpdNginx配置文件几乎都是修改默认的配置usernginx;worker_processesauto;error_log/var/log/nginx/
分类:Web程序   时间:2019-08-04 19:57:06    阅读次数:148
快速登录vsftpd的expect脚本
快速登录vsftpd的expect脚本[root@canal~]#cat/usr/bin/ftp-login.expect#!/usr/bin/expectsettimeout30spawnftp公网IP/内网IP5xxx7expect"Name192.168.xx.xx:root):"send"ftpuser\r"expect"Password:
分类:其他好文   时间:2019-08-04 18:10:02    阅读次数:97
水题(规律)
D - AYAYAYA Gym - 101350D In a magical forest, there exists N bamboos that don't quite get cut down the way you would expect. Originally, the height o ...
分类:其他好文   时间:2019-08-02 20:44:55    阅读次数:93
npm 安装包失败 --- 清除npm缓存
今天同事给了一个webpack的项目,我拿过来,npm install 突然出现报错了,并且报了一个奇怪的错误, 如下所示, Unexpected end of JSON input while parsing near ‘ “https:// github.com/w”’, 安装依赖从来没有失败过 ...
分类:其他好文   时间:2019-08-02 19:59:33    阅读次数:94
SpringBoot单元测试之Mock方式
一、主程序packagecom.kyy.springboot;importorg.springframework.boot.SpringApplication;importorg.springframework.boot.autoconfigure.SpringBootApplication;/***启动程序*@Auther:zhouhongliang*@Date:2019/7/30*@Descr
分类:编程语言   时间:2019-07-31 15:21:20    阅读次数:390
250719备份存疑点&error&warning
ERROR&WARNING 1.cannot open source input file"DMA.h":no such file or directory. 头文件的路径没添加啊,这咋能忘呢 2.expected an expression 3.two many arguments(啥玩意我也忘了 ...
分类:其他好文   时间:2019-07-29 14:54:56    阅读次数:145
1515条   上一页 1 ... 25 26 27 28 29 ... 152 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!