#安装详见:http://linuxboys.blog.51cto.com/9150052/1601181zabbix中文语言设置:配置设定:vi/usr/share/zabbix/include/locales.inc.php+58#将中文支持的值置为"true"58‘zh_CN‘=>array(‘name‘=>_(‘Chinese(zh_CN)‘),‘display‘=>true),修改位置:zabbix-web主界面..
分类:
其他好文 时间:
2015-11-02 06:49:22
阅读次数:
232
简介:ssh全称SecureShellProtocol默认端口默认22服务处于监听状态,用于远程链接,早期使用telnet;主要功能远程连机和sftp功能版本两个不兼容的ssh协议版本,分别是1.x和2.x;服务端默认是2.xssh2同时支持RSA和DSA密钥,但是ssh1仅仅支持RSA密钥;ssh服务端软件OpenSSH(负责..
分类:
其他好文 时间:
2015-11-02 06:48:12
阅读次数:
241
在以计算机为代表的第三次工业革命之前,传统的生产与制造虽然有了效率提升,但并没有从本质上改变生产水平,后来在信息浪潮席卷之下,传统生产与制造才发生了本质的变化。不过,随着互联网与信息技术日趋发生微妙变化的同时,传统生产方式虽然迎来了变革,但也嗅到了市场的危..
分类:
其他好文 时间:
2015-11-02 06:47:33
阅读次数:
175
1、在生产中selinux是关闭的。iptables根据环境,内网关闭,外网开启。如果是大并发的情况,不开启iptables.2、/var/log/messages出现kernel:nf_conntrack:tablefull,droppingpacket是因为业务访问慢造成的优化:net.nf_conntrack_max=25000000net.netfilter.nf_conntrack_max..
分类:
其他好文 时间:
2015-11-02 06:47:33
阅读次数:
239
系统版本:D2.6.32-431.el6.x86_64虚拟机:四台环境准备:关闭selinux;关闭iptables;其中两台nginx+keepalive已安装且正常;另外两台的节点web工作正常;#为了更好的测试,web1:www.22web2:www.23;nginx安装:yuminstallpcre*-yyuminstallopensslopenssl-devel-yuseradd-s/..
分类:
其他好文 时间:
2015-11-02 06:48:28
阅读次数:
318
首先分析一下有哪些原因可能会导致负载不均:1、lvs自身的汇话保持(persistent10)可能会导致负载不均;2、调度算法的设置可能会导致;例如rr、wrr、wlc、lc算法;3、后端RS节点的汇报保持参数,例如apache的keepalive参数;4、访问量比较少的情况,不均衡的现象更加明显;5、..
分类:
其他好文 时间:
2015-11-02 06:46:48
阅读次数:
223
用c语言编辑程序://四年一闰,百年不闰,四百年再闰#include<stdio.h>intmain(){intcount=0;intyear=0;for(year=1000;year<=2000;year++){if(year%4==0){if(year%100!=0){printf("%d",year);count++;}}if(year%400==0){printf("%d",year);count++;}}printf("\ncount=%d..
分类:
其他好文 时间:
2015-11-02 06:45:41
阅读次数:
258
bash编程学习mkdir-pcd~ls-atail-f/var/log/httpd/accessgrep-i-E同时过滤多个字符alias别名which查看文件所在路径。tree-L查看文件目录seq-s打印数字序列echo{1,5}whoamiw当前登录的用户sudo让普通用户可以有root权限lsof-i:port列表打开的文件(初级)chkconfignetstatchattr..
分类:
其他好文 时间:
2015-11-02 06:46:32
阅读次数:
155
grep:根据模式搜索文本,将符合模式的文本显示出来-i:不计大小写-v:匹配与找到的相反的-o:只显示匹配到的那个字符--colour:显示颜色-E:扩展正则表达式-A#:显示匹配到的及其后n行-B#:显示匹配到的及其前n行-C#:显示匹配到的及其前后各n行正则表达式元字符.:匹配任意单..
分类:
其他好文 时间:
2015-11-02 06:46:13
阅读次数:
153
Question:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant di...
分类:
其他好文 时间:
2015-11-02 06:42:48
阅读次数:
175
Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.For example, givenn...
分类:
其他好文 时间:
2015-11-02 06:43:29
阅读次数:
196
You are playing the followingBulls and Cowsgame with your friend: You write a 4-digit secret number and ask your friend to guess it, each time your fr...
分类:
其他好文 时间:
2015-11-02 06:43:30
阅读次数:
246
在数据工具类.h文件中在数据工具类的.m文件中在其他文件中调用与上述一样的方法
分类:
其他好文 时间:
2015-11-02 06:42:19
阅读次数:
113
在音乐播放器.m文件中在音乐播放器.h文件中在其他控制器中调用这个单例,导入头文件
分类:
其他好文 时间:
2015-11-02 06:43:39
阅读次数:
160
在MRC与ARC下的单例 前两种都是ARC下的单例,下面这个是MRC下的单例在数据工具类.h文件中在数据工具类.m文件中
分类:
其他好文 时间:
2015-11-02 06:41:41
阅读次数:
121
Given an array containingndistinct numbers taken from0, 1, 2, ..., n, find the one that is missing from the array.For example,Givennums=[0, 1, 3]retur...
分类:
其他好文 时间:
2015-11-02 06:42:55
阅读次数:
168
QuestionGiven a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each word is a valid dictionary word.Return all such...
分类:
其他好文 时间:
2015-11-02 06:40:56
阅读次数:
162