Deploy the SpringBoot project to the server

1, SpringBoot project environment IntelliJ IDEA 2018.3.2Mysql 5.1 2, Tencent cloud CentOS 7.6 image server Students can apply for Tencent cloud student exclusive, 27 yuan for three months 3, Attention (1) XShell Modify host namehostnamectl set-hostname master #Set to master name View current hostnamehostname After modifying the hos ...

Posted by hypertech on Fri, 04 Mar 2022 22:56:20 +0100

grafana+prometheus+nginx monitor load balancing

1, Install java project Install jdk and tomcat. Please refer to the article Configuring multiple tomcat on one linux server 2, Installing nginx Please refer to the article Linux Installation nginx steps 3, Install nginx VTS export 1. Install git yum install git -y 2. Install nginx VTS export git clone https://gitee.com/mirrors/nginx-mo ...

Posted by RGBlackmore on Fri, 04 Mar 2022 22:54:58 +0100

springboot distributed micro service E-commerce mall learn from me about the use of springcloud Apollo in Java

This section mainly explains how to use Apollo in ordinary Java projects and Spring Boot. Used in ordinary Java projects Add Maven dependency of Apollo Client. The code is as follows. <dependency> <groupId>com.ctrip.framework.apollo</groupId> <artifactId>apollo-client</artifactId> <version&gt ...

Posted by Flinch on Fri, 04 Mar 2022 22:17:39 +0100

Detailed explanation of linux dmsetup management LVM command

Connection reference: https://access.redhat.com/documentation/zh-cn/red_hat_enterprise_linux/7/html/logical_volume_manager_administration/dmsetuphttps://man7.org/linux/man-pages/man8/dmsetup.8.html 1. Introduction The dmsetup command is a command line wrapper used to communicate with Device Mapper. You can use the info, ls, status, and ...

Posted by chriztofur on Fri, 04 Mar 2022 20:50:04 +0100

Standard c library: fputc, fgetc, feof

1,Understand the usage of standard c library fopen (click to jump) 2. fputc writes a character to the file #include <stdio.h> int main() { FILE *fp; fp = fopen("./test.txt","w+"); //int fputc(int c, FILE *stream); fputc('a',fp); fclose(fp); return 0; } 3. fputc writes a string to a ...

Posted by kpulatsu on Fri, 04 Mar 2022 20:31:51 +0100

7 minutes to learn how to use anonymous pipe() (complete code test attached)

1, To create an anonymous pipe: #include <unistd.h> int pipe(int pipefd[2]); Function: create an anonymous pipeline for inter process communication; Parameter: int pipefd[2] this array is an outgoing parameter; pipefd[0] corresponds to the reading end of the pipeline; pipefd[1] corresponds to the write end of the pipeline; Return va ...

Posted by casty on Fri, 04 Mar 2022 20:09:05 +0100

Method of capturing hydrological data through picture recognition

In 2018, due to the development of a large water conservancy Province Hydrological data website After the revision, the hydrological data of the province are changed into small pictures with a height of 13px. For example, the three pictures below represent the station name, upstream water level and downstream water level respectively: After d ...

Posted by rbudj on Fri, 04 Mar 2022 18:22:50 +0100

Write integer, structure, structure array, linked list to file

catalogue 1. Write an integer to the file 2. Write a structure to the file 3. Write structure array to file 4. Write linked list to file 5. Summary 1. Write an integer to the file First create an empty file: file Then the code starts #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdio.h ...

Posted by shwathi on Fri, 04 Mar 2022 17:22:49 +0100

Linux - interprocess communication (pipeline)

premise Process multiple business modules at the same time. Multiple business modules may need to transfer data to each other or need synchronous control. Two entities need to communicate with each other and must have resources that can be shared. Files on disk: -- > IO processing is slow and out of sync. Application scenario of process co ...

Posted by generic88 on Fri, 04 Mar 2022 14:34:27 +0100

Ubuntu action-04 SUDO settings

Under linux system, ordinary users cannot directly execute the commands under the authority of root user. If you want ordinary users to execute the operation commands that only root user can execute, sudo is needed. Before sudo was written around 1980, the general way of user management system was to use su to switch to super user. Ho ...

Posted by sigkill-9 on Fri, 04 Mar 2022 12:58:06 +0100