??
rpm -ivh MySQL-client...... 安装MySQL客户端的命令,没写完整
1 ls
2 cd
3 ls
4 ls -l
5 vim
6 cd
7 ls -l
8 shutdowm
9 man
10 shutdown
11 ...
分类:
系统相关 时间:
2014-06-07 02:07:50
阅读次数:
567
lxc-start: cgroup is not mounted在执行lxc-start时出现上述问题是因为cgroup在宿主机上没有挂载。fix:vim /etc/fstabnone /sys/fs/cgroup cgroup defaults 0 0重启机器即可...
分类:
其他好文 时间:
2014-06-05 10:49:06
阅读次数:
270
Linux命令:vi全局替换方法
语法为 :[addr]s/源字符串/目的字符串/[option]
全局替换命令为::%s/源字符串/目的字符串/g
[addr]: 表示检索范围,省略时表示当前行。
如:“1,20” :表示从第1行到20行;
“%” :表示整个文件,同“1,$”;
“. ,$” :从当前行到文件尾;
s :表示替换操作
[optio...
分类:
系统相关 时间:
2014-06-05 09:23:09
阅读次数:
354
----------------------------------------------------hello world-------------------------------------------
linux 创建如下文件 vim hello
#! /bin/bash //告诉Shell 使用哪个Shell 程序
#Display a line //#表示...
分类:
其他好文 时间:
2014-06-05 02:41:41
阅读次数:
393
最近在给android 4.3系统进行root时候,一直出现如下的红色权限问题 :
7.695741] Freeing init memory: 236K
[ 8.555286] init: cannot find '/system/bin/dbus-daemon', disabling 'dbus'
[
8.566954] init: cannot execve('/s...
分类:
其他好文 时间:
2014-06-05 01:02:36
阅读次数:
358
Given an array S of n integers, are there elements
a, b, c, and d in S such that a +
b + c + d = target?
Find all unique quadruplets in the array which gives the sum of target.
Note:
...
分类:
其他好文 时间:
2014-06-05 00:34:06
阅读次数:
240
24 Point game
时间限制:3000 ms | 内存限制:65535 KB
难度:5
描述
There is a game which is called 24 Point game.
In this game , you will be given some numbers. Your task is to find an expressi...
分类:
其他好文 时间:
2014-06-04 21:06:57
阅读次数:
295
最近测试vertica列式数据仓库的需要,需将原来几台运行MySQL服务的linux服务器中的逻辑卷降为物理分区并重新创建文件系统。
服务器置维护
备份原来的数据
停掉mysql服务
卸载逻辑卷
sudo umount /dev/mapper/VolGroup01-LogVol00
sudo vim /etc/rc.local
注释掉
mount -o noat...
分类:
其他好文 时间:
2014-06-03 04:41:05
阅读次数:
336
报这个错的话:基本都是配置出错,具体配置看下面。
AndroidManifest.xml 文件:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mayi.test.dao"
android:versionCode="1"
an...
分类:
移动开发 时间:
2014-05-31 22:00:03
阅读次数:
434
全部删除:按esc后,然后dG全部复制:按esc后,然后ggyG全选高亮显示:按esc后,然后ggvG或者ggVG在win中使用是全选,如果需要在vim中使用自增。使用下面的设置方法:
1, 在vim73文件夹中找到mswin.vim屏蔽操作。修改方法 " CTRL-A is Select...
分类:
其他好文 时间:
2014-05-31 20:17:54
阅读次数:
304