不定长参数 就是不限定长度的参数 *arge(位置传参) →返回的是元组 案例: **kearge(带参数名传参)→返回的是字典 案例: 将俩者合在一起才是真的不定长参数(*args一定要放在前面) 案例: 函数生成器: 案例: 尝试执行try中的代码,如果有错,则被expect捕获,但是整个程序不 ...
分类:
系统相关 时间:
2019-08-09 21:33:22
阅读次数:
116
配置环境:管理机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)```信息如下: /* Create the trx sys file ...
分类:
其他好文 时间:
2019-08-06 20:12:46
阅读次数:
125
利用ssh可以免密登录。 1.进入.ssh/目录①# cd .ssh/ 如果没有这个目录就执行一下#ssh 主机名 ②# ssh-keygen -t rsa 生产密钥文件 ③# ssh-copy-id root@主机名 ④# ssh 主机名 用ssh连接 可以直接登录了,不需要输入密码。 作者:Je ...
分类:
其他好文 时间:
2019-08-05 09:19:41
阅读次数:
114
上篇文章写了《快速登录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脚本[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
今天同事给了一个webpack的项目,我拿过来,npm install 突然出现报错了,并且报了一个奇怪的错误, 如下所示, Unexpected end of JSON input while parsing near ‘ “https:// github.com/w”’, 安装依赖从来没有失败过 ...
分类:
其他好文 时间:
2019-08-02 19:59:33
阅读次数:
94
一、主程序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
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