上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: 基本概念可以了解http://www.mike.org.cn/articles/understand-upstart/http://blog.fens.me/linux-upstart/http://zh.wikipedia.org/wiki/Upstart传统的linux采用sysvinit daemon,缺点是无法很好地处理现代硬件,如热插拔设备、USB硬盘或山村、网络文件系统等。Upstart是一个基于事件的初始化守护进程,用于替代传统的init。 — 几个类Unix计算机操作系统启动时用于执行任务的方法。它是由Canonical公司前雇员Scott James Remnant所写。Up 阅读全文
posted @ 2014-02-12 18:02 silence.li 阅读(6004) 评论(0) 推荐(0)
摘要: squid可以完成的工作:代理服务器反向代理服务器防火墙缓存功能透明代理squid和varnish的对比,以及squid的优缺点说明:缓存到硬盘,容易遇到I/O瓶颈V3.2以下不支持多核CPU,对于多核服务器不能充分利用服务器资源无法批量清除缓存,varnish可以通过正则实现故障率高比较部分参考:http://hi.baidu.com/peter17919/item/f27029ffe7db8b14ce9f3296http://www.s135.com/post/313/1.代理服务器,缓存,透明代理,http://linux.vbird.org/linux_server/0420squid 阅读全文
posted @ 2014-02-12 11:11 silence.li 阅读(266) 评论(0) 推荐(0)
摘要: import osdef listdirs(base): for line in os.listdir(base): fullpath = os.path.join(base,line) if os.path.isdir(fullpath): listdirs(fullpath) elif os.path.isfile(fullpath): print fullpathbase = r'C:\Program Files\SogouInput\Components'listdirs(base) 阅读全文
posted @ 2014-02-10 14:19 silence.li 阅读(659) 评论(0) 推荐(0)
摘要: 删除qq文件夹中2013年12-31之前的文件import osimport timeimport datetimetimeline = datetime.datetime(2013,12,31)tl = time.mktime(timeline.timetuple())rootdir = r'C:\Documents and Settings\Administrator.CHINA-C58199F8B\My Documents\Tencent Files\xxxxxxxx\Image'for basedirs, dirs, files in os.walk(rootdir): 阅读全文
posted @ 2014-02-10 12:32 silence.li 阅读(564) 评论(0) 推荐(0)
摘要: ffmpeg -i InputFile -vn -acodec copy -ss 00:00:00 -t 00:01:32 OutPutFile 阅读全文
posted @ 2014-01-26 14:53 silence.li 阅读(212) 评论(0) 推荐(0)
摘要: https://github.com/lwfinger/rtl8188eu驱动下载地址安装:make allmake install参考一下把http://devillived.net/forum/home.php?mod=space&uid=2&do=blog&id=214 阅读全文
posted @ 2014-01-21 18:57 silence.li 阅读(1411) 评论(0) 推荐(0)
摘要: 下午分析了一下mysql的启动脚本,找到这篇,记录一下,目前很多服务都是以这种方式封装,后面自己写来借鉴一下http://blog.fens.me/linux-upstart/ 阅读全文
posted @ 2014-01-16 17:58 silence.li 阅读(173) 评论(0) 推荐(0)
摘要: 服务器是ubuntu12.04用一个账户app,使用su - app得到的环境变量和直接ssh登录的环境变量不同。导致su - app,无法执行ifconfigsu - app的环境变量/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/gamesssh直接登录的环境变量:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games不同地方已经标出。问题出现在su执行的过程中,应该使用了/etc/login.defs文件,经过验证。ENV_SUPATH PATH= 阅读全文
posted @ 2014-01-09 17:17 silence.li 阅读(854) 评论(0) 推荐(0)
摘要: http://note.drx.tw/2008/01/linuxsudo.htmlfoobar ALL=(ALL) ALL現在讓我們來看一下那三個 ALL 到底是什麼意思。第一個 ALL 是指網路中的主機,我們後面把它改成了主機名,它指明 foobar 可以在此主機上執行後面 的命令。第二個括弧裏的 ALL 是指目標用戶也就是以誰的身份去執行命令。最後一個 ALL 當然就是指命令名了。例如,我們想讓 foobar 用戶在 Linux 主機上以 jimmy 或 rene 的身份執行 kill 命令,這樣編寫配置文件:任务:添加一个用户,使其只能sudo到app用户下:1.useradd -m - 阅读全文
posted @ 2014-01-09 15:58 silence.li 阅读(290) 评论(0) 推荐(0)
摘要: 1. 16313:20140109:110809.577 resuming IPMI checks on host [10.1.3.41]: connection restored 16337:20140109:113655.574 IPMI item [Current_1] on host [10.1.3.41] failed: first network error, wait for 15 seconds 16313:20140109:113717.981 IPMI item [Current_1] on host [10.1.3.41] failed: another network 阅读全文
posted @ 2014-01-09 14:25 silence.li 阅读(3877) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页