Chinaunix首页 | 论坛 | 博客
  • 博客访问: 422251
  • 博文数量: 121
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 540
  • 用 户 组: 普通用户
  • 注册时间: 2012-01-16 16:28
文章分类

全部博文(121)

文章存档

2021年(3)

2018年(1)

2017年(5)

2016年(9)

2015年(23)

2014年(80)

我的朋友

发布时间:2015-01-08 11:36:56

mysql> create table test1(id int unsigned not null,first_name varchar(30) not null,last_name varchar(30) not null,joined date not null,primary key(id),index(id));Query OK, 0 rows affected (0.02 sec)mysql> show create table test1;+-------+----------------------------------------------------------.........【阅读全文】

阅读(1038) | 评论(0) | 转发(0)

发布时间:2014-12-08 10:00:10

find /opt/name -type d -name "*sd" |xargs rm -rvf 批量去掉指定类型的文件的权限 :find /opt/name -type f -name "*.php"  -exec chmod a-x {} ;find /opt/name -type f -name "*.php"  -ok chmod a-x {} ;find /opt/name -type f -name "*.php" |xargs  chmod a-x {} ;......【阅读全文】

阅读(928) | 评论(0) | 转发(0)

发布时间:2014-12-04 16:30:06

......【阅读全文】

阅读(941) | 评论(0) | 转发(0)

发布时间:2014-11-09 23:15:36

服务器宕机原因很多,资源不足、应用、硬件、系统内核bug等,以下一个小例子服务器宕机了,首先得知道服务器宕机的时间点,然后分析日志查找原因1.last reboot 此命令可以查看主机起来的时间,不是宕机的时间reboot system boot 2.4.........【阅读全文】

阅读(1656) | 评论(0) | 转发(0)

发布时间:2014-11-08 23:17:23

通过修改proc系统的drop_caches清理free的cache$echo 3 > /proc/sys/vm/drop_cachesdrop_caches的详细文档如下:Writing to this will cause the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free.To free pagecache:* echo 1 > /proc/sys/vm/drop_cachesTo.........【阅读全文】

阅读(943) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册