amazon-ec2

How to connect to JMS queue JBoss EAP 7 behind NAT?

不打扰是莪最后的温柔 提交于 2020-03-23 01:19:38
问题 I have configured JBoss EAP 7.0 which is behind NAT gateway. JMS client can successfully connect to JMS queues from same server or another saver from same network. But when same JMS client is moved out of that network and try to connect to JMS through NAT gateway it cant connect to the queue. Same behavior is encountered in both development environment and aws ec2 in vpc. Development environment has a NAT gateway and I presume vpc also uses same or similar thing. I started with the code found

How to connect to JMS queue JBoss EAP 7 behind NAT?

点点圈 提交于 2020-03-23 01:18:40
问题 I have configured JBoss EAP 7.0 which is behind NAT gateway. JMS client can successfully connect to JMS queues from same server or another saver from same network. But when same JMS client is moved out of that network and try to connect to JMS through NAT gateway it cant connect to the queue. Same behavior is encountered in both development environment and aws ec2 in vpc. Development environment has a NAT gateway and I presume vpc also uses same or similar thing. I started with the code found

mysql on amazon linux - MySQL Daemon failed to start

岁酱吖の 提交于 2020-03-22 07:30:06
问题 I tried that restarting EC2 instance and sudo service httpd restart . But I still get this message: [ec2-user@ip-* ~]$ sudo service mysqld start MySQL Daemon failed to start. Starting mysqld: [FAILED] Also I get this message: [ec2-user@ip-* ~]$ mysqld 160127 7:01:48 [Note] mysqld (mysqld 5.5.46) starting as process 2745 ... 160127 7:01:48 [Warning] Can't create test file /var/lib/mysql/ip-*.lower-test 160127 7:01:48 [Warning] Can't create test file /var/lib/mysql/ip-*.lower-test 160127 7:01

Integrating Docker-Machine with Amazon EC2

谁都会走 提交于 2020-03-21 19:23:09
问题 I am reading this article which shows me how I can configure my docker VM on top of amazon ec2 https://docs.docker.com/machine/drivers/aws/ I got to the step docker-machine create --driver amazonec2 aws01 but now I get an error Error with pre-create check: "unable to find a subnet in the zone: us-east-1a" I googled and found this thread https://github.com/docker/machine/issues/1771 but did find anything which worked for me. Has anyone been able to successfully create a VM on top of AWS using

An error happened while reading data from the provider. The remote certificate is invalid according to the validation procedure

我是研究僧i 提交于 2020-03-19 04:50:35
问题 I'm trying to connect Postgres Database on AWS EC2 instance to Microsoft PowerBI. I tried various method available on internet but its showing the above error. Although I've done this connection on AWS RDS. I installed required dependencies (GAC) and all the certificates required for PowerBI. 回答1: I've came across the same issue, unfortunately I didn't find solution to resolve it. But I found an alternative. You can connect PostgreSQL using ODBC Connection. Setup ODBC for PostgreSQL: https:/

MongoDB Fetching documents slow (Indexing used)

时光总嘲笑我的痴心妄想 提交于 2020-03-14 12:36:26
问题 The FETCH-stage is the limiting factor in my queries. Ive been reaserching and it seems that mongodb is reading much more than it needs, and not utilize the bandwidth fully. My mongoDB-mongod instance seems to be reading to much on a single query. Testing on AWS EC2 m4.xlarge with 1 EBS io 5000Piops attached (100GB) SSD. 16 GB ram. The machine only contains the mongodb instance for testing purpose. The database is roughly 60GB (on Disk) in total ( several collections). The main collections is

MongoDB Fetching documents slow (Indexing used)

会有一股神秘感。 提交于 2020-03-14 12:36:23
问题 The FETCH-stage is the limiting factor in my queries. Ive been reaserching and it seems that mongodb is reading much more than it needs, and not utilize the bandwidth fully. My mongoDB-mongod instance seems to be reading to much on a single query. Testing on AWS EC2 m4.xlarge with 1 EBS io 5000Piops attached (100GB) SSD. 16 GB ram. The machine only contains the mongodb instance for testing purpose. The database is roughly 60GB (on Disk) in total ( several collections). The main collections is

Apollo Server on Ubuntu 18.04 EC2 instance with HTTPS

二次信任 提交于 2020-03-06 10:57:48
问题 i'm trying to deploy my simple apollo-server on an Ubuntu 18.04 instance from Amazon Web Services(AWS) EC2. It works fine, but i need/want the traffic to be over HTTPS instead. I was wondering which could be the best option. Im running the code with "forever"("forever start lib/index.js"), also using yarn (to start the project "yarn start"). I'm able to access the server with the ip address () and everything works fine. I would like to do it ASAP, already tried with apollo-server-lambda and

Amazon EC2 user data script on instance startup - python script won't run?

青春壹個敷衍的年華 提交于 2020-03-05 05:45:25
问题 I am following the tutorial on Running Commands on Your Linux Instance at Launch - Amazon Elastic Compute Cloud. I have an EC2 instance and I've confirmed that running python run.py does exactly what I want (write a file to s3) when I run it through the command line. So in the web UI I added #!/bin/bash python run.py into the user data field. But when I start it back up nothing happens. I must be overlooking something, but not sure what it is. One thing that did surprise me was that all the

Get instance name via curl on ec2?

本小妞迷上赌 提交于 2020-03-04 18:43:39
问题 Is it possible to get the actual name of the ec2 instance, for example: I've been able to grab some of the lower-level data by doing stuff like: $ curl http://169.254.169.254/1.0/meta-data/hostname But is it possible to get the name (or tags) anywhere without using some sort of aws , ec2 , or boto command? 回答1: Tags data is not available through instance metadata, you would need aws-cli for that. As of today, this is what's available: $ curl http://169.254.169.254/latest/meta-data/ ami-id ami