需求场景描述 查找出除已知文件外的文件 办法: [root@VM_58_118_centos test]# find ./ -type f ! -name TPS650_ALL_sv5.1.1_fv1.0.0_pv1.0.6_15752678845473.zip ! -name TPS781_ALL ...
分类:
系统相关 时间:
2019-12-11 17:32:51
阅读次数:
115
nutanix@NTNX-XXXX-A-CVM:IP:~$ncchealth_checksrun_all#####################################TIMESTAMP:12/11/201911:11:51AM####################################ncc_version:3.8.0.1-e1c40011clusterid:4371306
分类:
其他好文 时间:
2019-12-11 12:49:48
阅读次数:
147
安装mariadb后,使用远程连接时 密码没有问题 但是每次打开都报这个错误: 这个错误是在进行远程连接的时候密码正确, 但是,进行远程授权的时候授权密码错误。 在数据库中执行下述代码即可: GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY ...
分类:
数据库 时间:
2019-12-10 20:55:07
阅读次数:
140
需要在/etc/sudoers中配置。 这个文件的权限是r/r/n,配置之前需要加写权限。 sudo chmod u+w /etc/sudoers 免密码的配置可以找到样例 %wheel ALL=(ALL) NOPASSWD: ALL %应该是指组,没有验证,我是直接写了自己的用户名。 既然原来权限 ...
分类:
系统相关 时间:
2019-12-10 15:28:33
阅读次数:
312
原题链接在这里:https://leetcode.com/problems/diagonal-traverse/ 题目: Given a matrix of M x N elements (M rows, N columns), return all elements of the matrix i ...
分类:
其他好文 时间:
2019-12-10 13:02:21
阅读次数:
98
Problem Statement Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. Example 1: Input: [ [ 1, 2, ...
分类:
其他好文 时间:
2019-12-10 12:49:52
阅读次数:
109
# Python连接Redis连接配置系统环境:OS:Oracle Linux Enterprise 5.6redis:redis-2.6.8python:Python-2.7.3redis的python包版本:redis-2.7.2.tar前提条件:1.确保Redis已成功安装并且正确配置,参考文... ...
分类:
编程语言 时间:
2019-12-10 01:18:39
阅读次数:
116
#处理员工数据source="7782,clark,manager,sales,5000$7934,miller,salesman,sales,3000"source1=source.split("$")print(source1)#保存所有解析后的员工信息,key是员工编号,value是信息all_emp={}foriinrange(0,len(source1)):e=source1[i].sp
分类:
其他好文 时间:
2019-12-09 19:03:24
阅读次数:
83
#!/bin/bash #统计当前文件夹(包括子文件夹)下.sh脚本有效代码行数,不包括注释,和空行 #所有行 MY_LIST_VAR=`egrep -c -h -R --include="*.sh" ^.*$` #echo $MY_VAR MY_ALL_COUNT=0 #所有空行 MY_LIST_ ...
分类:
其他好文 时间:
2019-12-09 14:10:49
阅读次数:
106
react-starter-projects These are repositories that you copy and modify to create your own React app. Pick a starter project with all the features you ...
分类:
其他好文 时间:
2019-12-09 14:06:25
阅读次数:
104