;
Next, modify the application.properites Consul required configuration information, such as: (The following configuration is the default value)
12
spring.cloud.consul.host=localhostspring.cloud.consul.port=8500
To this end, we have completed the conversion of Eureka-client to a service provider based on consul service governance. We have already mentioned that the interface of service discovery DiscoveryCli
and add Jimu dependenciesInstall-Package JimuAdd service, reference space: using Jimu;[JimuServiceRoute("api/{Service}")] // RPC 调用路径 public class UserService : IJimuService { [JimuService(CreatedBy = "grissom")] // 指定服务的元数据, 该服务调用路径为 api/user/getname?id= public string GetName(string id) { return $"user id {id}, name enjoy!"; } }3. MicroServices Service-side projectCreate a. Net Core 2.0-based console project and add Jimu.server and Jimu.Common.Discovery.ConsulIntegrati
/docker2.pid" \ G "/var/lib/docker2"--exec-root= "/var/run/docker2"--clus ter-store=consul://$IP: 8500 \--cluster-advertise= $IP: 2376 # Start a docker daemon and bind to a specific port Docke
Rdaemon-h tcp://$IP: 5000--storage-opt dm.fs=xfs \ P "/var/run/docker1.pid" \ g "/var/lib/docker1" \ --exec-root= "/var/run/docker1 # and start another daemon Docker daemon-h tcp://$IP: 5001--storage-opt dm.fs=xfs \ S
Devicemapper \--storage-opt dm.thi
| |-- ConnectionStrings
| \-- Settings
\-- Prod
|-- ConnectionStrings
\-- Settings
It provides a REST API for easy querying, and key is included in the query path. For example, the query that gets the configuration of APP1 in the Dev environment is as follows: Get HTTP
://8500/v1/kv/app1/dev/settings
The response is as follows:
HTTP/1.1 200 OK
Content-Type: application/json
X-Consul-Index: 1071
X-Consul-Knownleader: true
databaseMysql> SELECT * FROM Employees; -Query all field contents of table employees, select is Query commandmysql> SELECT datafields from table; -Query the field list datafields the specified content (between fields with "," split). The three commonly used filter modifiers are as follows:WHERE: Displays a subset of the data rows that meet certain criteria. such as:mysql> SELECT * FROM Employees WHERE salary > 40000;ORDER BY: Displays the data rows in the specified order.LIMIT: Displays only a
Insert data into the column ID, name, job, and salary of the Myemp table, which have data of 1001, ' Rose ', ' PROGRAMMER ', and 5500,sql statements as follows: INSERT into myemp (ID, NAME, job, salary) VALUES (1001, ' Rose ', ' PROGRAMMER ', 5500); 2.) Insert Date INSERT into myemp (ID, NAME, Job,birth) VALUES (1002, ' Martha ', ' ANALYST ', ' 1983-11-23 00:00:00 '); 4. Change the Employee table 1) Change the salary (salary) of the employee whose name is rose in the employee table to
. addMicroService (option => {option. addServiceRuntime (); // option. useZooKeeperManager (new ConfigInfo ("127". 0.0.1: 2181 "); // use Zookeeper to manage the option. useConsulManager (new ConfigInfo ("127.0.0.1: 8500"); // use Consul to manage option. useDotNettyTransport (); // use Netty to transmit option. useRabbitMQTransport (); // use rabbitmq to transmit option. addRabbitMQAdapt (); // service adaptation based on rabbitmq consumption // opti
on.
Select deptno, AVG (SAL) from EMP
Group by deptno;
If you want to divide a group into groups, for example, each department group and each position group.
Select deptno, job, AVG (SAL) avg_sal, from EMP
Group by rollup (deptno, job );
Deptno job agv_sal
-------------------------------------------------------------------
10 clerk 4500
10 manager 8500
10 6500
20 clerk 5000
20 manager 9000
20 7000
6750
Among them, 6500 is the average salary of Depar
Use SRTM data to display contour lines on Google Earth (requires a lot of work)
Use SRTM data to display contour lines on Google EarthKeyword: SRTM goolge Earth kml contour line globalmapper script0. File descriptionKml2contourmdb.exe, generate a global er script, and convert kml into an mdb databaseDB/, folder, store database templates and ASP filesContour. mdb, database fileContour. asp, ASP fileInc_color.asp, contour color configuration. (-50 meters-
agent must be running on each node in the cluster.Consul.exe Agent-config-file Test_config.jsonLet's run an agent in server mode first:d:\github\consuldotnet\consul.test> Consul.exe Agent-config-file Test_config.json==> warning:bootstrap Mode enabled! Do not enable unless necessary==> Warning:windows is not recommended as a Consul server. Do not use the in production.==> Warning:it is highly recommended to set gomaxprocs higher than 1==> starting Consul Agent ...==> starting Consul Agent RPC ..
online. I am going to release MySQL later, because MySQL on the DH host outside China does not seem to have a limit on the size. However, the conversion from MSSQL to MySQL is painful. This will be discussed later. Next we will follow the original article of a fishbone and add my remarks to start this process. I also hope you will have more exchanges.
The original text is as follows, personal remarks appear in brackets, the final tool compressed package, please click this link: http://files.c
to "taste" new products, high-end graphics cards are always the targets they are pursuing. Therefore, games such as geforc4ti and radeon 7500/8500 series graphics cards are the bottom-line products they are willing to accept. Generally, there is little room for such products and the price is high.
Special demand type
In addition, sometimes when purchasing a video card, it is worth considering special requirements such as the reasonable combination of
data stream. Where the TcpClient object of the client program can be instantiated directly, and the server's TcpClient object is returned through the TcpListener object's AcceptTcpClient () method, the code is as follows:TcpClient client = listener. AcceptTcpClient (); // client objects on the server side New TcpClient (); // Client Objects for clients◇ Now we write two programs, one program is server side, the other program is client.◇1) Server Segment program implement
possible in the SACK block to contain the packets that have been ordered out of order, until the length of TCP option is reached, the order of these blocks to indicate "which packets recently received", the more recent packets received ( The wording is not accurate, according to the TCP standard, should say is the data section! Should be in the front, this is similar to the principle of the LRU list. This helps the data sender to make precise decisions.2.3. When the receiving end responds with
;
Next, modify the application.properites Consul required configuration information, such as: (The following configuration is the default value)
12
spring.cloud.consul.host=localhostspring.cloud.consul.port=8500
To this end, we have completed the conversion of Eureka-client to a service provider based on consul service governance. We have already mentioned that the interface of service discovery DiscoveryCli
Special Effects Introduction
Wheat Bag Home Top advertising Code imitation Wheat bag Home top telescopic ad jquery ad code. After the page load completes, the 2.5 seconds will automatically enlarge the advertisement display, the page content automatically extends downward. Show 8.5 seconds to automatically retract, put small display.
Demo diagram
How to use
1, copy the following CSS style to the head of your HTML:
Copy Code code as follows:
2, copy the following code
. The agent must be running on every node in the cluster.Consul.exe Agent-config-file Test_config.jsonWe first run an agent in server mode:d:\github\consuldotnet\consul.test> Consul.exe Agent-config-file Test_config.json==> warning:bootstrap Mode enabled! Do not enable unless necessary==> Warning:windows is not recommended as a consul server. Don't use in production.==> Warning:it is highly recommended to set gomaxprocs higher than 1==> Starting Consul Agent ...==> starting Consul Agent RPC ...=
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.