码迷,mamicode.com
首页 >  
搜索关键字:组改为 root    ( 51272个结果
剑指 Offer 68 - II. 二叉树的最近公共祖先/leetCode236. 二叉树的最近公共祖先
给定一个二叉树, 找到该树中两个指定节点的最近公共祖先。 百度百科中最近公共祖先的定义为:“对于有根树 T 的两个节点 p、q,最近公共祖先表示为一个节点 x,满足 x 是 p、q 的祖先且 x 的深度尽可能大(一个节点也可以是它自己的祖先)。” 示例 1: 输入:root = [3,5,1,6,2 ...
分类:其他好文   时间:2021-04-24 11:46:55    阅读次数:0
linux shell while循环
1、测试1 [root@centos7 test2]# i=0 [root@centos7 test2]# max=5 [root@centos7 test2]# while((i<max));do echo $i;((i++));done 0 1 2 3 4 ...
分类:系统相关   时间:2021-04-23 12:03:54    阅读次数:0
python zipfile
import os, zipfile def deflate(paths, zip_path): z = zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED, allowZip64=True, compresslevel=9) for path i ...
分类:编程语言   时间:2021-04-23 12:03:14    阅读次数:0
linux shell if语句
1、测试1 [root@centos7 test2]# ls a.txt [root@centos7 test2]# if [ -e a.txt ]; then echo "exist";else echo "no nxist"; fi exist [root@centos7 test2]# if ...
分类:系统相关   时间:2021-04-23 11:53:02    阅读次数:0
Prometheus部署 搭建监控系统二(基础篇)
Prometheus部署: 安装 go 语言环境 由于Prometheus是用golang开发的,所以首先安装一个go环境,Go语言是跨平台,支持Windows、Linux、Mac OS X等系统,还提供有源码,可编译安装 二进制包下载地址 wget https://dl.google.com/go ...
分类:其他好文   时间:2021-04-23 11:51:38    阅读次数:0
linux shell脚本中流程控制语句 if 、for、while、case
linux shell脚本中流程控制语句 if、for、while、case 1、if语句 [root@centos7 test2]# ls test.sh [root@centos7 test2]# pwd /home/test2 [root@centos7 test2]# cat test.sh ...
分类:系统相关   时间:2021-04-22 16:20:40    阅读次数:0
远程桌面连接
将设备连接网线, 登录路由器,查看设备IP 打开Xshell进行连接 用户名:root 密码:fa 连接成功 执行 apt-get install xrdp apt-get install vnc4server tightvncserver reboot 启动xrdp #/etc/init.d/xr ...
分类:其他好文   时间:2021-04-22 16:12:52    阅读次数:0
linux 系统中read命令
1、read从键盘读入 [root@centos7 test]# echo $a [root@centos7 test]# read a 123456 [root@centos7 test]# echo $a 123456 2、-p 参数 加入提示 [root@centos7 test]# unse ...
分类:系统相关   时间:2021-04-22 15:41:37    阅读次数:0
Linux
开机会启动许多程序。它们在Windows叫做"服务"(service),在Linux就叫做"守护进程"(daemon)。 最高权限账户为 root,可以操作一切! 关机指令为:shutdown ; sync 将数据由内存同步到硬盘中。shutdown 关机指令,你可以man shutdown 来看一 ...
分类:系统相关   时间:2021-04-22 15:15:12    阅读次数:0
XEN SERVER 7.2 中增加硬盘
很多服务器都会多块盘或者做了Raid的多个虚拟磁盘,而安装xenserver后,他只会默认挂载第一快盘,也就是安装xenServer系统的那块。 那剩余的其他盘,怎么挂载上去做虚拟机的存储用呢?或者后期新增一块磁盘该如何操作呢? 1、用命令查看下自己的host-uuid [root@xenserve ...
分类:其他好文   时间:2021-04-21 12:44:08    阅读次数:0
51272条   上一页 1 ... 24 25 26 27 28 ... 5128 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!