02 2021 档案
摘要:https://www.cnblogs.com/kaituorensheng/p/4465768.html 在利用Python进行系统管理的时候,特别是同时操作多个文件目录,或者远程控制多台主机,并行操作可以节约大量的时间。当被操作对象数目不大时,可以直接利用multiprocessing中的Pro
阅读全文
摘要:https://pypi.org/project/retrying/ Project description Retrying is an Apache 2.0 licensed general-purpose retrying library, written in Python, to simp
阅读全文
摘要:https://www.cjavapy.com/article/719/ 1、ftplib的常用方法 1)ftp登陆连接 from ftplib import FTP #加载ftp模块 ftp=FTP() #设置变量 ftp.set_debuglevel(2) #打开调试级别2,显示详细信息 ftp
阅读全文
摘要:转自:https://www.cnblogs.com/gl1573/p/10129382.html 转自:https://blog.csdn.net/weixin_39198406/article/details/81482082 网络请求不可避免会遇上请求超时的情况,在 requests 中,如果
阅读全文
摘要:https://zhuanlan.zhihu.com/p/139482499 简介 Linux 操作文本的三大利器分别是 grep、sed 、awk,简称三剑客。 大师兄 awk:最擅长取列;二师兄 sed:最擅长取行;三师兄 grep:最擅长过滤。 正则表达式 *** 三位师兄闪亮登场啦 ***
阅读全文
摘要:转自:https://zhuanlan.zhihu.com/p/350401316 在 Linux 中有两种运行 shell 脚本的方法。 来源:https://linux.cn/article-13106-1.html 作者:Abhishek Prakash 译者:郑 (本文字数:2751,阅读时
阅读全文
摘要:https://zhuanlan.zhihu.com/p/28562152 介绍 大多数现代的类 Unix 操作系统都提供了一种中心化的机制用来搜索和安装软件。软件通常都是存放在存储库中,并通过包的形式进行分发。处理包的工作被称为包管理。包提供了操作系统的基本组件,以及共享的库、应用程序、服务和文档
阅读全文
摘要:[root@hecs-x-medium-2-linux-20200619090653 html]# yum install -y nginx mysql-server php php-fpmLast metadata expiration check: 1:05:55 ago on Wed 10 F
阅读全文
摘要:root@hecs-x-medium-2-linux-20200619090653:~# apt-get install php-fpmReading package lists... DoneBuilding dependency treeReading state information...
阅读全文
摘要:root@hecs-x-medium-2-linux-20200619090653:~# apt-get install mysql-serverReading package lists... DoneBuilding dependency treeReading state informatio
阅读全文
摘要:root@hecs-x-medium-2-linux-20200619090653:~# apt-get install nginxReading package lists... DoneBuilding dependency treeReading state information... Do
阅读全文
摘要:安装宝塔 Centos安装脚本 yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh Ubuntu/Deepin安装脚本 wget -O inst
阅读全文
摘要:默认centos, unbtan都已经安装了python3版本,可以通过 whereis python来检查已经安装的版本。 root@hecs-x-medium-2-linux-20200619090653:/usr/bin# whereis pythonpython: /usr/bin/pyth
阅读全文