amazon-ec2

mysql not respecting wait_timeout setting in my.cnf

≯℡__Kan透↙ 提交于 2020-02-02 09:36:55
问题 I've set a wait_timeout in my.cnf and restarted the server, but the time on idle connections continues to grow larger than the default 100s I set. Any ideas why this is happening? PS: I'm running ubuntu 12.04 and Mysql Server 5.5. Using Rails 3 with the mysql2 gem. mysql> SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY TIME DESC LIMIT 20; +------+------------------+-------------------------------------+--------------------------+---------+------+-------+------+ | ID | USER | HOST | DB |

mysql not respecting wait_timeout setting in my.cnf

无人久伴 提交于 2020-02-02 09:33:07
问题 I've set a wait_timeout in my.cnf and restarted the server, but the time on idle connections continues to grow larger than the default 100s I set. Any ideas why this is happening? PS: I'm running ubuntu 12.04 and Mysql Server 5.5. Using Rails 3 with the mysql2 gem. mysql> SELECT * FROM INFORMATION_SCHEMA.PROCESSLIST ORDER BY TIME DESC LIMIT 20; +------+------------------+-------------------------------------+--------------------------+---------+------+-------+------+ | ID | USER | HOST | DB |

Not able to connect RoboMongo with Amazon instance

天涯浪子 提交于 2020-02-02 02:59:28
问题 I'm not able to connect RoboMongo with Amazon instance. Tried this http://blog.mongohq.com/robomongo-your-next-shell/ Opened inbound port in the instance. Still no Luck. Anyone have done this? Edited: After I press test or connect it goes on and seems it's trying to connect but after a while a message pops up saying unable to connect with mongodb. Edit by setting the host as 'localhost' worked. 回答1: From @Stennie "Have you tried connecting via ssh with the same credentials? On the Robomongo

Different .ebextensions depending on environment

北城余情 提交于 2020-02-02 02:45:12
问题 I have 2 separate environments to manage my application, a primary env, webserver with a load balancer, and a secondary env, a single small tier worker to run crons. My .ebextensions contains a lot of Instance and load balancer configurations, example: 01amazon.config Resources: # LB SG AWSEBLoadBalancerSecurityGroup: Type: "AWS::EC2::SecurityGroup" Properties: .... Is there any way to ignore this single file when i deploy to my worker instance via eb deploy worker-env If the file is not

resource:memory error when trying to run an ECS task using AWS CLI

不羁的心 提交于 2020-02-01 19:06:51
问题 I'm trying to set up CI with AWS ECS and docker. I use Codeship as a CI tool, but that should not really matter much. I do the following steps in a shell script: build an image with my Dockerfile, push the image to ECS repository, push a task-definition.json to ECS aws ecs register-task-definition --family postgraphile --cli-input-json file:///deploy/ecs-task-def.json --region us-east-2 run the ECS task aws ecs run-task --task-definition postgraphile --cluster testcluster --region us-east-2

resource:memory error when trying to run an ECS task using AWS CLI

喜夏-厌秋 提交于 2020-02-01 19:06:31
问题 I'm trying to set up CI with AWS ECS and docker. I use Codeship as a CI tool, but that should not really matter much. I do the following steps in a shell script: build an image with my Dockerfile, push the image to ECS repository, push a task-definition.json to ECS aws ecs register-task-definition --family postgraphile --cli-input-json file:///deploy/ecs-task-def.json --region us-east-2 run the ECS task aws ecs run-task --task-definition postgraphile --cluster testcluster --region us-east-2

Permalinks on Wordpress EC2

两盒软妹~` 提交于 2020-01-30 14:24:09
问题 I have just transferred my blog from my local webserver to Amazon EC2 Free Linux server, Everything seems to be working now except for permalinks, I disabled and re-enabled them and it still breaks. I've tried running the script sudo a2enmod rewrite But it says a2enmod: command not found while logged into my server as ec2-user Any help would be much appreciated! Thanks 回答1: I just had this same issue and, assuming you are using httpd, you will need to go to /etc/httpd/conf then open http.conf

Reducing memory consumption of mysql on ubuntu@aws micro instance

跟風遠走 提交于 2020-01-30 13:51:07
问题 I have recently started on a PoC project wherein we are developing a small web app. The initial setup is done on a micro instance from AWS. We are on rails+mysql stack. After installing/running MySQL, I see that about 500+ MB RAM has been consumed already; leaving quite less for rest of the systems (micro instances have barely 620 MB RAM). Our app is fairly simple at this stage. Can I do something to reduce the memory consumed by MySQL server? Appreciate the help. 回答1: Change this setting in

AWS ACM SSL Protocol error

一个人想着一个人 提交于 2020-01-30 12:13:32
问题 I am working with an AWS EC2 instance (amazon Linux, elastic IP) trying to set up SSL through ACM. The certificate is verified and the load balancer is passing the health checks listening on prot 443, forwarding to port 80. Initially, when testing https I received a connection refused. This confused me because I thought the load balancer would catch and forward this to port 80. I enabled port 443 via nginx on the EC2 instance, so now it is listening on 443 (tested via telnet), which got rid

AWS ACM SSL Protocol error

不羁岁月 提交于 2020-01-30 12:12:33
问题 I am working with an AWS EC2 instance (amazon Linux, elastic IP) trying to set up SSL through ACM. The certificate is verified and the load balancer is passing the health checks listening on prot 443, forwarding to port 80. Initially, when testing https I received a connection refused. This confused me because I thought the load balancer would catch and forward this to port 80. I enabled port 443 via nginx on the EC2 instance, so now it is listening on 443 (tested via telnet), which got rid