环境vmware 15pro,windows10家庭版。出现原因:试用win10稳定版是否支持wsl2,在powershell管理员模式下运行命令 Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform 打开 ...
此文档主要为了自己查看方便,因为用git不是很多,但是又必须要用,其实挺简单的,节约自己以后的时间。 此操作的前提是已经在git中新建了项目 1. 首先在本地新建一个文件夹,把自己要上传的内容放到文件夹内。 2. 鼠标右键git bash here 3. 执行git init 4. 执行git cl ...
分类:
Web程序 时间:
2020-04-27 17:17:49
阅读次数:
66
#!/bin/bashforIPin`cat/root/Desktop/ip.txt`doping-c3-i0.2-w3$IP&>/dev/nullif[$?-eq0]thenecho"Thishost$IPisexisted"elseecho"Thishost$IPisn‘texisted"fidone
分类:
其他好文 时间:
2020-04-27 15:34:11
阅读次数:
187
Hive是什么? 个人理解是把存储在hdfs上的数据映射位一张数据库表,提供类sql(HQL)语句的查询,方便数据的分析,查询。另外一点就是自动的把HQL转化为MapRudecu、Tez、Spark执行。 Hive的架构 用户接口:可以是hive shell,jdbc(java 访问hive),we ...
分类:
其他好文 时间:
2020-04-27 15:21:33
阅读次数:
59
PWN之ROP系列 基础ROP 32位 ROP 题目来源 PlaidCTF 2013: ropasaurusrex 检查 开了NX,所以用ROP。 看代码 简单的栈溢出。使用 函数泄露一个libc函数的地址,进而泄露libc,计算 函数地址和 字符串地址,然后构造 去getshell。 exp PS ...
分类:
其他好文 时间:
2020-04-27 15:12:09
阅读次数:
108
1 while true循环: while : do 内容 done 2 while循环 while [ $i -le 100 ] do let sum=sum+$i let i+=2 done -eq 等于;-ne 不等于;-gt 大于;-lt 小于;-ge 大于等于;-le 小于等于; 3 $? ...
分类:
系统相关 时间:
2020-04-27 13:51:32
阅读次数:
67
创建用户有两条命令:adduer和useradd,对应着两条删除用户的命令:deluser和userdel。 这两种命令之间的区别: adduser:会自动为创建的用户指定主目录、系统shell版本,会在创建时输入用户密码。 useradd:需要使用参数选项指定上述基本设置,如果不使用任何参数,则创 ...
分类:
系统相关 时间:
2020-04-27 13:50:51
阅读次数:
104
一、关库修改文件位置 1.连接到数据库 [oracle@linux]$ ./sqlplus /nolog SQL> conn / as sysdba 2. 查看数据文件位置 SQL> select name from v$datafile; FILE_NAME /oradata/PMPTGDB/us ...
分类:
数据库 时间:
2020-04-27 13:42:48
阅读次数:
73
#! /bin/bash read -p "请输入要查询的用户名:" A echo " " n=`cat /etc/passwd | awk -F: '$1~/^'$A'$/{print}' | wc -l` if [ $n -eq 0 ];then echo "该用户不存在" echo " " e ...
分类:
其他好文 时间:
2020-04-27 13:39:05
阅读次数:
56
#!/bin/bash bash_path=$(cd "$(dirname "$0")";pwd) source $bash_path/base.config echo "该脚本将会把" $serverA "机器上的" $document "目录同步到" $serverB "机器上"; read - ...
分类:
其他好文 时间:
2020-04-27 13:33:48
阅读次数:
69