关注于系统高可用、网站架构
发布时间:2012-09-20 11:50:20
Location语法语法:location [=|~|~*|^~] /uri/ { … }= 开头表示精确匹配^~ 开头表示uri以某个常规字符串开头,理解为匹配 url路径即可~ 为区分大小写匹配~* 为不区分大小写匹配!~和!~*分别为区分大小写不匹配及不区分大小写不匹配/ 通用匹配,任何请求都会匹配到。多个location配置的情况下匹配.........【阅读全文】
发布时间:2012-09-16 17:36:57
megacli -PDList -aALL 【查看硬盘信息】获取ssd的Device Id 号 root@eng31:~# smartctl -a -d sat+megaraid,5 /dev/sdb1|egrep "ID#|Reallocated_Sector_Ct|Media_Wearout_Indicator|Available_Reservd_Space"ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDA.........【阅读全文】
发布时间:2012-08-28 17:38:50
root@tts67:~# ssh-keygen -t rsa -b 4096Generating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): Created directory '/root/.ssh'.Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /ro.........【阅读全文】
发布时间:2012-07-13 14:05:16
1、puppet parser validate site.pp #检查单个文件 2、 检查所有.pp文件 3、Puppet检查模板是否有错误erb -x -T '-'-P web/templates/cron/cron.erb |ruby –c 4、查看puppet所有 配置文件puppetmasterd –configprint all ##查看所有配置文件puppet –configprint m.........【阅读全文】