使用python安装nginx
#!/usr/bin/python3# -*- conding: UTF-8 -*-import subprocessimport os import shutilimport reimport tarfiledef execute_cmd(cmd):p=subprocess.Popen(cmd,shell=True,stdin=subprocess.PIPE,stderr=subprocess.PIPE,stdout=subprocess.PIPE) stdout,stderr=p.c