
运维
文章平均质量分 59
搬砖ing
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
sudo 与 su 命令
ThesudocommandThesudocommand allows you to run programs with the security privileges of another user (by default, as the superuser). It prompts you for your personal password and confirms your r...转载 2019-12-02 16:24:32 · 261 阅读 · 0 评论 -
Excel技巧
Excel技巧两列数据A(从A1开始到An),B(从B2开始到Bn)。 高亮显示A列中所有不在B列中出现的数据。然后将这些数据筛出去.1, Ribbon -> 条件格式 -> 新建规则 -> 样式:经典 -> 使用公式确定单元格式2, 使用countif函数 countif($B$2:$B$n,A1) = 03,高亮效果出现后,Ribbon -> 筛选...原创 2019-08-15 21:28:05 · 776 阅读 · 0 评论 -
docker networking docker 网络配置
一个container访问另外一个container实现方法: 创建一个docker网络,然后将两个container加入到这同一个网络,docker之间就能通过name或者IP访问彼此。例如:创建一个redis服务器container,一个redis客户端container,然后实现redis客户端访问redis服务器。#创建网络docker network create -d ...原创 2019-06-24 14:52:27 · 534 阅读 · 0 评论 -
bash examples
read line by line from a file ( $1 is the file path)while IFS read -r LINEdo echo $LINEdone < $1read line by line from stdin or pipeline you may say.while IFS= read -r LINE do ...原创 2019-06-20 00:26:21 · 199 阅读 · 0 评论 -
maven-assembly-plugin实现不同环境的定制化部署
最近一个高性能API项目中需要针对DEV,STG,PRO三个环境实现定制化部署。背景:这三个环境的依赖,file path等存在各自的差异,CI,CD的时候需要按照不同的环境定制话不同的部署(主要是不同的环境,项目的配置文件不同)。其实这个是违背CI,CD的产品包与配置文件相独立这个原则的。HowTo链接:http://maven.apache.org/plugins/maven-原创 2018-01-27 10:08:36 · 2347 阅读 · 0 评论 -
jacoco代码覆盖率配置的maven配置
基本配置<plugins>............................ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire...原创 2018-05-11 15:23:18 · 4918 阅读 · 1 评论 -
Maven自动远程部署配置
<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="原创 2018-06-04 16:18:51 · 344 阅读 · 0 评论 -
ElasticSearch基础
在Ubuntu Server(16 LTS)上安装ES。#安装JDKsudo apt-get update && sudo apt-get install default-jdk#wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -# 安装https库访...原创 2018-09-23 16:58:00 · 140 阅读 · 0 评论 -
删除Git历史中的大文件
Git并不适合存储大的非文本文件,比如说图片,声音,二进制文件等等。如果不小心将该类文件提交了,单纯在文件系统中删除它并提交是无法从提交历史中删除他们的。这个会让库变得臃肿庞大,影响效率。有两种方法可以将提交历史中的文件删除。1, BFG ( 这个是开源网友贡献的工具)2, git自带的git-filter-branch命令。git-filter-branch功能强大,但是使用...原创 2018-09-19 18:31:53 · 1357 阅读 · 0 评论 -
MySQL备忘录
1, 将精度为微妙的数字转化为Unix时间。selectFROM_UNIXTIME(`cache_value`/1000)AS'date_formatted' from table_A;Myql FROM_UNIXTIME函数只支持到精度秒, 给它微秒的数字转化时,返回的是NULL。所以需要将处理为精度秒后再转化。2, 查找 summ 字段值超过小数点后两位的所有记录...原创 2018-09-27 19:50:37 · 158 阅读 · 0 评论 -
vmware在NAT联网模式下为guest操作系统分配静态IP
首先打开vmware的“编辑”-》“虚拟网络编辑器”,记录一下DHCP的子网IP,DHCP起始与结束IP地址范围。2, guest操作系统是Ubuntu Server 1.6 TLS版本。修改 /etc/network/interfaces文件, 废止DHCP,设置静态IP地址。3, 重启网络服务。sudo /etc/init.d/networking res...原创 2018-10-24 23:27:27 · 201 阅读 · 0 评论 -
Unix系统命令学习 - pfctl
pfctl -- control the packet filter (PF) and network address translation (NAT) device控制包过滤(PF)与NAT设备。Synopsis 【简介】【介绍】DESCRIPTION The pfctl utility communicates with the packet filter ...原创 2019-02-24 23:37:08 · 993 阅读 · 0 评论 -
基于Maven的Spring boot的app的tar包部署
总所周知,基于Maven 的Spring boot的 app的部署一般是通过 spring boot maven plugin 将所有的依赖打成一个可执行jar包。这个虽然能简化部署,但是相关的配置文件等全部打进一个jar里面就使得每次需要修改配置文件调整app的时候,就需要重新发布一次。这个比较麻烦,而且时间成本较高。如果有CI工具,如:jenkins可以自动化的话,好一些,否则...原创 2017-12-29 11:34:57 · 1587 阅读 · 0 评论