上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 44 下一页
摘要: linux系统启动过程中给出错误: There are offline or missing virtual drives with preserved cache. Please check the cables and ensure that all drives are present.Pre 阅读全文
posted @ 2012-11-28 14:37 念槐聚 阅读(8899) 评论(0) 推荐(0) 编辑
摘要: 如下,要杀9005端口占用的进程: kill -9 `lsof -i:9005 | awk 'NR-1{print $2}'` 端口不同,自己替换即可。 根据端口查进程:lsof -i:9005 根据进程查端口:ps -ef | grep ${PIDname} pkill -f ${PIDname} 阅读全文
posted @ 2012-11-28 11:11 念槐聚 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 局域网或者服务器使用时候,可能会有未知IP也来访问。影响我们目前的工作,这时候不知道此IP是谁的,也就只能“痛下杀手”,踢掉他。方法如下:一.踢掉某正在连接IP的方法:1、运行 "who" 查看登录用户的IP和TTY2、运行 "pkill -KILL -t $TTY" ,$TTY为上面所查到的结果。 阅读全文
posted @ 2012-11-27 18:56 念槐聚 阅读(976) 评论(0) 推荐(0) 编辑
摘要: linux下定时关机1.添加或者编辑一个计划任务:crontab -e2.进入编辑状态,输入下述代码:----------------------------------------------------#Power off this machine everyday or weekday#hao.chuang@eisoo.comSHELL=/bin/bashPATH=/sbin:/bin:/usr/sbin:/usr/bin25 22 * * 0-5 sync && shutdown -h now# 每星期日到星期五 晚10:25 关机55 22 * * 6 sync &a 阅读全文
posted @ 2012-11-16 14:10 念槐聚 阅读(1837) 评论(0) 推荐(0) 编辑
摘要: Linux 一个配置文件确实会导致图形化界面无法启动。export DISPLAY=localhost:1.0 也存在问题,后寻找此文件,贴于机器,即可用。该配置文件为:/etc/X11/xorg.conf ,内容如下:xorg.conf(5) xorg.conf(5)NAME xorg.conf and xorg.conf.d - configuration files for Xorg X server... 阅读全文
posted @ 2012-11-15 08:59 念槐聚 阅读(2517) 评论(0) 推荐(0) 编辑
摘要: 周末机器断电之后,导致周一开机出现问题。df -lh 查询结果:root@ubuntu:~# df -lhFilesystem Size Used Avail Use% Mounted on/dev/sdb1 28G 5.3G 21G 21% /udev 7.9G 4.0K 7.9G 1% /devtmpfs 3.2G 332K 3.2G 1% /runnone 5.0M 0 5.0M 0% /run/locknone 7.9G 0 7.9G 0% /run/shm/dev/sdb3 939M 41M 851M 5% /boot/dev/sdb4 6.5G 530M 5.6G 9% /var看 阅读全文
posted @ 2012-11-05 11:28 念槐聚 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 桥接br0 配置如下: [root@localhost network-scripts]# cat ifcfg-em1DEVICE=em1TYPE=Ethernet#HWADDR=**:**:**:**:**:**ONBOOT=yesNM_CONTROLLED=noBRIDGE=br0 [root@ 阅读全文
posted @ 2012-09-17 16:00 念槐聚 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Linux操作命令集合 参考:http://www.cnblogs.com/rollenholt/archive/2012/09/01/2667184.html 正在运行的内核和系统信息 # uname -a # 获取内核版本(和BSD版本) # lsb_release -a # 显示任何 LSB 阅读全文
posted @ 2012-09-07 18:34 念槐聚 阅读(1651) 评论(0) 推荐(0) 编辑
摘要: 一.远程连接一台机器,不必输入密码: 链接之后执行的脚本: 二.su_all.sh 1.rootTohao.sh 2.haoTolocaluser.sh 3.haoToroot.sh 阅读全文
posted @ 2012-09-06 17:49 念槐聚 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 一个简单的命令,为输出的文件加上行号:MegaCli -cfgdsply -a0 | awk '{print NR-1,$0}'cat test.py | awk '{print NR-1, $0}'当然在vi中比较简单了::set nu 打开行号:set nonu 关闭行号:set nu ic 也可打开行号或者如下方式:cat -n su_localuser.sh或者如下:MegaCli -cfgdsply -a0 | cat -n简单的小命令,或许可以帮点小忙。 阅读全文
posted @ 2012-09-06 15:05 念槐聚 阅读(236) 评论(0) 推荐(0) 编辑
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 44 下一页