随笔分类 -  Linux Scripts

自动化部署脚本,puppet等
【python】格式化字符串
摘要:字符串格式化操作符(%)只适用于字符串类型,非常类似于C 语言里面的printf()函数的字符串格式化,甚至所用的符号都一样,都用百分号(%),并且支持所有printf()式的格式化操作。语法如下:format_string % string_to_convertformat_string为格... 阅读全文
posted @ 2014-06-18 17:29 tangoo 阅读(373) 评论(0) 推荐(0)
【Linux 运维】一个经典实用的iptables shell脚本
摘要:iptables firewall 阅读全文
posted @ 2014-05-21 16:02 tangoo 阅读(311) 评论(0) 推荐(0)
【转载】自动化之LAMP部署
摘要:###################################auto_lamp.sh###########################################!/bin/bash # -*- coding: utf-8 -*-#-------------------------... 阅读全文
posted @ 2013-04-13 17:19 tangoo 阅读(418) 评论(0) 推荐(0)