[root@localhostsbin]#ls1.shnginxnginx.0nginx.2nginx.3.baknginx.luanginx.old测试1:cat1.shyes|cp-rnginx.0nginx#servicenginxstart/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf[-fnginx.old]&a
(py3)[root@localhostnginx]#catnginx.conf|grep-v"#"usernginx;worker_processesauto;error_log/var/log/nginx/error.log;pid/run/nginx.pid;include/usr/share/nginx/modules/*.conf;events{worker_connections102
https://blog.whsir.com/post-3081.htmlhttp://blog.51cto.com/lansgg/1760578http://www.showerlee.com/archives/1285https://www.cnblogs.com/weifeng1463/p/7714492.htmlsshkey导入步骤2中生成的密钥文件内容Gitlab11.0增加了两个强大的
1.zabbix_getzabbix_get-s172.16.40.46-p10050-k"service_nums"error:cannotopenPackagesindexusingdb5-Permissiondenied(13)error:cannotopenPackagesdatabasein/var/lib/rpmTraceback(mostrecentcalllas
http://www.xuchanggang.cn/archives/1015.html1.副本集Replicatsets模式1.主服务器负责整个副本集的读写,副本集定期同步数据备份,一但主节点挂掉,副本节点就会选举一个新的主服务器,这一切对于应用服务器不需要关心2.副本集中的副本节点,在主节点挂掉后,通过心跳机制检测到后,就会在集群内发起主节点的选举机制,自动选举一位新的主服务器3.Mongod
1.关闭下级构建,只是更新maven依赖Enabletriggeringofdownstreamprojects
vsphere 扩容
MySQL之delete 忘加where条件误删除恢复
lanmp
mongodb
test.shmongo127.0.0.1:27017/admin-uroot-pxx<<EOFshowdbsexit;EOFmongoback.sh#!/bin/bash#backupMongoDB#mongodump命令路径DUMP=/export/mongodb/bin/mongodump#临时备份目录OUT_DIR=/home/mongodb_bak/mongodb_bak_n
注意的地方1.host_get方法returnhost['groups'][0]['groupid']returnhost['hostid']2."selectGroups":"extend"3.[{'groupid':u'2'},{'groupid':u'
py-2-mpipinstallxxx172.x.x.xMac172.x.x.xmacTemplateOSMacOSX""我只是添加一个主机,一个模板api官网https://www.zabbix.com/documentation/3.2/manual/api/reference/host/create注意返回值是list还是dict!/usr/bin/envpythonco
linux查看RAID信息http://jpuyy.com/2013/12/raid-information-in-linux.html软cat/proc/mdstat硬dmesg|grep-iraidcat/proc/scsi/scsilspci|grepRAID
svn st | grep '^\?' | tr '^\?' ' ' | sed 's/[ ]*//' | sed 's/[ ]/\\ /g' | xargs svn add
url:https://www.cnblogs.com/lemon-le/p/6266921.htmlldapclient登陆的话,在ldap服务器必须配置上面的属性,一定要有,不然登陆不上。lemon-le-cnblog增加objectclass
Install ![](http://i2.51cto.com/images/blog/201712/20/486658b933eacbde73bf013517b1a3be.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,
url:http://blog.51cto.com/lansgg/15449511.快速登录主机(无需输入密码)cp /usr/share/doc/sudo-1.8.6p3/schema.OpenLDAP /etc/openldap/schema/sudo.schemavim /etc/openldap/slapd.conf18 include  
sftp chroot
mysql 最关注的项Threads cachedState Sending DatainnoDB Rows Deleted per second(读写数量)io方面disk:sda:Read:Bytes/secBandWIDTH UTILIZATION for sdaMySQL Connectionstable_open_cacheMySQL PerformanceMySQL Inn
用于自动执行数据库脚本http://crazysky.iteye.com/blog/785177
[root@xx scripts]# lstable.txt testslownum.py testslowtable.py[root@xx scripts]# cat testslowtable.py #!/usr/bin/python# coding:utf-8import subprocessimport jsonfile='/usr/local/z
搞了很久,结果比较简单基本条件1.gcc version 4.8.2 20140120 (Red Hat 4.8.2-15) (GCC) https://superuser.com/questions/381160/how-to-install-gcc-4-7-x-4-8-x-on-centoswget http://people.centos.org/tru/devtools-2/de
dd io测试写25Gtime dd if=/dev/zero of=/opt/iotest/test.dbf bs=8k count=3000000读time dd if=/opt/iotest/test.dbf of=/dev/null bs=8kcd /usr/local/zabbix/etc/zabbix_agentd.conf.dcat vfsiojohn.conf 
http://tengxiansheng.blog.51cto.com/10693373/1939178 实施过程http://lihuipeng.blog.51cto.com/3064864/1561221 逻辑一天创建一个分区,分区比目前时间少7天的删除掉,等于说保留一个礼拜的数据zabbix 分区 zabbix_db_name:库名 table_name:表名 days_to_k
bandersnatch现在github上需要python3以上,不过2.7要改几行代码httpd.confListen 9600NameVirtualHost 172.1.1.3<VirtualHost 172.1.1.3>DocumentRoot /pip3/pypi/webServerName pip3.a.com<Directory /pip3/pypi/web>O
http://blog.csdn.net/bbirdsky/article/details/24620155 http://www.cnblogs.com/wenlong/archive/2012/05/07/2586853.htmlhttp://www.cnblogs.com/wenlong/archive/2012/05/07/2586853.htmlhttp://blog.csdn.net/
for pid in `ls -l /proc | grep ^d | awk '{ print $9 }'| grep -v [^0-9]` do # 让进程释放swap的方法只有一
参考 http://ju.outofmemory.cn/entry/97380 2014-10-05http://wangwei007.blog.51cto.com/68019/1249770 2013-07-15 官网 https://www.zabbix.com/documentation/3.2/ma
正则表达式2.zabbix_server 优化参考 http://waringid.blog.51cto.com/65148/955939/StartPollers=30 轮询的初始值(0-1000)StartIPMIPo
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号