Most Popular
1500 questions
82
votes
8 answers
AWS RDS connection limits
RDS server come up with 40 connection max, as in the following documentation
I am using Magento 1.9, and at some points, i reach the max number then website is out of service.
Do you have any recommended way to solve this issue?
From my…
Alaa Badran
- 933
82
votes
12 answers
Transfer 15TB of tiny files
I'm archiving data from one server to another. Initially I started a rsync job. It took 2 weeks for it to build the file list just for 5 TB of data and another week to transfer 1 TB of data.
Then I had to kill the job as we need some down time on…
lbanz
- 1,619
- 5
- 24
- 31
82
votes
5 answers
Choosing between meaningful and meaningless hostnames
Assume an environment with a puppet-managed cluster of different servers - various hardware, software, operating systems, virtual/dedicated, etc.
Would you choose meaningful hostnames (mysqlmaster01..99, mysqlslave001..999, vpnprimary, vpnbackup,…
keymone
- 958
82
votes
10 answers
How can I avoid this lftp certificate verification error?
I'm trying to get my Pelican blog working. It uses lftp to transfer the actual blog to ones server, but I always get an error:
mirror: Fatal error: Certificate verification:
subjectAltName does not match ‘blogname.com’
I think lftp is checking…
patrick
- 922
82
votes
11 answers
Why is ssh agent forwarding not working?
In my own computer, running MacOSX, I have this in ~/.ssh/config
Host *
ForwardAgent yes
Host b1
ForwardAgent yes
b1 is a virtual machine running Ubuntu 12.04. I ssh to it like this:
ssh pupeno@b1
and I get logged in without being asked for a…
Pablo Fernandez
- 7,648
82
votes
6 answers
How to scan local network for SSH-able computers?
I am often on one computer in my house and I would like to SSH to another one, but often don't know the IP address of the one I want to connect to. Is there a way, from the command line, to scan the local network so I can find the computer I want to…
Andrew
- 3,593
82
votes
11 answers
How can I create a location in nginx that works with AND without a trailing slash?
Right now I have this config:
location ~ ^/phpmyadmin/(.*)$
{
alias /home/phpmyadmin/$1;
}
However, if I visit www.mysite.com/phpmyadmin (note the lack of trailing slash), it won't find what I'm looking for a 404. I assume because I don't…
Rob
- 2,513
82
votes
3 answers
Install openssl-dev on Ubuntu server
In order to compile NGinx in need to install openssl and openssl-dev (I'am following a book guide).
So i'am doing this :
sudo apt-get install openssl openssl-dev
But i get an error telling me that it's impossible to find openssl-dev.
Also after…
OXMO456
- 923
82
votes
2 answers
How to configure a Windows machine to allow file sharing with a DNS alias
What process is necessary to configure a Windows environment to allow me to use DNS CNAME to reference servers?
I want to do this so that I can name my servers something like SRV001, but still have \\file point to that server, so when SRV002…
Michael Ferrante
- 1,651
82
votes
9 answers
Cannot SSH: debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
We have a server on Amazon EC2 running SSH is on a standard (22) port. I placed my public key at the /.ssh/authorized_keys file. When I run
ssh -vvvv servername
It returns
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
I got someone to…
bakytn
- 1,387
82
votes
6 answers
How do I delete a route from Linux routing table
This turns out to be harder than I thought. The routes I want to delete are the "!" rejected routes, but I can't seem to formulate the right "route del" command to pull it off.
Here is the routing table...
Destination Gateway Genmask …
user54259
82
votes
6 answers
How can I check in bash if a shell is running in interactive mode?
How can I tell (in ~/.bashrc) if I'm running in interactive mode, or, say, executing a command over ssh. I want to avoid printing of ANSI escape sequences in .bashrc if it's the latter.
Alex B
- 1,844
82
votes
11 answers
Dealing with HTTP w00tw00t attacks
I have a server with apache and I recently installed mod_security2 because I get attacked a lot by this:
My apache version is apache v2.2.3 and I use mod_security2.c
This were the entries from the error log:
[Wed Mar 24 02:35:41 2010] [error]…
Saif Bechan
- 11,060
82
votes
3 answers
In Bash, are wildcard expansions guaranteed to be in order?
Is the expansion of a wildcard in Bash guaranteed to be in alphabetical order? I am forced to split a large file into 10 Mb pieces so that they can be be accepted by my Mercurial repository.
So I was thinking I could use:
split -b 10485760 Big.file…
Sled
- 965
- 1
- 7
- 11
82
votes
2 answers
sudoers: how to disable requiretty per user
I don't want to comment out the line in /etc/sudoers:
Defaults requiretty
Instead, I only want a certain user not to require a tty.
How can this be done?
user27451
- 1,201