Screen来替换nohup来管理会话

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

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

Read more

Tags:

shell命令的常用快捷键 实用

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

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

Read more

Tags:

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

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

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

Read more

Tags:

6.1奉献双色球必赚方案 shell脚本分析

六月 1st, 2011 | 19 Comments | Posted in Shell | 阅读次数: 508 次

Author:gaojinbo Time:2011-6-1 Email:admin@gaojinbo.com 6.1儿童节特别贡献一个双色球购买方案,购彩有风险,请谨慎。 很多朋友都在购买彩票-双色球,每次都是机选或自选,[......]

Read more

Tags:

linux批量修改文件名的脚本 实用

五月 27th, 2011 | 14 Comments | Posted in Shell | 阅读次数: 456 次

Author:gaojinbo Time:2011-05-27 Email:admin@gaojinbo.com 由于有个朋友的很多图片,文件名字里面包含了很多特殊字段,找我帮忙去掉,在linux下可以通过shell脚本很容[......]

Read more

Tags: ,

Linux下用脚本获取未注册的3位字母域名

五月 17th, 2011 | 1 Comment | Posted in PHP, Shell | 阅读次数: 439 次

Author:gaojinbo Time:2011-5-17 Email:admin@gaojinbo.com 由于有个朋友想注册个好点的域名,一个一个查询太麻烦,很多都被别人注册了。 通过下面的方法,可以方便地查出3位[......]

Read more

Tags: ,

linux下用iptables搭建DMZ网络 限制上网

十二月 19th, 2010 | 1 Comment | Posted in Iptables | 阅读次数: 266 次

Author:gaojinbo Time:2010-12-18 需求: 1.局域网所有电脑禁用访问外网 2.解决上网问题 3.保证内网数据安全 4.网上查找的资料方便局域网使用    [......]

Read more

Tags: ,

lighttpd异常自动重启脚本

十二月 13th, 2010 | 3 Comments | Posted in Lighttpd, Shell | 阅读次数: 196 次

Author:gaojinbo Time:2010-12-13 很多时候,我们运行的web会异常,出现500,503之类的错误,可以自己写个脚本每10分钟检测一次,如果异常就自动重启。 方便,实用,你可以根据以下脚本简单修改即[......]

Read more

Tags: ,

Linux生成随机密码

十月 28th, 2010 | 2 Comments | Posted in Shell | 阅读次数: 242 次

Author:gaojinbo Time:2010-10-28 1.安装expect yum install expect     2.命令行使用 mkpasswd -l 32 -d 5 -C 5[......]

Read more

Tags: ,

shell脚本实现每秒执行一次任务

十月 21st, 2010 | 5 Comments | Posted in Shell | 阅读次数: 628 次

Author:gaojinbo Time:2010-10-19 有时候我们需要每秒执行一次命令,通过linux自带的cron却不能实现,新版的cron据说可以精确到秒。 很简单的,通过下面的方法,你也能每秒执行一次自己想要的任[......]

Read more

Tags: ,