随笔分类 - shell全自动linux脚本系列
自用python写了一段监控python进行运行的脚本,并且死循环,停止就启动。
摘要:import subprocess as sbimport time,sys,datetimecount = 1while True: try: count += 1 res = sb.getoutput("ps -ef|grep python3") #查看是否还在运行中, if "zdjy" in
阅读全文
一键对centos7.6安装python3环境已经pip3
摘要:1 yum -y install "Development tools" 2 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel t k-devel gdbm-de
阅读全文