一.问题的提出/usr/local/webserver/mysql/bin/mysql -u root -h 172.29.141.112 -p -S /tmp/mysql.sockEnter password:ERROR 2003 (HY000): Can't connect to MySQL s...
分类:
数据库 时间:
2014-12-09 15:22:53
阅读次数:
231
linux cat,tac,more,less,head,tail,cut,sort,uniq,wc,tr命令的使用
cat:连接并显示,比如:[root@localhost~]#cat/tmp/sort.test
111
324
567
324
890
890
567
abc加上选项-n会显示行号:[root@localhost~]#cat-n/tmp/sort.test
1111
2324
3567
4324
5890
6890
7567
8abc加上-E选项会显示行尾符$:(linux中行尾符是$)root@localhost~]#cat-E/tmp..
分类:
系统相关 时间:
2014-12-09 01:57:25
阅读次数:
272
Reference:http://itlab.idcquan.com/linux/set/39862.html基本上就是三步:以编译安装codeblocks为例:首先解压源码包,假设解压到/tmp下1.终端运行./configure之后系统会自动检查编译环境,如果缺少部件会提示并且STOP。按照提示...
分类:
系统相关 时间:
2014-12-08 21:18:04
阅读次数:
202
php里面解决约瑟夫环还是比较方面的,但是下面的方法太费空间m = $m; $this->n = $n; } public function getKing(){ $mokeys = range(1, $this->n); $tmp = 0; while(count($mokeys)>1)...
分类:
Web程序 时间:
2014-12-08 20:58:18
阅读次数:
147
ORACLEInstallingPrerequisites交换分区大小要求:AvailableRAMSwapSpaceRequiredBetween1GBand2GB1.5timesthesizeoftheRAMBetween2GBand16GBEqualtothesizeoftheRAMMorethan16GB16GB临时文件目录/tmp至少需要1G大小,建议为4G。linux下可通过以下命令查看:free&grepSwapT..
分类:
数据库 时间:
2014-12-08 19:49:34
阅读次数:
291
#include #define LeftChild(i) ( 2 * ( i ))void PercDown( int A[] , int i , int N){ int Child; int Tmp ; for (Tmp = A[i]; LeftChild(i) A[...
分类:
编程语言 时间:
2014-12-08 17:27:16
阅读次数:
178
有两台linux,其中一台坏了,然后我将坏掉这台机器的硬盘挂到另外一台机器上了,我希望看到坏了这台机器的/tmp目录下的文件。整个过程如下:oginas:rootroot@XX.XX.XX.XX‘spassword:Lastlogin:FriDec514:47:422014fromchengmanyu.asiapacific.cpqcorp.net[root@localhost~]#fdi..
分类:
系统相关 时间:
2014-12-08 15:50:07
阅读次数:
470
c# 如何通过反射 获取\设置属性值//定义类public class MyClass{public int Property1 { get; set; }}static void Main(){MyClass tmp_Class = new MyClass();tmp_Class.Property...
---恢复内容开始---【刷root极路由固件】极壹s9003.exe傻瓜包。【刷openwrt】Winscp上传aaa.bin到/tmp目录。Rutty:cd /tmplsmtd write aaa.bin firmwarereboot【替换ppp.sh】Winscp替换/lib/netifd/p...
分类:
其他好文 时间:
2014-12-07 15:01:38
阅读次数:
323
#includedouble f(float x){ return x*x+x;}double definf(float a,float b,int n){ int k; double h,tmp; h=(b-a)*1.0/n; for(tmp=0,k=1;k0);}
分类:
编程语言 时间:
2014-12-06 16:32:45
阅读次数:
572