Max TreeGiven an integer array with no duplicates. A max tree building on this array is defined as follow:The root is the maximum number in the arrayT...
分类:
其他好文 时间:
2015-06-11 18:58:01
阅读次数:
228
mysql 5.6安装好之后,是默认root用户的密码为空的,此时为了安全性需要修改密码不为空,修改方法为:cmd或者mysql 5.6 command line client登陆之后,输入一下命令:use mysqlupdate user set password=PASSWORD('123456...
分类:
数据库 时间:
2015-06-11 18:53:25
阅读次数:
202
Hadoop集群中,使用DNS而不是hosts来访问服务器。 1. 安装bind软件 用root用户运行: yum -y install bind* 2. 配置named.conf文件 vi /etc/named.conf 修改以下部分: listen-on port 53 { any; }; al...
分类:
其他好文 时间:
2015-06-11 18:49:07
阅读次数:
132
在Linux系统中,如何删除一个卷组(VG)呢? 下面我总结了一下如何删除卷组(VG)的具体步骤,仅供参考,如有不足,敬请指出。谢谢!在下面的例子中,我想删除卷组VolGroup05。 步骤1: 查看卷组(VG)相关信息,如下所示 [root@getlnx01uat ~]# df -hFilesys...
分类:
系统相关 时间:
2015-06-11 18:20:08
阅读次数:
250
1. xml
<com.torv.lijian.touchclickdemo.MyRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/rl_root"
...
分类:
其他好文 时间:
2015-06-11 16:59:34
阅读次数:
119
如果使用非root帐号下去创建文件的方式其去创建文件是有问题的(没有权限)解决方法:首先切换到root用户的权限下面去工作su root输入你的密码然后 vim /etc/sudoers近期之后进行编辑的模式,如果发现这个文件的权限不够,那么则使用chmod来修改该文件的权限找到 root ALL=...
分类:
系统相关 时间:
2015-06-11 16:42:53
阅读次数:
138
今天因工作需要开启linux系统的桌面环境,使用startx未成功,报如下错误:[root@5201351 /]# startxxauth: creating new authority file /root/.serverauth.2002xinit: No such file or dire.....
分类:
系统相关 时间:
2015-06-11 16:27:07
阅读次数:
840
编辑sudo gedit /etc/exports加入/home/lbl/targetfs *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)重启服务sudo service portmap restart sudo service...
分类:
其他好文 时间:
2015-06-11 16:08:52
阅读次数:
135
1 抓包原理 tcpdump(需Root用户运行)拦截和显示发送或收到过网络连接到该机器的TCP/IP和其他数据包。简单说就监控手机进出网络数据。2 方法优劣2.1优点 1.手机数据包无遗漏2.2缺点 1.不能实时抓包 2.电脑需要安装Android SDK 3.测试手机需要获取root权限 4.....
分类:
移动开发 时间:
2015-06-11 16:06:52
阅读次数:
146
通配符是一种特殊语句,用来模糊搜索文件。当查找文件夹或目录时,可以使用它来代替一个或多个真正字符通配符:*:匹配任意长度的任意字符(包令0个字符)[root@fengtt]#ls
ababbabcabmxab#如有文件
[root@fengtt]#lsab*
ababbabcabm#匹配以ab开头后面跟着任意字符
[root@fengtt..
分类:
系统相关 时间:
2015-06-11 14:53:34
阅读次数:
137