linux tar分卷压缩

十二月 4th, 2011 | 1 Comment | Posted in Ubuntu | 阅读次数: 37

Author:gaojinbo TIme:2011-12-04 Linux下备份网站数据,由于文件很多,打包成一个文件会比较大,所以想分卷压缩成每个900M的文件,方便下载与上传到网盘备份。 1.分卷压缩,使用tar+sp[......]

Read more

Tags:

减少Nginx TIME_WAIT,减少Linux TIME_WAIT,kernel优化配置

十一月 30th, 2011 | No Comments | Posted in Centos, Debian, Ubuntu | 阅读次数: 72

Author:gaojinbo Time:2011-11-30 linux内核优化配置,减少TIME_WAIT非常有效,希望对大家有帮助。 vi /etc/sysctl.conf #change for hugwww[......]

Read more

Tags: ,

ubuntu10.04+openldap安装配置

十一月 26th, 2011 | No Comments | Posted in Ubuntu | 阅读次数: 59

Author:gaojinbo Time:2011-11-04 公司有1千台服务器,每次登录都需要输入不同的密码,如果有人离职要修改密码,工作量会非常大。所以使用ldap来登录系统,对用户进行验证。 1.环境: ubunt[......]

Read more

Tags:

Dell idrac命令行重启服务器

十一月 15th, 2011 | No Comments | Posted in Ubuntu | 阅读次数: 29

管理iDRAC卡,可以使用自带SSH中的命令行来执行开机、关机、重启等命令,具体参考dell的手册,以下是摘出来对电源部分的控制命令,个人觉得目前也就这个比较有用。 服务器电源管理 语法 使用 SSH 界面登录 iDRAC &g[......]

Read more

Tags:

ubuntu10.04+scribe安装配置

十月 19th, 2011 | 2 Comments | Posted in Ubuntu | 阅读次数: 57

Author:gaojinbo Time:2011-10-19 scribe就不用介绍了,网上很多资料,下面文档很方便ubuntu+scribe安装,希望对大家有帮助。scribe只负责接收消息,日志分析程序还需要自己写。 1.安装[......]

Read more

Tags:

Screen来替换nohup来管理会话

十月 18th, 2011 | 1 Comment | Posted in Centos, Ubuntu | 阅读次数: 70

你是不是经常需要 SSH 或者 telent 远程登录到 Linux 服务器?你是不是经常为一些长时间运行的任务而头疼,比如系统备份、ftp 传输等等。通常情况下我们都是为每一个这样的任务开一个远程终端窗口,因为他们执行的时间太长了。必须等[......]

Read more

Tags:

shell命令的常用快捷键 实用

十月 18th, 2011 | No Comments | Posted in Centos, Debian, Ubuntu | 阅读次数: 28

下面是一些shell的常用快捷键,快捷键玩熟悉了在一定程度上是可以提高工作效率滴… Ctrl + a 切换到命令行开始 Ctrl + e 切换到命令行末尾 Ctrl + l 清除屏幕内容 Ctrl + u 清除光标[......]

Read more

Tags:

Linux被arp攻击解决办法

十月 18th, 2011 | No Comments | Posted in 5.安全, Centos, Debian, Ubuntu | 阅读次数: 31

很多时候,我们的WEB服务器被挂马,上服务器检查发现代码又正常,这种情况是arp挂马,是同网段机器伪装网关的arp攻击,通过下面方法可以查出哪台机器有问题: 1、使用 tcpdump 抓包 tcpdump -qne arp

通过上面抓[......]

Read more

Tags:

通过sh脚本检查500台服务器初始密码是否修改

九月 20th, 2011 | No Comments | Posted in Shell, Ubuntu | 阅读次数: 23

Author:gaojinbo Time:2011-09-20 Email:admin@gaojinbo.com 安装系统的时候都设置了初始密码,配置好系统后都需要修改,手里有500台服务器,难免有忘记修改的时候,通过下面方[......]

Read more

Tags:

ubuntu 10.04下修改时区

九月 6th, 2011 | 1 Comment | Posted in Ubuntu | 阅读次数: 34

Author:gaojinbo Time:2011-09-06 很多时候我们安装ubuntu的时候都是选择了默认的时区,安装好后时间就不对了,通过下面方法,轻松修改。 1.登录控制台ssh   2.修改,输入下面命令[......]

Read more

Tags: