今天发现/usr/local/mysql/var下很多mysql-bin.000001、mysql-bin.000002文件,GOOGLE之。。这是数据库的操作日志,例如UPDATE一个表,或者DELETE一些数据,即使该语句没有匹配的数据,这个命令也会存储到日志文件中,还包括每个语句执行的时间,也...
分类:
数据库 时间:
2014-07-16 23:23:33
阅读次数:
307
默认情况下,访问网络端口需要root权限,而wireshark的只是/usr/share/dumpcap的一个UI,/usr/share/dumpcap需要root权限,所以没法non-root用户无法读取网卡列表。解决办法很简单,sudo wireshark但是wireshark官方不推荐这么做:...
分类:
其他好文 时间:
2014-07-16 23:08:12
阅读次数:
153
#!usr/bin/env python#-*-coding:utf-8-*-#复制文件import sysimport osimport tempfile'''注意区分 路径 目录和文件的区别。路径=目录 并 文件文件 是包含其路径的 分为 “绝对路径文件”,“相对路径文件”'''#得到执...
分类:
其他好文 时间:
2014-07-10 11:59:51
阅读次数:
272
亲测安装php1、tar zvxf php-5.3.8.tar.gz 2、cd php-5.3.83、./configure \ --prefix=/usr/local/php \--with-mysql=/usr/local/mysql \ --with-apxs=/usr/local/apach...
分类:
Web程序 时间:
2014-07-10 10:30:29
阅读次数:
261
在了解/etc/ld.so.conf.d/目录下文件的作用之前,先介绍下程序运行是加载动态库的几种方法:第一种,通过ldconfig命令 ldconfig命令的用途, 主要是在默认搜寻目录(/lib和/usr/lib)以及动态库配置文件/etc/ld.so.conf内所列的目录下, 搜索出可共享的动...
分类:
其他好文 时间:
2014-07-07 19:50:18
阅读次数:
198
#!usr/bin/perluse Statistics::R;#---new函数my $r=Statistics::R->new();#---send,read函数$r->send(qq'a=c(1,2,3,4); b=mean(a);\n c=sqrt(b) ;print(c)');my $re...
分类:
其他好文 时间:
2014-07-07 17:41:16
阅读次数:
580
#!/usr/bin/env pythonimport wxclass MainWindow(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, title=title, si...
分类:
其他好文 时间:
2014-07-07 17:37:18
阅读次数:
142
#!/bin/bash
#
#
#thisisinstallkeepalived+lvs-DR
#
#
tar_dir=/usr/src
configure_yum()
{
echo"[rhel-local]">/etc/yum.repos.d/rhel-local.repo
echo"baseurl=file:///media/Server">>/etc/yum.repos.d/rhel-local.repo
echo"enabled=1">>/etc/yum.repos..
分类:
其他好文 时间:
2014-06-28 06:08:16
阅读次数:
373
参考模版/usr/share/doc/vsftpd-2.0.5/EXAMPLE/VIRTUAL_USERS)1.创建虚拟账户[root@localhost~]#yuminstalldb4-utils[root@localhost~]#vim/etc/vsftpd/vlogintomcat #账户名称123456 #密码jerry #账户名称654321 #密码[root@localhost~]#db_load-T-thash-f/etc/vsftpd/vl..
分类:
系统相关 时间:
2014-06-28 06:03:14
阅读次数:
531
一、编译安装apache1、安装环境:yuminstallgccgcc-c++openssl-devellibtool-y2、安装apr、apr-util及pcretarjxfapr-1.5.1.tar.bz2cdapr-1.5.1./configure--prefix=/usr/local/aprmake&&makeinstalltarjxfapr-util-1.5.3.tar.bz2cdapr-util-1.5.3./configure--prefix=/..
分类:
数据库 时间:
2014-06-28 00:58:44
阅读次数:
697