linux script introduction

ls #List all files starting with a and o [root@sh02-hap-bss-prod-consul03 ~]# ls anaconda-ks.cfg nss-pam-ldapd-0.9.8-1.gf.el7.x86_64.rpm openldap-clients-2.4.44-21.el7_6.x86_64.rpm original-ks.cfg tools [root@sh02-hap-bss-prod-consul03 ~]# ls [ao]* anaconda-ks.cfg openldap-clients-2.4.44-21.el7_6.x86_64.rpm original-ks.cfg #[0-9] for a ...

Posted by hostcord on Thu, 09 Jan 2020 01:33:25 -0800

Snapshot backup using Linux LVM

1. Overview of LVM The full name of LVM, Logical Volume Manager, is a flexible management mechanism for disk partitions provided by Linux.To understand LVM, you first need to start with a problem that Linux users often encounter, which is, "How should I properly evaluate the size of different partitions to appropriately allocate hard disk ...

Posted by jabbaonthedais on Sun, 05 Jan 2020 17:59:44 -0800

unittest introduces pytest framework to realize abnormal screenshot and error rerun

The unit test framework has been used to write test scripts. If you want to add the function of exception screenshot and automatic rerun, you have implemented it on junit in java before The idea is to judge whether the result fails in tearDown, save the screenshot, or rewrite the rule, and try the place where it is executed I ...

Posted by saish on Fri, 03 Jan 2020 15:47:59 -0800

Using maven release plugin

In order to facilitate development, we usually use SNAPSHOT version. After stage development, we need to change SNAPSHOT to release version (such as 1.0.0.SNAPSHOT - "1.0.0) to prevent online environment from being damaged. The manual step is to delete the SNAPSHOT, then tag the code (for backup), then mvn deploy uploads the release versio ...

Posted by jbx on Thu, 02 Jan 2020 08:25:16 -0800

There is no exception in the local operation of the Spring Boot project, and an error is reported when deploying to the Linux server: java.lang.ClassNotFoundException

One background Recently, we are using spring boot to develop project A, which introduces module B developed by small partners. It starts service locally and runs well. When it is deployed to the server, an error will be reported as soon as it runs: Caused by: java.lang.ClassNotFoundException. Note: there are many reasons for this error, such as ...

Posted by landonmkelsey on Sun, 29 Dec 2019 00:20:28 -0800

LINQ learning note 4: LINQ to OBJECT operation file directory

This note is excerpted from: https://www.cnblogs.com/liqingwen/p/5816051.html Record the learning process for future reference. Many file system operations are essentially queries, so LINQ is a good way to use them. I. query files with specified attributes or names This example shows how to find all files in the specified directory tree with th ...

Posted by Chotor on Fri, 27 Dec 2019 05:52:12 -0800

Spring Cloud Micro Services: Service Registration and Discovery

Eureka is Netflix's open source service registration and discovery component. Common Service Registration and Discovery Components Zookeeper,Eureka Eureka Service Registration and Discovery Principles Services are registered with the registry Get additional registry service configurations Create Eureka Server Create a project using Spring In ...

Posted by kankersite on Thu, 19 Dec 2019 21:06:38 -0800

Ceph block equipment introduction and installation configuration

1: rbd introduction A block is a sequence of bytes (for example, a 512 byte block of data). Block based storage interface is the most commonly used method to store data using rotating media (such as hard disk, CD, floppy disk or even traditional 9-track tape). The ubiquitous block device interface makes the virtual block device an ideal candi ...

Posted by lynosull on Thu, 19 Dec 2019 03:21:43 -0800

Apache Maven from Getting Started to Ascending

If you like, order a compliment! GitHub Project JavaHouse Synchronized recording 1 Introduction Maven should be an essential tool in everyday Java development, and of course Gradle is used.So what exactly is Maven?Isn't it just a dependent import tool?I believe many people feel the same way as me.But in general, what you feel is often unrelia ...

Posted by dennissanche on Thu, 12 Dec 2019 18:03:12 -0800

KubeSphere log backup and recovery practice

Why log backup is needed KubeSphere log system uses the log collection and storage scheme of Fluent Bit + ElasticSearch, realizes the life cycle management of Index through the cursor, and cleans the long-term logs regularly. For scenarios with log audit and disaster recovery requirements, the default 7-day log retention policy of KubeSphere is ...

Posted by Naoa on Thu, 12 Dec 2019 03:06:36 -0800