- 博客(148)
- 收藏
- 关注
转载 apt代理设置
内网apt使用代理/etc/apt/apt.confAcquire::http::Proxy "http://guest:password@ip:port";转载于:https://www.cnblogs.com/silenceli/p/5363208.html
2016-04-07 13:39:00
261
转载 [linux]date命令
date -d"-1 day/minute/hour"转载于:https://www.cnblogs.com/silenceli/p/4578607.html
2015-06-15 16:43:00
219
转载 [case]filesystem problem
e2fsck 1.42 (29-Nov-2011)fsck.ext4: Superblock invalid, trying backup blocks...fsck.ext4: Bad magic number in super-block while trying to open /dev/sdb1使用e2fsck进行修复即可。http://unix.stac...
2015-04-29 12:17:00
232
转载 持续集成环境搭建(一)
计划:1. gitlab搭建2. gerrit搭建3. jenkins搭建4. gerrit + jenkins集成5. gitlab + jenkins集成6. jenkins插件转载于:https://www.cnblogs.com/silenceli/p/4326622.html...
2015-03-10 17:44:00
146
转载 The POSIX API/nss/nscd
https://code.google.com/p/nsscache/wiki/BackgroundOnNameServiceSwitchThe POSIX APIPOSIX is a standard that defines an operating system interface and its environment; describing available l...
2015-03-04 15:32:00
117
转载 [postfix]转发邮件设置
http://stackoverflow.com/questions/22537523/postfix-recipient-bcc-maps-multiple-recipients-how-tohttp://blog.youkuaiyun.com/ayumiwang/article/details/8810077基本配置:1.编辑主配置文件,加入如下内容 vi /etc/post...
2014-12-04 14:07:00
394
转载 【python】python安装lxml报错【2】
cl : Command line warning D9025 : overriding '/W3' with '/w'lxml.etree.cc:\docume~1\admini~1.chi\locals~1\temp\pip_build_Administrator\lxml\src\lxml\includes\etree_defs.h(14) : fatal er...
2014-12-03 14:46:00
444
转载 [python]python安装包错误
“UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xb0 in position 1: ordinal not in range(128)” 在windows XP上解决方法:Solution:======================It is because when Python in...
2014-12-03 14:35:00
139
转载 栈及栈帧讲解
1.http://www.cnblogs.com/fxplove/articles/2574451.html2.http://blog.youkuaiyun.com/zsy2020314/article/details/94297073.http://www.searchtb.com/2013/03/x86-64_register_and_function_frame.html转...
2014-11-21 15:27:00
94
转载 kernel-init-bash
https://www.kernel.org/doc/Documentation/kernel-parameters.txthttp://unix.stackexchange.com/questions/34462/why-does-linux-allow-init-bin-bashhttp://stackoverflow.com/questions/20744200/how-the-i...
2014-11-20 10:23:00
99
转载 对SLIP,PPP,PPPoE,EtherNet的理解。[zz]
经常看到PPP,PPPoE这些名词,当时也查了不少的资料,但是一直不太理解这是什么东西,干什么用的,今天静下心来,多看了点资料,有了一些初步理解,记录下来,以后有了新的理解再修改。首先,SLIP,PPP,EtherNet都是链路层的协议。SLIP和PPP是点对点协议,而EtherNet中添加了MAC地址的概念所以可以达到多点对一点的传输效果(不确定理解是否正确)。...
2014-11-14 11:54:00
654
转载 [ldap]slapcat/ldapsearch与ldap备份
http://serverfault.com/questions/577356/ldap-backup-with-slapcat-vs-ldapsearchUsed:openldap-servers-2.4.23-34.el6_5.1.x86_64Task: create script forcrontabto create scheduled database full ...
2014-10-24 14:23:00
488
转载 Cyrus SASL介绍(翻译)
http://blog.sina.com.cn/s/blog_7695e9f40100pnpa.htmlCyrus SASL介绍1.综述这篇文档讲述的是系统管理员配置SASL的方法,其中详细的描述了系统管理员如何利Cyrus SASL库来安装一个服务。2. SASL概念SASL的全称是the Simple Authentication an...
2014-10-17 15:24:00
490
转载 [vim]乱码问题
在vim输入中文乱码1. 检查系统是否支持中文locale -a没有中文支持安装中文包apt-get install language-pack-zh-hans -y2.这样可以输入中文了,但执行时报错:SyntaxError: Non-ASCII character '\xe4' in filetest.pyonline, but no encodi...
2014-10-15 16:48:00
102
转载 [io benchmark]常用磁盘基准/压力测试工具
Unix Disk I/O Benchmarksfio- NEW!fio is an I/O tool meant to be used both for benchmark and stress/hardware verification. It has support for 13 different types of I/O engines (sync, mmap, ...
2014-10-13 11:32:00
597
转载 [ldap]ldap server安装以及图形化操作
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-a-basic-ldap-server-on-an-ubuntu-12-04-vps链接中使用phpldapadmin操作比较简单,也不用考虑难掌握的命令行。转载于:https://www.cnblogs.com/s...
2014-10-11 16:39:00
294
转载 【mysql】测试方案整理
http://www.cnblogs.com/callhe/https://www.digitalocean.com/community/tutorials/how-to-measure-mysql-query-performance-with-mysqlslap转载于:https://www.cnblogs.com/silenceli/p/4016415.html...
2014-10-10 17:27:00
119
转载 [linux]linuxI/O测试的方法之dd
参考http://www.thomas-krenn.com/en/wiki/Linux_I/O_Performance_Tests_using_ddMeasuring Write PerformanceModern operating systems do not normally write files immediately to RAID systems or hard d...
2014-10-10 17:04:00
140
转载 [linux]linux调度策略对io的影响
题记:原本要写nfs的I/O小测试的,但考虑到只是的完整性和系统性,转一篇调度策略相关文章。1.linux中的调度策略参考:http://scoke.blog.51cto.com/769125/490546当前有cfq,noop,deadline察看方法:cat /sys/block/sda/queue/schedulernoop [deadline] cfq...
2014-10-10 15:40:00
129
转载 [python]乱码:python抓取脚本
参考:http://www.zhxl.me/1409.html使用 python urllib2 抓取网页时出现乱码的解决方案发表回复这里记录的是一个门外汉解决使用 urllib2 抓取网页时遇到乱码、崩溃、求助、解决和涨经验的过程。这类问题,事后看来只是个极小极小的坑,不过竟然花去很多时间,也值得记录一下。过程如下:目标:抓取 http://sports...
2014-08-26 16:16:00
177
转载 [zz]【整理】Python中Cookie的处理:自动处理Cookie,保存为Cookie文件,从文件载入Cookie...
http://www.crifan.com/python_auto_handle_cookie_and_save_to_from_cookie_file/#!/usr/bin/python# -*- coding: utf-8 -*-"""Function: 【整理】Python中Cookie的处理:自动处理Cookie,保存为Cookie文件,从文件载入C...
2014-08-22 17:22:00
162
转载 [vim]大小写转换
http://babybandf.blog.163.com/blog/static/619935320110121134826/~ 将光标下的字母改变大小写3~ 将光标位置开始的3个字母改变其大小写g~~ 改变当前行字母的大小写U 将可视模式下选择的字母全改成大写字母u 将可视模式下选择的字母全...
2014-08-20 11:14:00
80
转载 [zabbix]zabbix2.0apt源安装
http://www.sysadminworld.com/2013/install-zabbix-2-on-ubuntu-12-04-precise/转载于:https://www.cnblogs.com/silenceli/p/3914908.html
2014-08-15 15:02:00
97
转载 [mysql]replace
mysql中有一个字段后面多了'\r\n',需要删除update poems set author = replace(author,'\r\n',''); 转载于:https://www.cnblogs.com/silenceli/p/3911125.html
2014-08-13 20:40:00
92
转载 [ethernet]ubuntu更换网卡驱动
问题:网络不能ping通,dmesg显示很多[6127619.851454] r8169 0000:02:00.0: eth0: link up[6127758.849559] r8169 0000:02:00.0: eth0: link up[6133605.103557] r8169 0000:02:00.0: eth0: link up[6137391.79...
2014-08-07 14:50:00
310
转载 [mysql]mysql弱密码字典检测
1.如何定义弱密码和用户名一致连续字符连续数字空密码2.生成弱密码字典3.检测脚本4.结果转载于:https://www.cnblogs.com/silenceli/p/3871246.html...
2014-07-27 12:42:00
682
转载 [mysql]深入Mysql字符集设置[转载]
http://www.laruence.com/2008/01/05/12.html基本概念• 字符(Character)是指人类语言中最小的表义符号。例如’A'、’B'等;• 给定一系列字符,对每个字符赋予一个数值,用数值来代表对应的字符,这一数值就是字符的编码(Encoding)。例如,我们给字符’A'赋予数值0,给字符’B'赋予数值1,则0就是字符’A'的编码;• ...
2014-07-27 09:46:00
68
转载 [mysql]tpcc相关及画图
参考:http://blog.chinaunix.net/uid-26896862-id-3563600.html参考:http://blog.chinaunix.net/uid-25266990-id-4080103.html转载于:https://www.cnblogs.com/silenceli/p/3866223.html
2014-07-24 18:02:00
100
转载 [sed]记录
sed的括号本身没有特殊意义,如果要保留通配内容,需要转义。echo "1) host" |sed 's/1) ([a-z])/$1) $1/'有两处有问题。1. 首先是上面说的问题,上面的意思是要匹配 1) (b)这种字符串,而且没有变量捕获的意义,所以后面的$1不是一个变量。2.在sed中替换前面捕获的内容使用直接保存在数字变量中,而不是使用$1 $2类似的字符。故...
2014-07-20 09:25:00
61
转载 [mysql][【优化集合】mysql数据库优化集合
三个层面:1.系统层面2.mysql配置参数3.sql语句优化===========================================================一。系统层面===========================================================二。mysql参数层面http...
2014-07-17 18:16:00
66
转载 [dhcpd]清除dhcp缓存
修改了dhcp的default-lease-time && max-lease-time清除缓存:rm /var/lib/dhcpd.leases~echo "" > /var/lib/dhcpd.leasesmax-lease-time :default-lease-time, 在默认租约时间的0.5时,client请求dhcp,如果不能请求成...
2014-07-17 17:14:00
1922
转载 [mysql]数据库引擎查看
1.查看数据库引擎全局下,show engines;2.察看数据库引擎show variables like '%engine%';或者show create table xxx\G会显示默认的搜索引擎3.修改数据库默认引擎,在配置文件default-storage-engine=INNODBfrm myd myi分别代表表结构,数据文件,索引文件(...
2014-07-17 13:22:00
104
转载 [linux/net]策略路由实现特定主机特定路径
echo 200 silence >> /etc/iproute2/rt_tablesip rule add from 10.192.0.230 table silenceip rule add from 10.192.0.231 table silenceip rule add from 10.192.0.232 table silenceip...
2014-07-16 19:20:00
218
转载 [linux]ubuntu限速软件
wondersharper1 安装wondershaper:sudo apt-get install wondershaper2 限制下载,上传速度(1500是限制下载速度(实际限速150k左右),1000是上传速度(实际限速100k左右):sudo wondershaper eth0 1500 10003 取消限制:sudo wondershaper clear eth0...
2014-07-16 15:29:00
253
转载 hadoop设置公平队列
http://hadoop.apache.org/docs/r1.2.1/fair_scheduler.htmlfair-scheduler.xml文档<?xml version="1.0"?> <allocations> <pool name="test_pool"> <minMaps>5</m...
2014-07-15 17:09:00
81
转载 [总结]
很久没有更新博客了。后面还是要把博客用起来。主要将自己新学到的东西整理出来。转载于:https://www.cnblogs.com/silenceli/p/3842001.html
2014-07-14 03:13:00
52
转载 MYSQL性能察看
http://fengbin2005.iteye.com/blog/1580214 网上有很多的文章教怎么配置MySQL服务器,但考虑到服务器硬件配置的不同,具体应用的差别,那些文章的做法只能作为初步设置参考,我们需要根据自己的情况进行配置优化,好的做法是MySQL服务器稳定运行了一段时间后运行,根据服务器的”状态”进行优化。 mysql> show global st...
2014-07-08 11:38:00
86
转载 【转载】内核空间和用户空间
http://z515256164.blog.163.com/blog/static/3244302920121934321411/做驱动算来快6年了,今天突然看到一个问题:你自己是怎么样理解内核空间和用户空间的?乍一看到这问题,说实话,自己头脑有点空白的感觉。很奇怪的感觉,因为在我脑海里潜意识我对这个问题应该还是很清楚的,内核驱动,用户程序,系统调用什么的,信手拈来,就是画模块图...
2014-06-13 16:56:00
61
转载 [转载][mysql]mysql字符集干货
源地址:http://www.blogjava.net/zyskm/archive/2013/04/09/361888.html字符集的概念大家都清楚,校对规则很多人不了解,一般数据库开发中也用不到这个概念,mysql在这方便貌似很先进,大概介绍一下。简要说明字符集和校对规则字符集是一套符号和编码。校对规则是在字符集内用于比较字符的一套规则。MySql在collation提供...
2014-05-27 10:46:00
62
转载 [mysql]修改表段默认值
alter table xxx alter location drop default;alter table xxx alter location set default "xxx";另外在mysql v5.x版本中blob/text不能有默认值,修改时:BLOB/TEXT column 'xxxxxx(表名称)' can't have a default value qu...
2014-05-16 10:37:00
78
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人