write down,forget
adidas eqt support ultra primeknit vintage white coming soon adidas eqt support ultra boost primeknit adidas eqt support ultra pk vintage white available now adidas eqt support ultra primeknit vintage white sz adidas eqt support ultra boost primeknit adidas eqt adv support primeknit adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red adidas eqt support ultra whiteturbo adidas eqt support ultra boost off white more images adidas eqt support ultra boost white tactile green adidas eqt support ultra boost beige adidas eqt support ultra boost beige adidas eqt support refined camo drop adidas eqt support refined camo drop adidas eqt support refined running whitecamo adidas eqt support 93 primeknit og colorway ba7506 adidas eqt running support 93 adidas eqt support 93
分类 Category : DevOPS

salt命令快速参考

<Category: DevOPS> Comments Off on salt命令快速参考

http://saltstack.com
http://saltstack.cn
阅读这篇文章的其余部分 »

本文来自: salt命令快速参考

/bin/sh: line 5: msgfmt: command not found

<Category: DevOPS> Comments Off on /bin/sh: line 5: msgfmt: command not found

yum install gettext

 

本文来自: /bin/sh: line 5: msgfmt: command not found

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

<Category: DevOPS> Comments Off on Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

Loaded plugins: fastestmirror, security

Loading mirror speeds from cached hostfile

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

sed: can’t read /etc/salt/minion: No such file or directory

/tmp/install_salt_client.sh: line 22: /etc/init.d/salt-minion: No such file or

 

vi /etc/yum.repos.d/epel.repo

 

查找https,改为http即可

 

本文来自: Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

git push 遭遇拒绝

<Category: DevOPS> Comments Off on git push 遭遇拒绝

错误原因以及解决

这是由于git默认拒绝了push操作,需要进行设置,修改.git/config文件后面添加如下代码:
vim /home/git/repo/.git/config

使用git方式来发布war包,可以自动合并文件的改变,只会提交相关的变更文件,比普通传war包的方式要大大节省时间。

本文来自: git push 遭遇拒绝

Gitorious

<Category: DevOPS> Comments Off on Gitorious

试用了下Gitorious,是github enterprise的很好的替代品,大部分操作和github基本一致,github以人的repo为主,Gitorious更强调project以及team,作为内部的源码管理平台实在很合适。

推荐使用bitnami的installer来安装

http://bitnami.com/stack/gitorious/

安装很简单,唯一需要注意的是,必须设置一个domain,用ip不行

如果想换一下域名,在配置“/opt/gitorious-2.4.12-1/apps/gitorious/htdocs/config/gitorious.yml”里面替换就行了

另外本地hosts文件配置一下域名的解析,这步应该是可选的。

这下gitolite可以功成身退了。

本文来自: Gitorious

nginx限速

<Category: DevOPS, Web> Comments Off on nginx限速

nginx限制ip并发数和访问频率以及下载速度

限制并发

nginx版本1.1.8 之后
ngx_http_limit_zone_module 
改名为:
ngx_http_limit_conn_module

http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html#limit_conn

limit_zone指令改成limit_conn_zone了
阅读这篇文章的其余部分 »

本文来自: nginx限速

往graphite灌数据

<Category: DevOPS> Comments Off on 往graphite灌数据

http://graphite.readthedocs.org/en/0.9.10/feeding-carbon.html
找了半天,总算找到文档地址了,汗。

Getting your data into Graphite is very flexible. There are three main methods for sending data to Graphite: Plaintext, Pickle, and AMQP.

The plaintext protocol:
格式如下:

cargo默认监听端口2003,用nc测试一下

The pickle protocol:
这个协议,支持多个监控数据的提交,监听端口2004
格式

例子:

本文来自: 往graphite灌数据

Graphite修改默认端口

<Category: DevOPS> Comments Off on Graphite修改默认端口

graphite默认使用8080端口,被占了,如何修改呢?

vi /opt/graphite/bin/run-graphite-devel-server.py

修改8080为你的端口就行了。

启动graphite-web

django修改方法
python manage.py runserver 80
python manage.py runserver 0.0.0.0:80

本文来自: Graphite修改默认端口

zabbix agent自动部署

<Category: DevOPS> Comments Off on zabbix agent自动部署

使用方式:
#./zabbixagent.sh 10.112.1.1 10.112.1.2
第一个参数为zabbix服务器地址,第二个为本机zabbix agent监听ip
建议替换脚本中zabbix agent安装包围内网自己的下载服务器地址,提升安装速度
验证测试通过:zabbix-2.0.2

本文来自: zabbix agent自动部署

gitolite正确配置流程

<Category: DevOPS> Comments Off on gitolite正确配置流程

……
前2天折腾的够呛,记录下。
开始之前一定仔细看完,http://sitaramc.github.com/gitolite/sts.html#ssh-ha
阅读这篇文章的其余部分 »

本文来自: gitolite正确配置流程