if [ $(rpm -qa|grep openssl|wc -l) -lt 1]; then yum -y install openssl openssl-develfiif [ $(rpm -qa|grep sasl|wc -l) -lt 1 ]; then yum -y install cyrus-sasl-*fiif [ -z $(ps -ef|grep sasl|
import smtplib import string from email.mime.text import MIMEText def send_mail(host, sender, sender_passwd, receiver, content_file, port="25")
#!/usr/bin/python # -*- coding: utf8 -*- import os import sys import filecmp import re import shutil file_list = [] def recursive_dir(dir1
因为django的版本差异化比较大,所以以下配置仅供学习参考。D:\www\mysite>python --versionPython 2.7.5>>> print django.__version__1.9.4本记录不作细说,主要配置过程如下:settings.py最后一段,关于静态文件的配置# Static files (CSS, 
软件安装过程中,在安装lxml的时候出现如下错误error: command 'gcc' failed with exit status 1gcc当然没问题,问题原因是缺少相关组件,安装以下2个组件即可,yum install libxslt-devel libxml2-devel回到lxml-3.4.2目录,执行python setup.py install安装成功!
很久以前部署好的zabbix监控服务器,可是用的甚少,今天偶然帮助群里的小伙伴解决问题,于是又温习了一遍部署过程。细说起来,要注意的地方真挺多的。 在正式安装zabbbix之前,需要先装好依赖软件。#---------------INSTALL NGINX 1.9.15-----------------------# # install&nb
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号