摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- import sys import os from sys import argv DAEMON='/usr/local/nginx/sbin/nginx' CONFIGFILE='/usr/local/ngi 阅读全文
posted @ 2017-06-05 09:55 soului 阅读(851) 评论(0) 推荐(0)
摘要: 1)下载repo文件 wget http://mirrors.aliyun.com/repo/Centos-7.repo 2)备份并替换系统的repo文件 cp Centos-7.repo /etc/yum.repo.d/ cd /etc/yum.repos.d/ mv CentOS-Base.re 阅读全文
posted @ 2017-03-21 16:49 soului 阅读(685) 评论(0) 推荐(0)
摘要: #!/bin/sh # # nginx - this script starts and stops the nginx daemon # # chkconfig: - 85 15 # description: Nginx is an HTTP(S) server, HTTP(S) reverse 阅读全文
posted @ 2017-03-21 16:39 soului 阅读(256) 评论(0) 推荐(0)