/usr/bin/ld: cannot find -lc
摘要:yum install glibc-static[root@test chkrootkit-0.50]# make sensecc -static -o strings-static strings.c/usr/bin/ld: cannot find -lccollect2: ld returne...
阅读全文
posted @
2014-09-23 10:26
zitong
阅读(374)
推荐(0)
rsync
摘要:摘自:http://blogread.cn/it/article/6309?f=wb如果你是一位运维工程师,你很可能会面对几十台、几百台甚至上千台服务器,除了批量操作外,环境同步、数据同步也是必不可少的技能。 说到“同步”,不得不提的利器就是rsync,今天就来说说我从这个工具中看到的同步的艺术。 ...
阅读全文
posted @
2014-09-16 14:27
zitong
阅读(878)
推荐(0)
Received empty response from Zabbix Agent at [agent]. Assuming that agent dropped connection because of access permission
摘要:Received empty response from Zabbix Agent at [agent]. Assuming that agent dropped connection because of access permission情况:server端一直显示更改server上agentd...
阅读全文
posted @
2014-09-11 03:08
zitong
阅读(5349)
推荐(0)
eval
摘要:if ! getopt --testthen go_out="$(getopt --options="i" --longoptions=i686 \ --name="$(basename "$0")" -- "$@")" test $? -eq 0 || exit 1 ...
阅读全文
posted @
2014-09-10 09:04
zitong
阅读(169)
推荐(0)
ps ww
摘要:[root@ma ~]# ps ww -p 1 PID TTY STAT TIME COMMAND 1 ? Ss 0:01 /sbin/init[root@ma ~]# ps -p 1 PID TTY TIME CMD 1 ? ...
阅读全文
posted @
2014-09-09 17:07
zitong
阅读(275)
推荐(0)
ps -p 进程号
摘要:[root@ma ~]# ps -p 1 PID TTY TIME CMD 1 ? 00:00:01 init
阅读全文
posted @
2014-09-09 17:06
zitong
阅读(193)
推荐(0)
ptgmk
摘要:num >= 1125899906842624 ? "P" \ : num >= 1099511627776 ? "T" \ : num >= 1073741824 ? "G" \ : num >= 10...
阅读全文
posted @
2014-09-09 16:55
zitong
阅读(182)
推荐(0)
awk中的if ,else
摘要:local pct="$(awk -v one="$1" -v two="$2" 'BEGIN{ if (two > 0) { printf "%d", one/two*100; } else {print 0} }')";
阅读全文
posted @
2014-09-09 16:52
zitong
阅读(2679)
推荐(0)
awk -v参数
摘要:-v var=val --assign var=val Assign the value val to the variable var, before execution of the program begins. Suc...
阅读全文
posted @
2014-09-09 16:44
zitong
阅读(3799)
推荐(0)
ps -eo 用户自定义格式显示
摘要:[root@ma ~]# ps -eo pid,ucomm|head -3 PID COMMAND 1 init 2 kthreadd[root@ma ~]# ps axu|head -3USER PID %CPU %MEM VSZ RSS TTY S...
阅读全文
posted @
2014-09-09 16:43
zitong
阅读(963)
推荐(0)
pidof
摘要:pidof 服务名称,就可以查看到服务占用的进程号
阅读全文
posted @
2014-09-09 16:39
zitong
阅读(157)
推荐(0)
awk
摘要:[root@ma ~]# vi test2#!/bin/bashi=9awk "BEGIN { for(i=1; i<=$i; i++) print i; }""test2" [New] 3L, 62C written[root@ma ~]# sh test2123456789
阅读全文
posted @
2014-09-09 16:36
zitong
阅读(141)
推荐(0)
UnsafeUserParameters=1 参数
摘要:UnsafeUserParameters=1
阅读全文
posted @
2014-09-09 12:04
zitong
阅读(1780)
推荐(0)
unsafeuserparameters=1
摘要:unsafeuserparameters=1
阅读全文
posted @
2014-09-09 12:02
zitong
阅读(509)
推荐(0)
5.1中repair table
摘要:mysql> repair table xs;+---------+--------+----------+----------+| Table | Op | Msg_type | Msg_text |+---------+--------+----------+----------+|...
阅读全文
posted @
2014-09-07 16:31
zitong
阅读(131)
推荐(0)
alter column和modify column
摘要:5.6中,发现其实alter column 和更改modify column 步骤是一样的mysql> create table xs(name varchar(12),age int default 5);Query OK, 0 rows affected (0.34 sec)mysql> ins...
阅读全文
posted @
2014-09-07 16:12
zitong
阅读(4949)
推荐(0)
几个帮助完成影子拷贝的工作的工具
摘要:facebook 的oscshlomi noach openark toolkitpercona toolkitflexviews cdc
阅读全文
posted @
2014-09-07 15:45
zitong
阅读(211)
推荐(0)
innodb什么时候会把varchar转成blob
摘要:innodb什么时候会把varchar转成blob
阅读全文
posted @
2014-09-07 10:13
zitong
阅读(281)
推荐(0)
mysql中更改字段属性实际上都做了哪些操作
摘要:mysql> set profiling=1;Query OK, 0 rows affected (0.00 sec)mysql> alter table test modify name varchar(10);Query OK, 3 rows affected (0.00 sec)Records...
阅读全文
posted @
2014-09-07 09:38
zitong
阅读(227)
推荐(0)
超过varchar定义长度
摘要:mysql> select version();+------------+| version() |+------------+| 5.1.73-log |+------------+1 row in set (0.00 sec)mysql> show variables like 'colla...
阅读全文
posted @
2014-09-07 09:33
zitong
阅读(566)
推荐(0)
Error: Could not request certificate: No route to host - connect(2)
摘要:[root@puppetclient ~]# puppet agent --server 192.168.127.137 --testInfo: Creating a new SSL key for puppetclient.localdomainError: Could not request c...
阅读全文
posted @
2014-09-06 12:02
zitong
阅读(984)
推荐(0)
puppetlabs地址
摘要:https://yum.puppetlabs.com/el/6Server/products/i386/rpm -Uvh http://yum.puppetlabs.com/el/6Server/products/i386/puppetlabs-release-6-6.noarch.rpm
阅读全文
posted @
2014-09-06 11:29
zitong
阅读(124)
推荐(0)
数据恢复的脚本
摘要:数据恢复的脚本#!/bin/bashif [ -d /root/`date +%Y-%m-%d` ];then innobackupex --apply-log /root/`date +%Y-%m-%d` >>/var/log/sjhf`date +%Y%m%d`.log 2>&...
阅读全文
posted @
2014-09-03 09:58
zitong
阅读(340)
推荐(0)
binlog-do-db
摘要:如果只是对一个数据库设置,其实没有效果的,其他数据还是会记录binlog的binlog-ignore-db =database b binlog日志里面将不会记录database b的所有相关的操作
阅读全文
posted @
2014-09-02 16:03
zitong
阅读(1331)
推荐(0)
zabbix 监控tomcat
摘要:zabbix 监控tomcatserver端rpm -ivh jdk-8u20-linux-x64.rpmvi /etc/profileJAVA_HOME=/usr/java/jdk1.8.0_20PATH=$PATH:$JAVA_HOMECLASSPATH=.:$JAVA_HOME/lib/dt....
阅读全文
posted @
2014-09-01 15:50
zitong
阅读(543)
推荐(0)
解压rpm文件
摘要:rpm2cpio zabbix-2.2.2-0.el6.zbx.src.rpm |cpio -div
阅读全文
posted @
2014-09-01 11:39
zitong
阅读(156)
推荐(0)
Error: Could not open input file: /usr/java/jdk1.7.0_07/jre/lib/jsse.pack
摘要:[root@localhost ~]# rpm -ivh jdk-7u7-linux-i586.rpm Preparing... ########################################### [100%] 1:jdk ...
阅读全文
posted @
2014-09-01 10:50
zitong
阅读(1613)
推荐(0)