摘要: def get_max_and_min(*args): args = list(args) #这里要注意,传入的多个参数会被重组成一个元组 for i in range(0, len(args)-1): for j in range(0, len(args)-1-i): if args[j] > a 阅读全文
posted @ 2021-07-24 00:52 Peter_Yi 阅读(24) 评论(0) 推荐(0)
摘要: 安装好esxi6.0后,网页访问地址,是不能访问的,只能下载vSphere client,没有网页管理界面。添加网页管理web client的方式是:1.开启esxi的ssh2.通过ssh运行安装web client的命令:esxcli software vib install -v https:/ 阅读全文
posted @ 2021-07-11 13:48 Peter_Yi 阅读(333) 评论(0) 推荐(0)
摘要: 删除文件 /etc/httpd/conf.d/welcome.conf,在CentOS 8上,启动httpd访问,就会发现已经可以列出文件了。如果仍然不能列出文件,那么就再在文件 /etc/httpd/conf.d/autoindex.conf 的最下面增加以下内容:<Directory "/var 阅读全文
posted @ 2021-07-09 16:41 Peter_Yi 阅读(303) 评论(0) 推荐(0)
摘要: 方法1:for i in {1..10};do echo $i;done方法2:for i in `seq 10`;do echo $i;done方法3:for i in $(seq 1 10);do echo $i;done方法4:for((i=1;i<=10;i++));do echo $i;d 阅读全文
posted @ 2021-06-27 22:38 Peter_Yi 阅读(711) 评论(0) 推荐(0)
摘要: RHEL6下yum -y install epel-release安装了epel源,但yum makecache出错。centos下安装完EPEL源然后更新一下yum缓存如果发现这样的错误:Error: Cannot retrieve metalink for repository: epel. P 阅读全文
posted @ 2021-06-27 22:36 Peter_Yi 阅读(174) 评论(0) 推荐(0)
摘要: RPM包源:pkgs.orgrpm.pbone.netwww.rpmfind.netMySQL各版本源:https://downloads.mysql.com/archives/community/JDK软件源:http://mirrors.linuxeye.com/jdk/tomcat各版本源:h 阅读全文
posted @ 2021-06-27 22:23 Peter_Yi 阅读(627) 评论(0) 推荐(0)
摘要: * * * * * sleep 10;/bin/date >>/tmp/date.txt* * * * * sleep 20;/bin/date >>/tmp/date.txt* * * * * sleep 30;/bin/date >>/tmp/date.txt* * * * * sleep 40 阅读全文
posted @ 2021-02-22 14:56 Peter_Yi 阅读(770) 评论(0) 推荐(0)
摘要: Windows在创建有密码的共享时,要注意改组策略设置,不改可能出现即便密码输入正确,也登录不了的情况: 计算机配置->管理模板->网络->Lanman工作站->启用不安全的来宾登录 计算机配置 -> Windows设置 -> 本地策略 -> 用户权限分配 -> 安全选项 -> 网络安全:LAN管理 阅读全文
posted @ 2021-02-01 16:01 Peter_Yi 阅读(270) 评论(0) 推荐(0)
摘要: 待测试: https://www.cnblogs.com/kailsay/p/12470745.html 阅读全文
posted @ 2021-01-31 23:25 Peter_Yi 阅读(212) 评论(0) 推荐(0)
摘要: Python各版本下载: https://www.python.org/ftp/python/ 阅读全文
posted @ 2021-01-16 09:05 Peter_Yi 阅读(89) 评论(0) 推荐(0)