connection

Elastic Search - Ubuntu - Connection Refused

本秂侑毒 提交于 2019-12-10 22:48:48
问题 I have installed elastic 2.2 on an Ubuntu 14.04. I left the default initial settings of elastic and the elastic instance was reachable form this system at localhost:9200. Now when I tried via a different system using the IP/DNS name of the server as: curl -XGET "http://<IP_ADDRESS_UBUNTU_SERVER>:9200" I get an error as : Failed to connect to <IP_ADDRESS_UBUNTU_SERVER> port 9200: Connection refused I tried changing few parameters in elasticsearch.yml file and set it as: network.host: 0.0.0.0

SSIS: How to move a project connection manager into package

荒凉一梦 提交于 2019-12-10 21:19:16
问题 I have a 2012 SSIS project with many connection manager defined at project level. The project also includes many packages having a reference to these connection managers. Now I want to convert my project to a deployment model but the wizard specifies that I need to remove connection managers at project which means moving the connection managers into packages. How can I move the project level connection managers to my package? 回答1: You will need to convert the project from the Project

A new sql connection for each query?

喜你入骨 提交于 2019-12-10 20:05:49
问题 I'm writing a server application that's communication with a local sql server. Each client will need to read or write data to the database. Would it be better to have a thread safe class which will enqueue and executes the sql commands on a single sql connection? Or should I open a new connection for each command? Does it matter much for performance? 回答1: If you have a batch of statements that have to be executed after each other, you should use the same SqlConnection. As soon as you do not

How do I connect to a Java command-line tool with the YourKit Java Profiler?

↘锁芯ラ 提交于 2019-12-10 19:55:43
问题 I've build a command-line tool in Java, which I would now like to profile with YourKit. I launch the command-line tool with something like: $ java -classpath .:foo.bar.jar com.foobar.tools.TheTool arg1 arg2 arg3 It runs to completion in less than 2 seconds. After reading http://www.yourkit.com/docs/80/help/agent.jsp, I tried the following: $ java -agentpath:/home/dspitzer/yjp-8.0.24/bin/linux-x86-32/libyjpagent.so -classpath .:foo.bar.jar com.foobar.tools.TheTool arg1 arg2 arg3 ...and I get:

Connection reset原因分析和解决方案

馋奶兔 提交于 2019-12-10 19:54:09
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 在使用HttpClient调用后台resetful服务时, “Connection reset”是一个比较常见的问题,有同学跟我私信说被这个问题困扰很久了,今天就来分析下,希望能帮到大家。例如我们线上的网关日志就会抛该错误: 从日志中可以看到是Socket套接字在read数据时抛出了该错误。 导致“Connection reset”的原因是服务器端因为某种原因关闭了Connection,而客户端依然在读写数据,此时服务器会返回复位标志“RST”,然后此时客户端就会提示“java.net.SocketException: Connection reset”。 可能有同学对复位标志“RST”还不太了解,这里简单解释一下: TCP建立连接时需要三次握手,在释放连接需要四次挥手;例如三次握手的过程如下: 第一次握手:客户端发送syn包(syn=j)到服务器,并进入SYN_SENT状态,等待服务器确认; 第二次握手:服务器收到syn包,并会确认客户的SYN(ack=j+1),同时自己也发送一个SYN包(syn=k),即SYN+ACK包,此时服务器进入SYN_RECV状态; 第三次握手:客户端收到服务器的SYN+ACK包,向服务器发送确认包ACK(ack=k+1),此包发送完毕,客户端和服务器进入ESTABLISHED

PHP: Is there a way to change request address?

被刻印的时光 ゝ 提交于 2019-12-10 19:21:24
问题 For some reason, if I request a file using a url such as this: http://localhost/proxy.php?url=http://anintranetsite/file.jpg It works! I can get the file. But if I use, http://127.0.0.1/proxy.php?url=http://anintranetsite/file.jpg I cannot get it to work. I am not unnderstanding what is going on... Any thoughts on what could be going wrong? Thanks 回答1: Sounds like your browser has the proxy configured wrong. Aka "No proxy for" should contain localhost AND 127.0.0.1 回答2: sounds like a router

enable android PhoneaAccount after telecomManager.registerPhoneAccount()

蹲街弑〆低调 提交于 2019-12-10 18:28:25
问题 I've managed to register a new PhoneAccount without exceptions or errors and I get the " Calling Account settings " activity. However, I can't see my PhoneAccount anywhere so I can't enable it. My TelecomManager seems to have the phoneAccount , because I can get it with getPhoneAccount(PhoneAccountHandle) . I don't know what the problem is. Any ideas? 来源: https://stackoverflow.com/questions/41699798/enable-android-phoneaaccount-after-telecommanager-registerphoneaccount

How to check network connection type in Blackberry?

断了今生、忘了曾经 提交于 2019-12-10 17:25:51
问题 In Blackberry application I want to check what type of network connection is being used on particular phone, whether it is BES/MDS,BIS-B or Direct Tcp. Is there any way to find out this? Many applications like Jive,Opera and many more are doing this kind of check. Please help. 回答1: Your question springs from an incorrect assumption. A Blackberry could be communicating over any or all of those channels simultaneously. In fact any application may as well. At any particular time you can

ITransformableFilterValues interface with two or more parameters [SharePoint WebParts]

断了今生、忘了曾经 提交于 2019-12-10 17:21:04
问题 I working with Sharepoint, and I try to connect web-parts with multiple parameters. My question is how do I pass more than one parameter from a custome web part to another. I am able to pass one parameter by implementing the ITransformableFilterValues interface in the custom webpart , what I want to do is pass more than one parameter (MyIndex2 for example). // Configure interface public bool AllowEmptyValue { get { return false; } } public bool AllowAllValue { get { return true; } } public

MySQL connection lost: system error: 110

自作多情 提交于 2019-12-10 16:15:56
问题 I am trying to connect to my mySQL server through localhost on my dedicated server, but I keep getting the error: Lost connection to MySQL server at 'reading initial communication packet', system error: 110 CODE: <?php $link = mysql_connect('localhost', '****', '****'); if (!$link) { die('Could not connect: ' . mysql_error()); } I haven't configured a firewall, so all ports should be open. What do I need to do? I have already checked several other similar questions, but none of them solved my