错误1:org.apache.zookeeper.KeeperException$SessionExpiredException: KeeperErrorCode = Session expired 错误2:Reported time is too far out of sync with mast ...
分类:
其他好文 时间:
2019-07-10 16:44:02
阅读次数:
343
Linux查看CPU和内存使用情况:http://www.cnblogs.com/xd502djj/archive/2011/03/01/1968041.html在做Linux系统优化的时候,物理内存是其中最重要的一方面。自然的,Linux也提供了非常多的方法来监控宝贵的内存资源的使用情况。下面的清 ...
分类:
系统相关 时间:
2019-05-16 17:50:29
阅读次数:
183
原文 1.切换到root用户下,怎么切换就不用说了吧,不会的自己百度去. 2.添加sudo文件的写权限,命令是: chmod u+w /etc/sudoers 3.编辑sudoers文件 vi /etc/sudoers 找到这行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(A ...
分类:
其他好文 时间:
2019-05-01 18:53:45
阅读次数:
145
当出现这种情况时,可以用如下方法解决。 首先重启虚拟机,当出现如下界面时,将鼠标进入Linux系统,一定要在这三秒内按下回车键。 进入如下界面 按e之后,会进入如下界面 用上下键跳至第二行,按e进入编辑模式后,在最后输入single。(注意,这里single之前一定要有空格) 之后按b重启,修改密码 ...
分类:
其他好文 时间:
2019-03-28 00:36:43
阅读次数:
215
ubuntu 下普通用户用 sudo 执行命令时报 "xxx is not in the sudoers file.This incident will be reported" 错误,解决方法是在 /etc/sudoers 文件里给该用户添加权限。操作过程如下: ~~~ 1. 切换到 root 用 ...
分类:
系统相关 时间:
2019-02-26 13:51:40
阅读次数:
289
Linux中普通用户用sudo执行命令时报”xxx is not in the sudoers file.This incident will be reported”错误,解决方法就是在/etc/sudoers文件里给该用户添加权限。如下: 1.切换到root用户下 方法为直接在命令行输入:su, ...
分类:
系统相关 时间:
2019-02-20 10:02:00
阅读次数:
193
3.1 Application settings 前面的学习中,我们在创建tornado.web.Application的对象时,传入了第一个参数——路由映射列表。实际上Application类的构造函数还接收很多关于tornado web应用的配置参数。 参数: debug,设置tornado是否 ...
分类:
其他好文 时间:
2019-02-07 10:51:10
阅读次数:
205
这道题的描述有一些不清楚,主要是If two nodes have the same position, then the value of the node that is reported first is the value that is smaller. 这一句,应该是先按照层排序,同层的 ...
分类:
其他好文 时间:
2019-02-05 22:30:15
阅读次数:
234
1.前言 自己在学习linux系统,把碰到的命令总结下. 2.命令行 linux密码默认不显示,是为了安全考虑,所以没必要非要设置成显示的. root权限显示# XXX is not in the sudoers file. This incident will be reported. 权限不够. ...
分类:
系统相关 时间:
2018-12-30 02:55:03
阅读次数:
239
打开cmd,输入 where python查询Python安装路径 进入Python安装路径中的Lib/site-packages文件夹中,添加 graphics.py 文件,将以下红色文本添加进graphics.py文件中即可 # graphics.py"""Simple object orien ...
分类:
编程语言 时间:
2018-10-25 19:29:37
阅读次数:
1465