Amazon Elastic Compute Cloud (EC2), which allows users to rent virtual computer systems, is part of Amazon Web Services.
0
votes
1answer
5 views
How do I download log4j on ec2 instance?
The link to download log4j is here. However I have logged into the my EC2 instance. Whats the command line to download this log4j ?
2
votes
1answer
18 views
Specific user's SSH-RSA with root access (via AWS EC2)
Is it possible to set up a specific SSH-RSA key (via another user i.e. "ec2-user") to have ability to sudo into root.
I.e.
You login with key to "Bob" (ec2-user). Currently user "Bob" can sudo ...
1
vote
0answers
35 views
How do I find out hard disk model and serial number in amazon machine?
when check in local machine /proc/scsi/scsi file it contains
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: ST3160215AS Rev: 3.AA
Type: Direct-Access ...
3
votes
2answers
188 views
What is the difference between /sys/block/sda1/stat and /sys/block/xvda1/stat?
On my local machine, I have /sys/block/sda1/stat.
On an Amazon machine, I have /sys/block/xvda1/stat.
When I run cat /sys/block/sda1/stat or cat /sys/block/xvda1/stat both give 11 fields of output.
...
1
vote
1answer
32 views
How to change FTP home directory in Centos 6
I have created one Linux centOS 6 instance in Amazon EC2 and installed cPanel on it and started running my websites there . The issue i face was when i try to FTP to the instance with following config
...
0
votes
0answers
38 views
etc/apt/sources.list contents for EC2 Instances upon AWS
When I copy an Ubuntu image between regions, the image is customised slightly in the process. Notably the software sources in /etc/apt/sources.list are altered to "local values".
I am aware that ...
0
votes
0answers
36 views
Route dies on Ubuntu 14.04.2
So I have this routing setup in EC2 on a Ubuntu machine:
10.50.0.0/24 dev eth0 proto kernel scope link src 10.50.0.163
x.x.x.x via 10.50.0.80 dev eth0 proto static
y.y.y.y via 10.50.0.80 dev ...
1
vote
1answer
137 views
AWS Outbound ACL Rules impact on incoming ssh connections
I am making a bastion ssh server on CentOS 7 in an AWS EC2 instance. When I use the following rules in its ACL, I am able to connect to the server just fine:
Inbound Rules
Allow traffic on port 22 ...
0
votes
0answers
34 views
Remove or decrease JAVA Security openjdk AWS centos instance
How to decrease or remove java security level in CentOS openjdk? I tried removing the java security level but I didn't find any option, my OS is in an ec2 aws machine.
1
vote
1answer
125 views
Can set up a cron job to copy my server to Amazon S3
I have an Ubuntu 12.04 install on physical hardware. I will then install Geonode on it. The system will be running at a place with variable network capacity.
My colleagues will add data and should ...
0
votes
0answers
23 views
How to point all domain with ELB dns
In Aws I am creating A ELB(Elastic Load Balancer ) for handling load over instances . my question is in previous we are use single instance and add this instance with an elastic ip . with this ...
1
vote
1answer
69 views
Prompting for a password on sudo?
I'm creating users using Puppet. Here's the gist of what I'm doing in Puppet:
user { 'ntkay':
name => 'ntkay',
uid => 10000,
home => '/home/ntkay',
managehome => true,
...
0
votes
1answer
90 views
Subdomain Creation in Amazon EC2 using Nginx Server [closed]
I am using amazon ec2.... My app is written in Ruby on Rails. I am using Nginx Server. How can I create sub-domain and automate it when a user registers like http://user.mywebsite.com?
0
votes
1answer
602 views
How to convert Ubuntu init script to Amazon Linux AMI init script?
I had a Ubuntu based Amazon EC2 server where I was running my java based application. For this I had written a init script which was running perfectly and as follows
#! /bin/sh
# set the environment ...
1
vote
1answer
64 views
rsync with weird files name appended
I'm doing rsync every 10 minutes via cronjob with a 3g Dongle outside on a field. The rsync will send data to my EC2 server and there I can check the files being sent. But I encounter the destination ...
0
votes
0answers
57 views
How to resize AWS-EBS of AWS-HVM?
It's possible to resize AWS-EBS of AWS-EC2(PV).But, when comes to AWS-EC2-HVM it is not possible via snapshot method. What is the procedure to resize EBS of HVM?
[root@host ~]# df -h
Filesystem ...
1
vote
0answers
37 views
Can't mkdir events No space left on device - EC2 Linux [duplicate]
After put about 5 millions files on a EC2 instance, I can no longer mkdir because inodes are all used. I still have 40Gb space on this EBS! Is there a way to overcome this?
Thanks.
Filesystem ...
0
votes
0answers
81 views
Rsync Issue (AWS EC2)
I have spent quite a bit of time trying to Rsync from a remote to a local machine but been having issues with finding the synced files apparently.
The command I entered is:
sync -avzhe ...
0
votes
2answers
143 views
bash permissions - unknown problem
So strangely enough I have the following problem in a directory inside a script:
#!/usr/bin/env bash
MAIN_DIR=/home/ec2-user/dir/
LAST_DIR=$(ls -d -t ${MAIN_DIR}*/ | head -1)
When I run it I get:
...
0
votes
0answers
64 views
Two servers fail to communicate with eachother
I'm hosting an Apache Archiva instance on one server and trying to publish some files from my continuous integration server to that server. However I'm getting the following error when trying to ...
0
votes
2answers
157 views
Setting up a script on an AMI box to create directories - vsftpd, pam, mysql
I'd like to first say I'm a noob when it comes to linux, so please excuse my confusion. I'm trying to setup vsftpd on a amazon ami 64 bit box, free tier micro.
Following these instructions, ...
0
votes
0answers
62 views
AWS EC2: Attach ebs volume fails
I'm using a script that uses Amazon EC2 CLI to create ebs volumes from other instances snapshots & attaches them.
The failure happens after creating the volumes - sometimes the attach fails.
This ...
1
vote
1answer
223 views
How, on ubuntu, to run as a service / run under supervision
I have been given 3 clusters. One is of Kafka, one is of storm and one is of ZooKeeper. I need to make it so that the services start and when stopped, start up again as described in the Zookeeper ...
0
votes
0answers
102 views
Unable to connect the Ubuntu EC2 instance to VPC LAN on AWS using secondary NIC adapter?
Infrastructure setup:
VPC is created with 192.168.254.0/24 netwok
Private subnet within VPC (Virtual Private Cloud) is created with 192.168.254.0/25 network
Public subnet within the VPC is created ...
3
votes
2answers
1k views
Building kernel module using dkms, missing headers
I would appreciate, if anybody can help me.
1) I am trying to build kernel module for Ubuntu sever using dkms.
Detailed manual is here.
2) When It is building module using this syntax:
sudo dkms ...
0
votes
1answer
540 views
wget 403 forbidden error on AWS
I'm not the most talented developer out there, and the question I'm asking may be basic, but I need some help:)
I used wget to get source content from Seeking Alpha on my AWS server, and have been ...
0
votes
1answer
196 views
Installing Restund on AWS EC2 Ubuntu
I have successfully installed Restund on a Vagrant Machine running Ubuntu. But when I tried to install it on AWS EC2 Instance running Ubuntu, I get an error when starting Restund.
Error Message: tls ...
0
votes
1answer
105 views
Bash 4.3 yum repository for Amazon Linux
I'm trying to get bash 4.2 (or a more recent version) on Amazon Linux in ec2. The default repository only has Bash 4.1. I'm looking for a yum repository with a recent version.
$ sudo yum install ...
0
votes
2answers
337 views
How do I find and remove Nginx from an EC2 instance?
I want to remove Nginx from my Amazon Linux EC2 server. How can I find it and remove/disable it?
Nginx is listening on port 80, and I need access to that port. It would be preferable to not have to ...
0
votes
0answers
12 views
Dynamic action calls are getting through Amazon CloudFront
We have configured CDN to speed up our website. In our website we are doing some ajax calls basically action calls which take some amount of time to get response from origin server because they are ...
0
votes
1answer
379 views
Cron Log File Outputs Nothing
I get no output from my cronjob. The script the job is executing is:
<?php
require '/opt/bitnami/apps/wordpress/htdocs/wp-load.php';
...
0
votes
2answers
117 views
Memcached on a webserver
We host a Magento webshop hosted by Amazon EC2, and we have speed issues. We're currently looking at moving to another provider. We found one hosting provider where we have a test account now. Speed ...
0
votes
1answer
366 views
Mysql database didn't connect through sqlyog or any other mysql software?
I can connect to a MySQL server through a browser and also I can show all database list through PuTTY. But when I try to use sqlyog or running the mysqldump command through PuTTY it shows this error:
...
0
votes
1answer
4k views
ERROR: init: ttyS0 (/dev/ttyS0) main process (1612) terminated with status 1
I'm getting the following errors every 10-30 seconds on a virtual Red Hat Enterprise Linux 6.5 2 Server on Amazons EC2.
Sep 23 09:57:05 ServerName init: ttyS0 (/dev/ttyS0) main process (1612) ...
1
vote
0answers
42 views
Hosting Multiple Websites on Webmin
I set up a couple of Virtual Servers (websites).
The problem is, does not matter what URL I use, I will always be redirected to the first one Virtual server I created.
Here is the redirective text ...
2
votes
1answer
499 views
systemd mount volume using device symlink
I'm trying to have systemd mount a volume by symlink. Unfortunately when I try it times out waiting for the systemd device to show up.
# systemctl start mnt-ephemeral0.mount
A dependency job for ...
2
votes
1answer
820 views
Virtual Host only works when SELinux is set to permissive - why?
Wondering why my virtual hosts will only work when SELinux is set to "permissive". When SELinux is set to "enforce" my virtual hosts are ignored and default host is shown.
Apache/2.2.15 (Unix)
Here ...
1
vote
0answers
98 views
Virtual Host setup works for one server, not another
Having an issue with my virtual host set up.
Used this tutorial as a reference on both: http://youtu.be/wXIJMtwmPCE
Apache/2.2.15 (Unix) on both servers.
Seemingly Identical httpd.conf file on both ...
6
votes
1answer
2k views
Need to ssh from one Amazon EC2 server into another one
Basically I need to be able to connect from one EC2 instance to another using SSH. I run the command ssh -i path-to-pem-file ec2-user@dns-address-of-ec2-instance, and it times out.
I set my security ...
3
votes
1answer
1k views
Unreferenced inodes on EC2 linux instance
I have an Amazon EC2 instance which I am using as a NFS file server.
It's using a 5x1TB volume RAID0 array.
The system is very I/O intensive and files are being written/copied/deleted through the NFS ...
2
votes
3answers
10k views
How to upload a file from Windows to Linux?
I'm using Windows. I want to upload a file to Amazon server using putty from my Windows system.
How to do this using scp or any other command?
How do I download a file from the Amazon server to my ...
0
votes
2answers
323 views
Locked out of Ubuntu machine
I recently made changes to my EC2/Ubuntu instances by installing OpenSSH, before I was able to SSH just fine, however now I'm getting this error:
ssh: connect to host shopious.com port 22: Connection ...
2
votes
0answers
873 views
Unable to mount XFS volume after reboot - unknown filesystem type 'xfs'
I have an aws ec2 instance that's been running Ubuntu 12.04 for a good long while. It has attached to it an EBS volume formatted with xfs. Today after a reboot, I'm unable to mount this volume. ...
2
votes
1answer
381 views
Why EC2 instance spends all its time in “IRQ” and what to do about it?
I have an m1.small EC2 instance that is mostly just running Apache as a web server for several simple PHP web sites (that use RDS as a database). The server is constantly with a very high load average ...
1
vote
1answer
198 views
Mounting an RAID0 EBS array on EC2
I had a RAID 0 on two EBS volumes running fine on EC2 until the instance was stopped, a snapshot of the EBS volumes created and then restarted again. Now when I go to mount the RAID array I can't seem ...
0
votes
1answer
132 views
Setup SFTP in Ubuntu AMI
I want to setup SFTP on Amazon Ubuntu AMI. I can connect to the instance with PuTTY and access my project file through normal FTP (using Filezilla). For FTP access proftp is installed in Webmin.
Can ...
1
vote
2answers
2k views
Cannot install libevent on CentOS 6.5
I'm on CentOS 6.5. Specifically, I'm running this AMI: Adobe Media Server 5 Extended.
I followed these steps:
$ sudo yum groupinstall "Development Tools"
$ sudo yum install glib2-devel fuse-devel ...
4
votes
1answer
963 views
What is the official Gentoo AMI?
I would like to use Gentoo on Amazon EC2.
What are the right AMI for me to use?
I won't be running X unless necessary. I guess I need a server variant, if there is such a thing.
0
votes
1answer
107 views
Help Deciphering Disk Usage. Where Did the Space Go?
The System
An instance running on Amazon EC2
It is an m1.large EC2 instance
The instance is running Ubuntu Server 12.04 LTS
Here's What Happens...
To begin, let's execute the following:
...
0
votes
1answer
594 views
What is a good distribution to use that is similar to Amazon Linux [closed]
I'm running the "Amazon Linux" OS/distro in production on EC2, But I'd like to do some local development/testing with VirtualBox VMs. What would be a good distribution to use that is most like Amazon ...