localhost

SpringCloud学习笔记(十、SpringCloud Sleuth)

点点圈 提交于 2019-12-03 09:58:14
目录: 什么是SpringCloud Sleuth 为什么使用SpringCloud Sleuth 如何使用SpringCloud Sleuth 什么是SpringCloud Sleuth: SpringCloud sleuth是 一款分布式跟踪框架 ,它为SpringCloud提供了很好的 跟踪解决方案 。 为什么使用SpringCloud Sleuth: 在分布式系统中,用户的一次请求可能不仅仅是一个简单的http调用了,可能会涉及到很多不同的服务,而当系统越来越复杂的时候那一次调用可能涉及到十几个,甚至更多个服务。 而当一次请求出现问题的时候,如果没有工具帮助的情况下查起问题来时会非常麻烦。 那在庞杂的系统中,如何快速发现问题,如何判断服务影响范围,如何梳理服务依赖及依赖的合理性,如何分析链路性能问题及实时容量规划?这些问题sleuth都提供了解决方案。 使用目的: 耗时分析、可视化错误、链路优化 如何使用SpringCloud Sleuth: http拦截方式: 1、服务端(启动后可访问http://localhost:7070查看zipkin ui) )增加maven依赖 1 <dependency> 2 <groupId>org.springframework.cloud</groupId> 3 <artifactId>spring-cloud-starter

Getting org.elasticsearch.transport.NodeDisconnectedException: [][inet[localhost/127.0.0.1:9300]][cluster/nodes/info] disconnected

匿名 (未验证) 提交于 2019-12-03 09:52:54
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am New in Elastic Search Java Api[5.0]. I am Using elasticsearch-5.0.0. I am try to create a Java Application(Maven) with Spring Boot. After run Application, it shows 2016-11-04 23:32:19.339 INFO 8280 --- [][generic][T#2]] org.elasticsearch.client.transport : [X-Ray] failed to get node info for [#transport#-1][DESKTOP-8SIPHSN][inet[localhost/127.0.0.1:9300]], disconnecting... org.elasticsearch.transport.NodeDisconnectedException: [][inet[localhost/127.0.0.1:9300]][cluster:monitor/nodes/info] disconnected My Config File Is @Configuration

AirPlay messes up localhost

故事扮演 提交于 2019-12-03 09:34:16
Since the last OSX update (Yosemite), my localhost server is full of error messages from airplay (but I am not using it). Each times it's the same: [31/Oct/2014 05:40:42] code 400, message Bad request version ('RTSP/1.0') [31/Oct/2014 05:40:42] "GET /info?txtAirPlay&txtRAOP RTSP/1.0" 400 - It's just annoying to have its server full of error messages so if anyone has a clue to fix that or to remove airplay, I would be very thankful :) I think I found the answer: On a cisco discovery forum they listed an nmap output that revealed the Yosemite discoveryd port ranges. Turns out the Apple is using

Localhost on Windows 7

只愿长相守 提交于 2019-12-03 09:27:09
问题 I want to enable a localhost on Windows 7 to be able to build websites with Chrome without a distant server. I would like to not install anything, and be able to, for example, navigate to http://localhost/something/somethingElse/index.html . Anyone knows how? 回答1: In order to activate localhost server on Windows 7 navigate to: -> Control Panel -> Programs and Features -> Turn Windows features on or off Then search for Internet Information Services and check its checkbox. Wait for Windows to

Ionic VirtualScroll Cannot read property &#039;length&#039; of null

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have this function on my provider: getActiveAds(){ return this.afDb.list<AngularFireList<any>>('/ads-active', ref => ref.orderByChild('adPlanPriority').startAt(1).endAt(3)) } On my list page, i have this: constructor(public navCtrl: NavController, public navParams: NavParams, public loadingCtrl: LoadingController, public adProvider: AdProvider) { this.loading = this.loadingCtrl.create(); this.loading.present(); this.ads = this.adProvider.getActiveAds().valueChanges() this.ads.subscribe((cat)=> { this.loading.dismiss() }) } and my list.html

Jetty: set up general host

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can i force Jetty to open all deployed webapps starting from specific virtual host like test.localhost:8080/myapp instead of localhost:8181/myapp ? Here's snippet from jetty.xml: <Call name="addConnector"> <Arg> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"> <Set name="host"> <Property name="jetty.host"/> </Set> <Set name="port"> <Property name="jetty.port" default="8181"/> </Set> ... ... i tried to play with jetty.host value but still no success. :( How to? 回答1: To LISTEN on a specific network interface, you specify

When doing IPC using TCP/IP sockets using the loopback address, do common networking stacks skip framing the message in lower-level PDUs?

百般思念 提交于 2019-12-03 09:08:28
问题 In some environments such as Java, it's natural to use TCP/IP sockets to pass messages between processes on the same host using the 'localhost' address (127.0.0.1 in IPv4, or ::1 in IPv6). (Because Java tends not to expose other IPC mechanisms in its API). Clearly, this has the potential to be a lot slower than IPC via message passing over pipes, or IPC using shared-memory. On the other hand, if the TCP/IP networking stack realised that both ends of the connection were on the loopback

How to fix the The connection string contains a badly formed name or value

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Code example: import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; public class SQLserverConnection { // Connection object static Connection con = null; // Statement object private static Statement stmt; // Constant for Database URL public static String DB_URL = "jdbc:sqlserver://localhost:1433"; // Constant for Database Username public

Php Can't find Stomp class

匿名 (未验证) 提交于 2019-12-03 09:06:55
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to get a queue from activemq using a PHP client. I included in the project a stomp library. Here is my project tree: TestPhp / ├―― PhpInfo . php ├―― SimpleStompConsumer . php └―― Stomp ├―― Exception | └―― StompException . php ├―― ExceptionInterface . php ├―― Frame . php ├―― Message │ ├―― Bytes . php │ └―― Map . php ├―― Message . php └―― Stomp . php and here is my code <? php $path = "/var/www/test/TestPhp/Stomp/Stomp.php" ; require_once ( $path ); $con = new Stomp ( "tcp://localhost:61613" ); $con -> connect (); $con ->

Lock web app only work for intranet

霸气de小男生 提交于 2019-12-03 09:01:38
some week in the future i will have job to create php web app that will work as billing process. As the client and my team agree upon, the web app will only deploy in their internal server. This need arose some fundamental questions for myself. how do we lock the web app really really will work only in internal server and not in internet as it asked ? cause this need, the cost for the job have been cut into some degree. so it will be best if it only work as client describe it : it will be deploy in intranet an intranet only What is the pro and cons deploy php application only (with all of its