2013年6月21日
摘要: mount -t cd9660 /dev/acd0 /cdromg_vfs_done():acd0[READ(offset32768, length=204]error =5mount_cd9660:/dev/acd0:Input/output error修改/etc/fstab表,noauto去掉,ro改成rw,或许不改也是可以的。 阅读全文
posted @ 2013-06-21 18:36 语辰 阅读(333) 评论(0) 推荐(0) 编辑
摘要: mount -a 阅读全文
posted @ 2013-06-21 18:34 语辰 阅读(2035) 评论(0) 推荐(0) 编辑
摘要: # cd linux_base-f10/# make install clean===> linux_base-f10-10_7 linuxulator is not (kld)loaded.*** Error code 1解决办法:kldload linux 再重新执行makeinstall clean命令即可。 阅读全文
posted @ 2013-06-21 18:32 语辰 阅读(471) 评论(0) 推荐(0) 编辑
摘要: http://sourceforge.net/projects/mysql-python/?source=dlp 阅读全文
posted @ 2013-06-21 18:07 语辰 阅读(164) 评论(0) 推荐(0) 编辑
摘要: /etc/portsnap.conf 里面更改 SERVERNAME=portsnap.hshh.org portsnap的命令比较少 fetch 获取数据 extract 释放全部ports update 更新ports 第一次使用可以 portsnap fetch extract 以后使用可以 portsnap fetch update 如果写在cron可以用 portsnap cron update***************************************************http://gentoolinux.blogbus.com/logs/40504926. 阅读全文
posted @ 2013-06-21 18:04 语辰 阅读(1362) 评论(0) 推荐(0) 编辑
摘要: 最小化安装完成freebsd后,ifconfig查看不到ip地址修改/etc/rc.conf添加ifconfig_网卡名称="DHCP"重启服务器或者sh /etc/rc.conf 阅读全文
posted @ 2013-06-21 16:48 语辰 阅读(480) 评论(0) 推荐(0) 编辑
摘要: python hasattr():判断一个对象是否含有某种属性>>> help(hasattr) Help on built-in function hasattr in module __builtin__: hasattr(...) hasattr(object, name) -> bool Return whether the object has an attribute with the given name. (This is done by calling getattr(object, name) and catching exceptions.) &g 阅读全文
posted @ 2013-06-21 10:55 语辰 阅读(368) 评论(0) 推荐(0) 编辑
摘要: * * * * * command分 时 日 月 周 命令 阅读全文
posted @ 2013-06-21 10:15 语辰 阅读(162) 评论(0) 推荐(0) 编辑
摘要: -z 字符串为"null",即是指字符串长度为零。 阅读全文
posted @ 2013-06-21 10:10 语辰 阅读(6470) 评论(0) 推荐(0) 编辑
摘要: {a+=substr($14,1,1)}END{a=(a=="")?0:a;print a}'对a进行累加,如果最后a=0的话,结果为0,否则为a,最后输出a 阅读全文
posted @ 2013-06-21 10:03 语辰 阅读(353) 评论(0) 推荐(0) 编辑
摘要: NF表示列数,不等于1表示列数不为1列 阅读全文
posted @ 2013-06-21 10:00 语辰 阅读(118) 评论(0) 推荐(0) 编辑