问题:Access denied for user 'root'@'localhost' (using password: YES)打开MySQL目录下的my.ini文件(Linux的话是/etc/my.cnf),在文件的最后添加一行“skip-grant-tables”,保存并关闭文件。2、重启M... ...
分类:
数据库 时间:
2017-07-01 10:03:01
阅读次数:
200
加入sudo权限方法: 须要在/etc/sudoers文件里加入想要条目以实现权限。 其加入有两种方法:(在root用户环境下执行的) 1:直接使用visudo(在root状态下),vim /etc/sudoers(首先要用root用户改动该文件的读写权限) 2:使用visudo命令改动 加入的位置 ...
分类:
系统相关 时间:
2017-07-01 09:57:23
阅读次数:
173
public class Solution { public int smallestFactorization(int a) { if (a factor = new ArrayList(); for (int i = 9; i > 1; i--) { while (a % i == 0) { f... ...
分类:
其他好文 时间:
2017-07-01 09:56:46
阅读次数:
140
Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a ...
分类:
其他好文 时间:
2017-07-01 01:08:01
阅读次数:
232
滑动冲突说实在的就是子view的滑动事件与父view的滑动事件的监听都在同时触发,而导致的activity的点击事件或者布局出问题 常见的就有Scrollerview与Scrollerview与listview或者gridview发生冲突,listview是RecycleView等等的代表。话说,其 ...
分类:
其他好文 时间:
2017-07-01 01:07:37
阅读次数:
214
ubuntu 12.04设置静态ip 1. 配置静态ip地址 $sudo vi /etc/network/interfaces 原有内容只有如下两行: auto lo iface lo inet loopback 向末尾追加以下内容: auto eth0 iface eth0 inet static ...
分类:
系统相关 时间:
2017-07-01 01:07:29
阅读次数:
202
一、在windows中添加snmp 在服务中添加public和接受服务器的IP地址。 二、在zabbix-server服务器中安装net-snmp软件 1、修改配置文件 [root@zabbix-server tools]# vi /etc/snmp/snmpd.conf #重启服务 2、测试客户端 ...
user安全级别 user安全级别 第一步:安装samba3(如果已经安装就跳过这一步) [root@rhce2 /]# yum groupinstall "CIFS file server" 第二步:修改配置文件 [root@rhce2 /]# vi /etc/samba/smb.conf 将se ...
1.安装VMware2.安装CentOS6.53.配置网络a.修改/etc/sysconfig/network-scripts/ifcfg-eth0配置文件,添加如下内容
DEVICE=eth0
HWADDR=00:0C:29:96:01:6B
TYPE=Ethernet
UUID=41cbd943-024b-4341-ac7a-e4d2142b4938
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=xxx.xxx..
分类:
其他好文 时间:
2017-06-30 22:35:27
阅读次数:
176
任意门 为了在漫长得飞行旅途中娱乐,Alex和Fedor发明了如下的一个简单的双人游戏。游戏是: 首先, Alex画一个有权无向图。该图中可能有多重边(多重边的权值可能相同或者不同)。 然后,Fedor选取该图的一个生成树。如果该树是这个图的最小生成树,则Fedor获胜。否则,Alex获胜。 首先, ...
分类:
其他好文 时间:
2017-06-30 22:32:00
阅读次数:
251