摘要: 查看 access.Log 文件ip统计 cat access.log |awk '{print $1}'|uniq -c |sort -k1,1nr 去掉r则从高到低 cat access.log |awk '{print $3}'|sort|uniq -c|sort -rn|wc -l以前用... 阅读全文
posted @ 2014-02-03 13:28 神神的蜗牛 阅读(1402) 评论(1) 推荐(0) 编辑
摘要: 修改主机名,编辑 network 文件vi /etc/sysconfig/network修改以下参数: NETWORKING=yesNETWORKING_IPV6=yesHOSTNAME=www.ai9475.comGETWAY=98.126.67.169 阅读全文
posted @ 2014-02-03 13:24 神神的蜗牛 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1. 查看系统内核信息 uname -a2. 操作系统版本 cat /etc/issue | grep Linux 3. 查看CPU型号 cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 4. 当前系统运行位数 32 或者 64 位 ... 阅读全文
posted @ 2014-02-03 13:20 神神的蜗牛 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 将 hebaodans.com 目录打包为 hebaodans.rar # rar a hebaodans.rar ./hebaodans.com/ 解压 hebaodans.rar 到当前目录 # rar x hebaodans.rar CentOS rar unrar 安装 # ... 阅读全文
posted @ 2014-02-02 22:00 神神的蜗牛 阅读(262) 评论(0) 推荐(0) 编辑
摘要: hwclock -r # 读取BIOS 时间 hwclock -w # 将当前系统时间写入BIOS date -s 2010/10/02 # 设置年月日 date -s 15:02:35 # 设置时分秒 /usr/bin/rdate r... 阅读全文
posted @ 2014-02-02 21:59 神神的蜗牛 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1、建用户: adduser snailz //新建用户 snailz passwd snailz //给用户 snailz 设置密码 2、建工作组 groupadd test //新建test工作组 3、新建用户同时增加工作组 useradd -g test snailz //新建 ... 阅读全文
posted @ 2014-02-02 21:58 神神的蜗牛 阅读(137) 评论(0) 推荐(0) 编辑
摘要: /abc, 向前查询abc ?abc, 向后查询abc n, 向前继续查询 N, 向后继续查询 老是忘记,简单记录下 阅读全文
posted @ 2014-02-02 21:56 神神的蜗牛 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 这是四五年以前做小说站采集图片时写过唯一一次 Python 代码 #!/usr/bin/python#-*-coding:utf-8-*- import MySQLdb, os, socket, time;import MySQLdb.cursors;... 阅读全文
posted @ 2014-02-02 21:43 神神的蜗牛 阅读(270) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash base="/zsjdata/mysql/data"date=$(date +%Y%m%d)hour=$(date +%H)time=$(date +%H%M%S) charset="UTF8"username="root"password="sinykk... 阅读全文
posted @ 2014-02-02 21:40 神神的蜗牛 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 出现cd 等命令无法识别的原因可能是: 当前文件实在windows环境下编辑的其换行结尾是 \r\n 和linux环境的 \n 不一致导致错误, 最好在linux系统上通过 VI 命令新建文件,然后通过 SSH 将本地代码粘贴上去即可修复,我是这么搞定滴,实验通过啊,网上找了好半天都没找到... 阅读全文
posted @ 2014-02-02 21:38 神神的蜗牛 阅读(486) 评论(0) 推荐(1) 编辑