port

Heroku Open “Puma Port 5000 Already In Use” Rails

半城伤御伤魂 提交于 2019-12-10 23:33:36
问题 When I Control-C to quit "Heroku Open" (the Heroku Toolbar server command). I'm unable to restart. I receive this error: /vendor/bundle/gems/puma-2.14.0/lib/puma/binder.rb:233:in `initialize': Address already in use - bind(2) for "0.0.0.0" port 5000 (Errno::EADDRINUSE) web.1 | s/vendor/bundle/gems/puma-2.14.0/lib/puma/cluster.rb:304:in `run' Is their a "correct" way to shut down the Heroku Toolbar local rails server in order to avoid this problem? 回答1: The only method I've used that works to

AWS forward port 8000 from elb to port 8000 of EC2

泄露秘密 提交于 2019-12-10 23:09:19
问题 I have en ELB with multiple EC2 instances registered in target groups. I am using port a php application which is running properly. It has SSL. I want to use port 8000 for my node application. What I would like to do is I want to forward my-elb-address:8000 to any-ec2-ip:8000. So when i access the domain attached to ELB witjh port 8000 it would forward that to ec2 with port 8000. How can I accomplish this? Is their any other way of ELB listening and forwarding multiple ports? I have added

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

PHP Guzzle 5: Cannot handle URL with PORT number in it

余生颓废 提交于 2019-12-10 21:42:10
问题 I am using the latest version of guzzle. (from composer.json) "guzzlehttp/guzzle": "~5" (from composer.lock) "name": "guzzlehttp/guzzle", "version": "5.2.0", When I attempt to request (GET or POST) with a URL that contains a PORT number: $response = $client->get('http://www.hostdnshere.com:8888', array()); I get the following error: string(68) "cURL error 7: Failed to connect to 000.000.000.000: Permission denied" When I do the same but omit the PORT: $response = $client->get('http://www

Using Java Program How to programmatically start Jetty on port 80 as non-root user

帅比萌擦擦* 提交于 2019-12-10 21:27:07
问题 I'm trying following progam: If i use SUDO java to run everthing is fine, but I don't want to use SUDO without SUDO i get following error: SocketException: Permission Denied (as its PORT 80) Using jetty documentation, I get this to work using command line where i change jetty-setuid.xm l -- Put user-name is non-root user start.ini -- Change to EXEC and passing etc/jetty-setuid.xml as first parameter jetty.xml -- To have port number as 80 then I still do sudo as non-root user -- like -> sudo

Exposing SQL Server 2000 to the Internet safely

旧街凉风 提交于 2019-12-10 21:22:25
问题 I've got a SQL Server 2000 box that I'd like to put on "the Internet" so that developers could connect remotely without VPN access. What's the safest way to do so? It might be temporary, e.g. every once in a while, but it's definitely necessary. Thanks, Rob 回答1: Short answer - don't do this. Long answer: Install good firewall on the box. Install and run ssh server on it. Open only the ssh port. Your devs can use PuTTY or any other ssh client to "tunnel" the sql port over the ssh connection.

How to get the server port in a Rails initializer

不羁的心 提交于 2019-12-10 19:28:45
问题 I have multiple instances of Rails servers and there is a need for each one of them to know its own listening port in environment.rb. request.port will work in the controllers but not in the context of the environment.rb. Is there a way? Thanks! 回答1: You can get the running rails port using this code: Rails::Server.new.options[:Port] You can take a look at the options parser in the Rails documentation to see what hash parameters are available. 来源: https://stackoverflow.com/questions/9574129

Port of the Rails app when running Cucumber tests

妖精的绣舞 提交于 2019-12-10 18:35:44
问题 Is there a way to get, in the test, the port in which the rails app is running during cucumber test? I tried Capybara.server_port but that's nil. Thanks. 回答1: When using the selenium driver, the port can be found on: Capybara.current_session.driver.rack_server.port and when using the webkit driver, it can be found on: Capybara.current_session.driver.server_port Alternative, you can set Capybara.server_port to a known value and use that. 回答2: My understanding is that if you're using rack-test,

How to add/update the port of a backend in a Backend Service of an HTTP Load Balancer in GCP using gcloud CLI

风流意气都作罢 提交于 2019-12-10 16:42:38
问题 I can create a Backen Service using the following commands: # health check gcloud compute http-health-checks create "$HEALTH_CHECK_NAME" # backend service gcloud compute backend-services create "$BACKEND_SERVICE_NAME" --http-health-check "$HEALTH_CHECK_NAME" --port-name "http" --timeout "30" gcloud compute backend-services add-backend "$BACKEND_SERVICE_NAME" --instance-group "$GROUP_NAME" --balancing-mode "UTILIZATION" --capacity-scaler "1" --max-utilization "1" But I have to add also the

Finding available LPT (parallel) ports and addresses in Delphi

半腔热情 提交于 2019-12-10 16:19:32
问题 I am doing direct I/O on a parallel port which is fine and necessary for speed. I would like to enumerate the available ports to offer the user a choice of ports at setup time rather than a tedious trawl through device manager to read the address manually. Does anyone know a means of doing this please? Many thanks, Brian 回答1: According to this Microsoft article, for Win2K and newer, you can find details of parallel-connected devices in the registry at HKLM\SYSTEM\CurrentControlSet\Enum