一、下载jdk安装包 wget https://imcfile.oss-cn-beijing.aliyuncs.com/shizhan/file/liaoshixiong/jdk-8u231-linux-x64.tar.gz` 二、解压安装 tar zxvf jdk-8u231-linux-x64. ...
分类:
系统相关 时间:
2020-07-12 15:06:13
阅读次数:
96
#!/bin/bash#服务名称SERVER_NAME=jenkins-test# 源jar路径,mvn打包完成之后,target目录下的jar包名称,也可选择成为war包,war包可移动到Tomcat的webapps目录下运行,这里使用jar包,用java -jar 命令执行 JAR_NAME=j ...
分类:
系统相关 时间:
2020-07-12 14:36:31
阅读次数:
73
记录当前用户的UID。root用户值为0。 [root@localhost script]# echo $UID 0 用于保存用户主目录的完全路径名 [root@localhost script]# echo $HOME/root Bash Shell的全路径 [root@localhost scr ...
分类:
系统相关 时间:
2020-07-12 14:23:58
阅读次数:
82
当我们安装好git的时候,可以通过git bash来执行git命令。但是当我们打开vs code的时候,在终端窗口中执行git命令,却提示我们 :'git' 不是内部或外部命令,也不是可运行的程序,如图 有经验的同学们会立刻想到npm不是内部或外部命令。没错,就是环境变量的问题,解决这个问题,只需要 ...
分类:
其他好文 时间:
2020-07-12 14:07:10
阅读次数:
72
cmd,powershell,git-bash设置代理的方式是不一样的powershell 可以使用$env:https_proxy = "127.0.0.1:1080"$env:http_proxy = "127.0.0.1:1080"其它参考 https://zcdll.github.io/20... ...
- name: disable selinux shell: setenforce 0 ignore_errors: yes - name: disable selinux conf lineinfile: path: /etc/selinux/config regexp: '^SELINUX=.* ...
分类:
其他好文 时间:
2020-07-11 19:40:00
阅读次数:
79
在不知道包名的情况下,在手机里先打开要测试的APP,执行如下命令:adb shell dumpsys window w |findstr \/ |findstr name=;获取包名 C:\Users\del>adb shell dumpsys window w |findstr \/ |finds ...
分类:
移动开发 时间:
2020-07-11 18:55:10
阅读次数:
207
Description Name: dpwwn: 2 Date release: 8 Aug 2019 DHCP service: Disabled Static IP address: 10.10.10.10/24 Goal: Get the root shell i.e.(root@dpwwn- ...
分类:
其他好文 时间:
2020-07-11 17:44:46
阅读次数:
69
cut -d: -f1,3,7 /etc/passwd |sort -t: -k2 -n | tail -1 ...
分类:
系统相关 时间:
2020-07-11 17:16:02
阅读次数:
69
查看手机电量信息:adb shell dumpsys battery 设置电池为充电状态——adb shell dumpsys battery set status 2 设置电池为非充电状态——adb shell dumpsys battery set status 1 设置电量百分比——adb s ...
分类:
移动开发 时间:
2020-07-11 16:59:32
阅读次数:
93