server

How to verify rsyslog TCP communication with the server from the client side?

自作多情 提交于 2019-12-24 15:29:38
问题 I want to be able to know if all of the servers that I am logging to are properly receiving my TCP messages and answering back. I don't want to have to implement anything else on the server side, just want to monitor everything in the client machine. I want to be able to do something like a ping test but valid for a rsyslog environment, using its protocols and ports. I also know that there is a "debug" file but I believe its too much complicated to actually debug. 回答1: impstats can give you

Cannot execute /usr/bin/ruby: No such file or directory on ubuntu server using RVM

青春壹個敷衍的年華 提交于 2019-12-24 14:23:21
问题 I am trying to run rails app in production on Ubuntu server, but it shows message that something went wrong. And in apache logs i found this: An error occurred while starting up the preloader. It exited before signalling successful startup back to Phusion Passenger. Please read Raw process output: * ERROR * : Cannot execute /usr/bin/ruby: No such file or directory (2) Note that i am using rvm and my ruby path is different Using SSH everything works fine. 来源: https://stackoverflow.com

Using ThreadPoolExecutor and DiscardPolicy

心已入冬 提交于 2019-12-24 13:42:53
问题 I need to make a client queue with ThreadPoolExecutor and an ability to drop clients if it exceeds some number (5 for example). It is kinda DDOS protection. When client #6 is requesting my server - it got dropped, etc. I got my server and client code, but I don't know how to realize ThreadPoolExecutor and DiscardPolicy. Ideas or examples? Simple server: import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.OutputStream; import java.net

How to run the Haxe server and client example?

匆匆过客 提交于 2019-12-24 12:05:58
问题 I am new to Haxe. I want to try to run the example from here: http://old.haxe.org/doc/flash/chat but I do not know how to run. I just type haxe app.hxml and I have no idea how to continue. Could someone tell me how to run it? 回答1: Running haxe app.hxml creates two files: server.n and client.swf . Double click server.bat (which just starts the server via neko server.n ). Now any number of clients can connect to the server. For testing, just run the client.hx twice with the standalone Flash

Communicating between two different computers with TCP/IP

流过昼夜 提交于 2019-12-24 10:40:19
问题 I've been studying how to use sockets to make two java programs communicate. Now, on each example I've gone through, they've always placed the "server side program" on the same computer on which the "client side program" was, and of course the IP set was either 127.0.0.1 , or simply "localhost". Now, my question is: how do I get to communicate the two programs if one is on a computer, and one on another? I've tried to set the IP as the one my computer has when connected to internet (the one I

Error m_InstanceID != 0 when downloading texture from the server

时光怂恿深爱的人放手 提交于 2019-12-24 10:38:15
问题 I'm getting this error in Unity 5.4 when trying to download the texture from the server. Here is the code (the link should work): UnityWebRequest www = UnityWebRequest.GetTexture("https://0.gravatar.com/avatar/fc2beef90fad49f83d79650a10b5c030?s=256&d=identicon&r=G"); www.SetRequestHeader("Accept", "image/*"); async = www.Send(); while (!async.isDone) yield return null; if (www.isError) { Debug.Log(www.error); } else { tex = DownloadHandlerTexture.GetContent(www); // <------------------- } The

Why netty http2 server always use odd number for streamId

自古美人都是妖i 提交于 2019-12-24 09:51:17
问题 I am using Netty to setup a simple http/2 server. I am using this example as http/2 server. To test this server, I am using netty example client. My client code where I am sending the request to server: Complete code : http://netty.io/5.0/xref/io/netty/example/http2/client/package-summary.html HttpResponseHandler responseHandler = initializer.responseHandler(); int streamId = 3; HttpScheme scheme = SSL ? HttpScheme.HTTPS : HttpScheme.HTTP; AsciiString hostName = new AsciiString(HOST + ':' +

Calling route from same server causes an infinite loop

人盡茶涼 提交于 2019-12-24 09:37:13
问题 Before starting I use Laravel as example, but I actually made a small project with hand-made MVC and the issue is still occuring, so this has nothing to do with the framework. Context I use php artisan serve , which is the equivalent of php -S localhost:8000 -t public to boot up my web app. I do not use Apache (might be a hint ?). The client (human) request the page /user through his web browser. Here is how the controller that responds to this endpoint looks like: routes.php <?php Route:

Task Scheduler - Custom event filter trigger is not triggering action

冷暖自知 提交于 2019-12-24 08:59:20
问题 Our server has MANY tasks in Task Scheduler that run on varying schedules. I need to be notified by email only when one particular tasks completes. Seeing that the appropriate Event ID for a successfully completed task is 102, I was able to create an event that would email me whenever any task completed, ensuring that my emailing action is properly configured. My problem comes into play when I'm trying to get this email to be triggered for my task called 'Email Parser' ONLY, and I believe I

How to remotely connect to my MongoDB in my server with java?

我的未来我决定 提交于 2019-12-24 07:46:37
问题 I want to use my MongoDB on my server from a java application on my laptop. this is my ufw setting aran@Aran:~$ sudo ufw status Status: active To Action From -- ------ ---- OpenSSH ALLOW Anywhere 22 ALLOW Anywhere 80 ALLOW Anywhere 443 ALLOW Anywhere 21/tcp ALLOW Anywhere 27017 ALLOW 1.234.56.78 27017 ALLOW Anywhere OpenSSH (v6) ALLOW Anywhere (v6) 22 (v6) ALLOW Anywhere (v6) 80 (v6) ALLOW Anywhere (v6) 443 (v6) ALLOW Anywhere (v6) 21/tcp (v6) ALLOW Anywhere (v6) 27017 (v6) ALLOW Anywhere (v6