上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 38 下一页
  2013年11月18日
摘要: sshd-generate/etc/init.d/ssh restart 阅读全文
posted @ 2013-11-18 09:34 语辰 阅读(153) 评论(0) 推荐(0) 编辑
  2013年11月14日
摘要: cd /dev/.udev/lstmp-rules--test***********************************************for file in /dev/.udev/tmp-rules--*;do dest=${file##*tmp-rules--} echo $destdone 阅读全文
posted @ 2013-11-14 14:12 语辰 阅读(153) 评论(0) 推荐(0) 编辑
  2013年10月24日
摘要: 环境:系统bsd,标准安装,ports安装的mysql。主172.16.21.126 从172.16.21.128vi /etc/rc.conf 添加 mysql_enable="YES"cp /usr/local/share/mysql/my-large.cnf /etc/my.cnfvi /etc/my.cnflog-bin= mysql-bin #打开logbin选项以能写到slave的 I/O线程;server-id=1 #表示是本机的序号为1,一般来讲就是master的意思.binlog-do-db= lixl #表示同步lixl数据库;grant replica 阅读全文
posted @ 2013-10-24 17:02 语辰 阅读(632) 评论(0) 推荐(0) 编辑
  2013年10月12日
摘要: http://blog.sae.sina.com.cn/archives/881 阅读全文
posted @ 2013-10-12 13:45 语辰 阅读(176) 评论(0) 推荐(0) 编辑
  2013年9月30日
摘要: 是个自定义类型的语句,typedef用来定义类型的别名,statusi就相当于inti 阅读全文
posted @ 2013-09-30 11:25 语辰 阅读(3111) 评论(0) 推荐(0) 编辑
摘要: #摘自《妙趣横生的算法(c语言版)》在链表使用完毕后建议销毁它,因为链表本身会占用内存空间,如果一个系统使用很多的链表,而使用完毕后又不及时的销毁它,那么这些垃圾空间积累很多,最终可能导致内存泄露甚至程序崩溃,因此应该养成及时销毁不用链表的习惯。销毁一个链表list的代码描述voiddestorylinklist(linklist *list){ linklist p,q; p=*list; while(p){ p=q->next; free(p);}*list-NULL;}函数destorylinklist()的作用是销毁一个链表list,它包括以下步骤:1,首先将*list的内容.. 阅读全文
posted @ 2013-09-30 10:50 语辰 阅读(1356) 评论(0) 推荐(0) 编辑
  2013年9月29日
摘要: select TABLE_NAME ,UPDATE_TIME from information_schema.tables where TABLE_SCHEMA='monster2'; 阅读全文
posted @ 2013-09-29 17:01 语辰 阅读(493) 评论(0) 推荐(0) 编辑
  2013年9月27日
摘要: 1.添加硬盘2.查看现在的硬盘3.执行sysinstall命令4.5.6.按下enter键7.A,C,Q8.9.10.C,Q11.newfs /dev/ad012.cd / &&mkdir /testfs13.mount /dev/ad0 /testfs14.vi /etc/fstab添加如下行15.reboot系统 阅读全文
posted @ 2013-09-27 13:38 语辰 阅读(304) 评论(0) 推荐(0) 编辑
  2013年9月26日
摘要: At the start, mark all system disks as empty. Repeat the following command for each hard drive:dd if=/dev/zero of=/dev/ad0 count=2 阅读全文
posted @ 2013-09-26 17:58 语辰 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 系统环境:freebsd在zfs文件系统上的文件拷贝到ufs文件系统之后,大小翻了一倍。初步断定是文件系统导致的。不知道以后还会不会有新发现。come on! 阅读全文
posted @ 2013-09-26 17:41 语辰 阅读(1252) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 38 下一页