11 2012 档案

摘要: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 念槐聚 阅读(9160) 评论(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 念槐聚 阅读(221) 评论(0) 推荐(0) 编辑
摘要:局域网或者服务器使用时候,可能会有未知IP也来访问。影响我们目前的工作,这时候不知道此IP是谁的,也就只能“痛下杀手”,踢掉他。方法如下:一.踢掉某正在连接IP的方法:1、运行 "who" 查看登录用户的IP和TTY2、运行 "pkill -KILL -t $TTY" ,$TTY为上面所查到的结果。 阅读全文
posted @ 2012-11-27 18:56 念槐聚 阅读(1048) 评论(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 念槐聚 阅读(1855) 评论(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 念槐聚 阅读(2553) 评论(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 念槐聚 阅读(465) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示