随笔分类 -  服务启停脚本

摘要:# -*- coding: utf-8 -*- import re import sys from subprocess import Popen, PIPE import os import time import commands def getoutput(command): print 's 阅读全文
posted @ 2020-08-05 11:04 QQmini 阅读(479) 评论(0) 推荐(0)
摘要:import os import sys import time from _utils.patrol2 import run_cmd import platform def get_Linux_status(start_port): status_cmd = "netstat -anp |grep 阅读全文
posted @ 2020-03-20 14:33 QQmini 阅读(233) 评论(0) 推荐(0)
摘要:1、服务停止脚本,可根据脚本路径,脚本名,服务等进行停止。针对于端口号状态是否在监听来判断 import os import sys import time from _utils.patrol2 import run_cmd import platform def get_Linux_status 阅读全文
posted @ 2020-03-20 14:24 QQmini 阅读(644) 评论(0) 推荐(0)