摘要: 1、防火墙状态、启动、关闭 systemctl status | start | stop firewalld 2、防火墙端口 1) 查看防火墙全部开放端口 firewall-cmd --zone=public --list-ports 2) 永久 (开放|关闭) 端口 firewall-cmd - 阅读全文
posted @ 2021-02-22 17:42 itur 阅读(133) 评论(0) 推荐(0)
摘要: 1、生成密钥 :ssh-keygen 1) 公钥、私钥会生成在 /root/.ssh目录下;默认ras加密 2) 指定密钥路径,文件名 ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key 3) 其他加密算法 ssh-keygen -t rsa|dsa|ed2 阅读全文
posted @ 2021-01-27 16:15 itur 阅读(168) 评论(0) 推荐(0)
摘要: 1、查看变量 :set 2、删除变量 :unset 变量名 3、变量赋值 :var1=`cat test.txt | grep -w "this is a test"` 1) 变量名=值,之间不要有空格,不然变量名会被当做命令 2) 如果将某个命令的结果赋值给变量,用 `` 引起来 3) grep全 阅读全文
posted @ 2021-01-25 12:21 itur 阅读(305) 评论(0) 推荐(0)
摘要: 1、安装 unzip zip apt-get install zip 或者 yum install -y unzip zip 2、安装 rz sz yum -y install lrzsz 3、安装 nodejs, npm (免编译) 1) 下载安装包(tar.xz) :https://nodejs 阅读全文
posted @ 2021-01-14 10:57 itur 阅读(286) 评论(0) 推荐(0)
摘要: 1、设置github个人令牌 1) 登录github后,点击个人头像 ——> Settings ——> Developer settings ——> Personal access tokens ——> Generate new token 2) 输入token名,选择授权范围(repo全选,adm 阅读全文
posted @ 2021-01-11 16:51 itur 阅读(821) 评论(0) 推荐(0)
摘要: 在maven的配置文件 maven/conf/setting.xml 的 <mirrors> 标签对里添加要设置的 mirror <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org 阅读全文
posted @ 2021-01-11 16:27 itur 阅读(826) 评论(0) 推荐(0)
摘要: 1、查看所有容器 docker ps -a 2、进入容器 docker exec -it 容器ID /bin/bash 或 docker exec -ti 容器ID /bin/sh 3、退出镜像 exit 或 ctrl+d 快捷键 4、将容器中文件拷贝到物理机,物理机上执行 docker cp 容器 阅读全文
posted @ 2021-01-07 18:33 itur 阅读(72) 评论(0) 推荐(0)
摘要: 1、直接在POM文件中映入本地包 <dependency> <groupId>随意</groupId> <artifactId>随意</artifactId> <scope>system</scope> <systemPath>YourPath/xxx.jar</systemPath></depen 阅读全文
posted @ 2020-11-25 14:55 itur 阅读(317) 评论(0) 推荐(0)
摘要: 1、JMenter中参数使用可配置,线程数 - ${__P(threadCount,1)}、持续时间 - ${__P(duration,60)} 2、命令:jmeter -n -t xxxxx.jmx -JthreadCount=100 -Jduration=600 -l result.jtl -e 阅读全文
posted @ 2020-11-12 10:35 itur 阅读(212) 评论(0) 推荐(0)
摘要: 1、查询数据库,获取字段值用 #{} SELECT `name` FROM table WHERE id=#{id} 2、查询数据库,查询字段为变量中获取,使用 ${} SELECT ${FieldName} FROM ${TableName} WHERE ${FieldName}=#{value} 阅读全文
posted @ 2020-10-30 10:59 itur 阅读(111) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示