记录一次Linux开发环境的搭建,因为自己现在使用的系统是Win10,很多时候想使用Linux进行测试和部署程序,而且像很多的开发环境并不想直接安装在自己的系统上,所以使用了Vagrant加VirtualBox作为自己的开发环境。自己可以根据系统到下面地址下载适合自己系统的软件版本~ Virtual ...
@staticmethoddef unzip_file(failed_file): zip_file = zipfile.ZipFile(failed_file) print(zip_file) if os.path.isdir(failed_file[0:-20]): pass else: os. ...
分类:
编程语言 时间:
2021-06-07 20:42:48
阅读次数:
0
rows = driver.find_elements_by_css_selector('div.wrapper>ul.list>li')logger.info(len(rows)) ...
分类:
编程语言 时间:
2021-06-07 20:41:35
阅读次数:
0
查看当前系统版本的详细信息 # cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) yum源下载 地址:https://dev.mysql.com/downloads/repo/yum/ 下载地址:https://repo.mys ...
分类:
数据库 时间:
2021-06-07 20:40:56
阅读次数:
0
1.在自己的服务器中找到redis的配置文件 redis.conf 使用命令vi redis.conf或vim redis.conf ...
分类:
其他好文 时间:
2021-06-07 20:35:04
阅读次数:
0
想在linux环境下打开一个网页,环境描述:在窗口模式下,打Terminal,然后从本地服务器ssh到了另一个服务器,想执行firefox命令打开一个网页,如下 [root@pc207 ~]# firefox http://www.a.com Error: no display specified ...
分类:
Web程序 时间:
2021-06-07 20:34:32
阅读次数:
0
python包自我理解 1、python包 ? 文件夹下有__init__.py文件,这个文件夹就是一个包 ? 可以通过import包名(也就是文件夹名称)导入包,当执行import包名时python会加载__init__.py文件 ? 可以在__init__.py文件指定导入的模块,那样在导包时就 ...
分类:
编程语言 时间:
2021-06-07 20:30:25
阅读次数:
0
Python访问PostGIS(建表、空间索引、分区表):https://www.cnblogs.com/likehua/p/3908323.html ...
分类:
编程语言 时间:
2021-06-07 20:29:14
阅读次数:
0
vim /etc/sysconfig/network-scripts/ifcfg-ens33 增加如下内容 DNS1=8.8.8.8 DNS2=114.114.114.114 PEERDNS="no" 重启网络 service network restart ...
分类:
其他好文 时间:
2021-06-07 20:27:38
阅读次数:
0
一、定义xml文件内容,既然是自定义则所有的根节点随便写 使用xml.dom.minidom三方模块对xml文件进行解析 from xml.dom.minidom import parse def getIP(machineNum): #读取xml文件 domTree = parse("./conf ...
分类:
编程语言 时间:
2021-06-07 20:09:27
阅读次数:
0