摘要: 改变store下面的所有.php文件属主为ftpd[root@www ~]# chgrp ftpd /store/*.php[root@www ~]# chown ftpd /store/*.php // 添加vsftp账户start //查看Linux版本[root@localhost /]# c 阅读全文
posted @ 2017-03-09 17:27 今天、天气晴 阅读(6696) 评论(0) 推荐(0) 编辑
摘要: 1 PHP 的 HMAC_SHA1算法 实现 2 http://www.tuicool.com/articles/7322A3 3 4 function getSignature($str, $key) { 5 $signature = ""; 6 if (function_exists('hash_hmac')) { 7 $signat... 阅读全文
posted @ 2017-03-09 17:02 今天、天气晴 阅读(5208) 评论(0) 推荐(0) 编辑
摘要: //多表关联查询数量select user, t1.count1, t2.count2from user tleft join ( select user_id, count(sport_type) as count1 from sport group by user_id) t1on t.id = 阅读全文
posted @ 2017-03-09 16:56 今天、天气晴 阅读(9043) 评论(0) 推荐(0) 编辑
摘要: linux, kill掉占用60%多cpu的进程,几秒后换个pid 和 command 又出现?快速清理木马流程。假设木马的名字是xysbqaxjqy,如果top看不到,可以在/etc/init.d目录下面查看 1、首先锁定三个目录,不能让新木马文件产生chmod 000 /usr/bin/xysb 阅读全文
posted @ 2017-03-09 16:51 今天、天气晴 阅读(1668) 评论(0) 推荐(0) 编辑
摘要: top -u root 查看系统进程service network restartservice iptables restartservice sshd restartservice nginx restartservice mysqld restart chkconfig 阅读全文
posted @ 2017-03-09 16:49 今天、天气晴 阅读(3062) 评论(0) 推荐(0) 编辑
摘要: 1.配置IP地址vi /etc/sysconfig/network-scripts/ifcfg-eth0 ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=static DNS1=223.5.5.5 IPV6INIT=no USERCTL=no IPADDR=111.41 阅读全文
posted @ 2017-03-09 16:47 今天、天气晴 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1.新建/test/killcpu.sh shell脚本 并授予权限0755#!/bin/bashps axf -o "pid %cpu" | awk '{if($2>=50.0) print $1}' | while read prociddokill -9 $prociddone 2.安装cro 阅读全文
posted @ 2017-03-09 16:41 今天、天气晴 阅读(1648) 评论(0) 推荐(0) 编辑