摘要: scp stalled through firewall, ssh no problem someone says: I have seen similar effects by several reasons: - disallow icmp and mtu mismatch between ne 阅读全文
posted @ 2017-04-10 16:45 karihou 阅读(1703) 评论(0) 推荐(0) 编辑
摘要: 做过Linux开发的人通常遇到过一个进程不能kill掉的情况,即使使用的是kill -9方式,而一般的教课书都只说kill -9能杀死任何进程,遇到这种情况时就会感觉到很矛盾,其它这也是正常的,通常有两种情况是不能kill掉的: 一是进程已经成为僵死进程,当它的父进程将它回收或将它的父进程kill掉 阅读全文
posted @ 2017-04-10 16:44 karihou 阅读(3038) 评论(1) 推荐(0) 编辑
摘要: 1、查看挂载时 [root@server1 ~]# mount /dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts 阅读全文
posted @ 2017-04-10 16:42 karihou 阅读(3081) 评论(0) 推荐(0) 编辑
摘要: [root@localhost sysbench]# sysbench --help | sed -n '/mysql options:/,/^$/p' mysql options: --mysql-host=[LIST,...] MySQL server host [localhost] --mysql-port=[LIST,...] MySQL... 阅读全文
posted @ 2017-04-07 22:07 karihou 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 原来硬盘是80G,现在新增加80G 步骤: 1.查看当前硬盘分区情况: linux-7q8i:~/Desktop # fdisk -l Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylind 阅读全文
posted @ 2017-03-27 20:38 karihou 阅读(242) 评论(0) 推荐(0) 编辑
摘要: alter user 'root'@'localhost' identified by 'root'; mysql> flush privileges; show variables like 'version%'; #使用grant方式创建一个新帐户fred,并设定密码 grant usage o 阅读全文
posted @ 2017-03-27 20:37 karihou 阅读(108) 评论(0) 推荐(0) 编辑
摘要: strip()默认删除空白字符(\n,\r,\t,' ') split()函数有split()和os.path.split()两种形式,默认分隔符为空格,但是不能为空("") 阅读全文
posted @ 2017-03-25 09:23 karihou 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 使proc预编译命令可用: 配置pcscfg.cfg文件: 测试源码: 阅读全文
posted @ 2017-03-13 17:23 karihou 阅读(1679) 评论(0) 推荐(0) 编辑
摘要: 遍历方法一: 阅读全文
posted @ 2017-03-13 16:52 karihou 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 报错: 解决 阅读全文
posted @ 2017-03-09 21:08 karihou 阅读(5097) 评论(0) 推荐(0) 编辑