20. mysqlmysql --host=127.0.0.1 --port=3306
--database=test --user=test --password=test --default-character-set=utf821.
脚本求两个文件的相同集合test1 test21 22 33...
分类:
系统相关 时间:
2014-06-08 21:20:54
阅读次数:
403
UbuntuNFS安装与配置一、NFS安装$ sudo apt-get install
nfs-kernel-server nfs-common portmap二、NFS配置2.1 配置/etc/exports文件$ sudo vim
/etc/exports在文件最后加入如下内容:{{/rootn...
分类:
其他好文 时间:
2014-06-08 21:12:39
阅读次数:
245
在linux下面工作,有些命令能够大大提高效率。本文就向大家介绍find、grep命令,他哥俩可以算是必会的linux命令,我几乎每天都要用到他们。本文结构如下:find命令find命令的一般形式find命令的常用选项及实例find与xargsgrep命令grep命令的一般形式grep正则表达式元字...
分类:
系统相关 时间:
2014-06-08 21:05:17
阅读次数:
346
原题地址:https://oj.leetcode.com/problems/sqrtx/题意:Implementint
sqrt(int x).Compute and return the square root
ofx.解题思路:实现开平方函数。这里要注意的一点是返回的时一个整数。通过这一点我们可...
分类:
编程语言 时间:
2014-06-08 21:04:38
阅读次数:
329
原题地址:https://oj.leetcode.com/problems/search-for-a-range/题意:Given
a sorted array of integers, find the starting and ending position of a given
target ...
分类:
编程语言 时间:
2014-06-08 21:03:21
阅读次数:
297
输出重定向$ ls -l > lsoutput
这条命令将ls命令执行后的结果输入出到lsoutput文件中。 在linux shell中使用符号 > ,符号在 文件已经存在时它会覆盖,需要使用set
-o noclobber(或set -C)命令设置noclobber选项,阻止重定向操作对一...
分类:
其他好文 时间:
2014-06-08 21:00:27
阅读次数:
382
摘自github语言无关类操作系统开源世界旅行手册鸟哥的Linux私房菜(简体)Linux
系统高级编程The Linux Command Line(中英文版)Linux 设备驱动(第三版)深入分析Linux内核源码UNIX
TOOLBOXWEB服务器Nginx开发从入门到精通(淘宝团队出品)版本控...
分类:
其他好文 时间:
2014-06-08 20:58:35
阅读次数:
701
原题地址:https://oj.leetcode.com/problems/sort-colors/题意:Given
an array withnobjects colored red, white or blue, sort them so that objects of
the same col...
分类:
编程语言 时间:
2014-06-08 20:56:32
阅读次数:
394
#include #include #include #include
"ringbuffer.h"static int b_flag = 0;pthread_mutex_t mutex =
PTHREAD_MUTEX_INITIALIZER;#define TX_LOCK(lock) pthr.....
分类:
系统相关 时间:
2014-06-08 20:45:34
阅读次数:
452
原题地址:https://oj.leetcode.com/problems/add-binary/题意:Given
two binary strings, return their sum (also a binary string).For example,a ="11"b
="1"Return"...
分类:
编程语言 时间:
2014-06-08 20:28:04
阅读次数:
300