当前位置:网站首页>Summary of some precautions and problems in the use of tars framework (mengxinxiang)
Summary of some precautions and problems in the use of tars framework (mengxinxiang)
2022-06-23 03:25:00 【nlmeo】
1. Server size , If you want to use ECs to learn tars Frame words , It is recommended that the memory should be at least 4G above ...
Subject adopted docker+ Virtual network mode tars Deployed on the same server , For the first deployment 1 nucleus 2G Cloud server , After deployment docker Three even (tars/node、tars/framework、mysql5.6) in the future , Use Xshell The response of the link discovery server has been very slow , Sure enough , The second example service in the development department HelloClient When , Insufficient memory found during check , The title is upgraded to 2 nucleus 4G after , After releasing the third Service , When uploading the release package , The server exploded decisively . Of course, there may be something wrong with my use , If a little friend can hold on , Please ( On his knees ).
2、 About the link being rejected
Problem description :
HelloHttp Has been successfully released , Access path denied , see docker It is found that the port has been opened , The intranet cannot be connected , The internal access of the container still cannot be connected , Baidu modifies various network cards , Configuring the agent still fails
Solution :
Be sure to test the service link first , If the link fails, the probability is the problem of the code , It's really important !!!
3、 About HelloHttp Configuration problem of
The official configuration is as follows
In the actual development process, we are generally used to selecting
Generated pom file
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spring-boot.version>2.3.7.RELEASE</spring-boot.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.7.RELEASE</version>
<configuration>
<mainClass>com.example.demo.DemoApplication</mainClass>
</configuration>
<executions>
<execution>
<id>repackage</id>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
And then , Adding an official configuration file will result in an error , Because the template generated by default already contains boot Dependence , If you don't want to make big changes
It's all small problems , But if you don't pay attention, it will cause a lot of trouble ( Configured the wrong card all day ), The partners can discuss problems together , Finally, of course, it started successfully ≧◔◡◔≦
边栏推荐
- Account protection and use scheme
- Copy system disk
- Configuring multi cluster management using kubectl
- 1 approved, edit again
- Golang resource embedding scheme
- Eight models of data analysis: detailed explanation of RFM model
- Construction and exploration of vivo database and storage platform
- Concept and function of ES6 symbol
- Learning record -- superficial understanding of unity decoupling
- Why can only a small number of condition type prices be maintained in me12 of SAP mm?
猜你喜欢

Encryption related to returnee of national market supervision public service platform
![Analysis on the development prospect of China's brain computer interface industry in 2021: wide application prospect, sustained and rapid growth of market scale [figure]](/img/84/192d152ceb760264b6b555b321f129.jpg)
Analysis on the development prospect of China's brain computer interface industry in 2021: wide application prospect, sustained and rapid growth of market scale [figure]
![[quick view] Analysis on the development status and future development trend of the global and Chinese diamond cultivation industry in 2021 [figure]](/img/f1/972a760459a6d599b5681aa634df09.jpg)
[quick view] Analysis on the development status and future development trend of the global and Chinese diamond cultivation industry in 2021 [figure]
![Analysis on the development status of China's watch industry in 2021: a large number of electric watches are imported [figure]](/img/ca/672bfe49c8123da8679b2abeb43a2e.jpg)
Analysis on the development status of China's watch industry in 2021: a large number of electric watches are imported [figure]

Detailed discussion on modular architecture design of MCU firmware

Analysis on the development of China's graphene industry chain in 2021: with the support of energy conservation and environmental protection policies, the scale of graphene industry will continue to e

Analysis on the development of duty-free industry in Hainan Province in 2021: the implementation of the new policy makes the duty-free market in Hainan more "prosperous" [figure]
![Analysis on development history, industrial chain, output and enterprise layout of medical polypropylene in China in 2020 [figure]](/img/28/ebfc25ec288627706e15a07e6bdb77.jpg)
Analysis on development history, industrial chain, output and enterprise layout of medical polypropylene in China in 2020 [figure]

Gakataka student end to bundle Version (made by likewendy)

Fetch request details
随机推荐
Decentralized networks are not decentralized
Dynamic filling of drop-down box with micro overlap
PowerShell automated reinstallation of cloudbase init to version 1.1.2
Learning record -- superficial understanding of unity decoupling
Batch generation of Codabar codes using Excel files
How to generate IATA barcode in batch through TXT file
On the way home from the Spring Festival transportation, traffic visualization will escort you
CFs of cifs/smb protocol is mounted on win10/2019. Error 1272 is reported. The security policy prevents unauthenticated guest access
Communication between containers flannel and calico comparison
How to batch print serial and repeated barcode data
WordPress modifying fixed links and pseudo statics
Installing serverstatus probe using pagoda
Get method of fetch request and data of formdata type submitted by post
China's economy has entered the stage of "the third mock examination coexisting", and JD and Shopify have jointly arranged global DTC
JSON. Function of the stringify() optional parameter
Easygbs solution to video playback failure caused by tcp/udp configuration problems
Xiamen's hidden gaopuge smart park has finally been uncovered
Flowable refactoring process editor to obtain user information
Build a weather forecast applet using a widget
How to print multiple barcode labels on one sheet of paper