上一页 1 ··· 9 10 11 12 13
摘要: linux之sed用法 sed是一个很好的文件处理工具,本身是一个管道命令,主要是以行为单位进行处理,可以将数据行进行替换、删除、新增、选取等特定工作,下面先了解一下sed的用法sed命令行格式为: sed [-nefri] ‘command’ 输入文本 常用选项: -n∶使用安静(silent)模 阅读全文
posted @ 2016-05-17 14:32 清风木 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 2、ajax1)跨域 $.ajax({ type : "get", data : "data_xName=" + data_xName , url : "http://222.73.x.x/qing/11.php", dataType : "jsonp",// jsonp: 'jsoncallbac 阅读全文
posted @ 2016-05-17 14:30 清风木 阅读(111) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/evn python# -*- coding:utf-8 -*-import jsonimport urllib2import datetimeimport reimport Queueimport threadingqueue = Queue.Queue()thread = 阅读全文
posted @ 2016-05-17 14:27 清风木 阅读(385) 评论(0) 推荐(0) 编辑
摘要: iptables -t nat -I POSTROUTING -s 192.168.0.0/24 -j SNAT --to-source 118.x.x.xiptables -A FORWARD -s 192.168.0.0/24 -j ACCEPTiptables -A FORWARD -d 19 阅读全文
posted @ 2016-05-17 14:26 清风木 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 限制端口 #!/bin/bashiptables -P INPUT ACCEPTiptables -P OUTPUT ACCEPTiptables -Fiptables -P INPUT DROPiptables -A INPUT -i lo -j ACCEPTiptables -A INPUT - 阅读全文
posted @ 2016-05-17 14:24 清风木 阅读(1103) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/python26#filename:check_traffic.py#the python script function for monitoring network traffic.'''--helpexample: python26 check_traffic.py de 阅读全文
posted @ 2016-05-17 14:10 清风木 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 用pt-table-checksum校验数据一致性 Jun 4th, 2013 主从数据的一致性校验是个头疼的问题,偶尔被业务投诉主从数据不一致,或者几个从库之间的 数据不一致,这会令人沮丧。通常我们仅有一种办法,热备主库,然后替换掉所有的从库。这不仅代价非常大,而且类似治标不治本的方案,让人十分不 阅读全文
posted @ 2016-05-17 14:07 清风木 阅读(703) 评论(0) 推荐(0) 编辑
摘要: # Kickstart file automatically generated by anaconda.installharddrive --partition=sdb2 --dir=lang en_US.UTF-8keyboard ustextnetwork --device eth0 --bo 阅读全文
posted @ 2016-05-17 14:05 清风木 阅读(2546) 评论(1) 推荐(0) 编辑
摘要: linux运维 技能树::初级运维:基础:mysql基础,网络基础,计算机基础,linux系统vim, nginx ,grep ,awk,sed ,zaabix和常用开源软件,java tomcat中级运维lvs 集群,nginx 集群 ,redis, mysql高可用,mongodb集群,elk, 阅读全文
posted @ 2016-05-17 14:04 清风木 阅读(1154) 评论(0) 推荐(0) 编辑
摘要: 运维(SA)修仙 之路:大纲: 系统 ,网络 ,数据库,开发 系统 :linux(cent OS && ubuntu) 网络 :路由,防火墙,安全 数据库:mysql, mongodb 开发:shell, python 1、入门阶段基本命令 系统命令:top, sar, iostat, free, 阅读全文
posted @ 2016-05-17 13:50 清风木 阅读(449) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13