Most Popular

1500 questions
42
votes
4 answers

How do I remove a specific bad plan from the SQL Server query cache?

We have one particular SQL Server 2008 query (not a stored proc, but the same SQL string -- executes every 5 minutes) that intermittently caches a very bad query plan. This query normally runs in a few milliseconds, but with this bad query plan, it…
Jeff Atwood
  • 12,994
  • 20
  • 74
  • 92
42
votes
10 answers

Docker pull: TLS handshake timeout

I get this consistenly (Ubuntu 16.04 LTS): $ docker pull nginx Using default tag: latest Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: TLS handshake timeout However curl TLS works fine (apart from the auth error): $…
Willem
  • 2,712
  • 3
  • 27
  • 34
42
votes
4 answers

I updated my CentOS 7 system. Why is Meltdown/Spectre only partially mitigated?

Like many of us, I spent yesterday updating a whole lot of systems to mitigate the Meltdown and Spectre attacks. As I understand it, it is necessary to install two packages and…
Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
42
votes
7 answers

Monitoring HTTP traffic using tcpdump

To monitor HTTP traffic between a server and a web server, I'm currently using tcpdump. This works fine, but I'd like to get rid of some superfluous data in the output (I know about tcpflow and wireshark, but they're not readily available in my…
otto.poellath
  • 545
  • 1
  • 5
  • 9
42
votes
3 answers

How to set system time dynamically in a Docker container

Is there any way to set a Docker containers system time dynamically (at run time) without effecting the host machine? Using hwclock --set --date "Sat Aug 17 08:31:24 PDT 2016" gives the following error: hwclock: Cannot access the Hardware Clock…
Vingtoft
  • 1,467
  • 3
  • 15
  • 16
42
votes
6 answers

What are named and default instances?

What are named and default instances? What is/are the difference(s) between them? Why they are used?
Novice Developer
  • 523
  • 1
  • 4
  • 4
42
votes
7 answers

Is it becoming impossible to be a small mail provider?

I operate a small mail server for my private emails, some friends who have websites and two NGOs. In total my server sends between 60 and 400 messages a day. Now a lot of these emails are personal mails, between two or more people who know each…
Stefan Seidel
  • 732
  • 1
  • 7
  • 20
42
votes
5 answers

How to shrink /home and add more space on CentOS7

CentOS 7 file system is XFS, And resize2fs doesn't work. I need to shrink /home to 400G and add 100G space to /. What should I do? # df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 50G 50G 341M 100%…
GoingMyWay
  • 545
  • 2
  • 6
  • 10
42
votes
7 answers

Using RSYNC with Amazon S3

I am interested in using Amazon S3 to backup our ~ 100gb server images (created via Acronis backup tools) Obviously, this uploading to S3 every night would be expensive, in terms of bandwidth and cost. I'm considering using rsync with S3 and came…
alex
  • 1,710
  • 15
  • 43
  • 63
42
votes
2 answers

What does the at-sign "@" mean in nginx location blocks?

I've encountered a few questions and answers on here that use this syntax: location @default { # ... } location /somewhere { try_files $uri @default; } I've searched high and low on the Googles and I can't seem to find any documentation of…
ccnokes
  • 649
  • 1
  • 6
  • 9
42
votes
2 answers

nginx split large configuration file

My nginx default configuration file is becoming huge. I'd like to split it to smaller config files, each including only one, maximum 4 locations to each file, so that I can enable/disable them quickly. Actual file looks like this: server { …
oliverjkb
  • 554
  • 1
  • 4
  • 10
42
votes
8 answers

Server Room Temperature Control

We have a makeshift server room that contains a rack with half a dozen servers and some network equipment. The room is cooled by a dual-hose portable a/c unit that is vented into the attic. At this time the portable a/c unit can not keep up with the…
Brandon
  • 531
  • 4
  • 5
42
votes
6 answers

Is my Hard Drive Failing?

I just tried to run a test on my hdd and it doesn't want to complete a self test. Here is the result: smartctl --attributes --log=selftest /dev/sda smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-32-generic] (local build) === START OF READ SMART…
Michel
  • 423
  • 4
  • 4
42
votes
10 answers

Run antivirus software on linux DNS servers. Does it make sense?

During a recent audit we were requested to install antivirus software on our DNS servers that are running linux (bind9). The servers were not compromised during the penetration testing but this was one of the recommendations given. Usually linux…
John Dimitriou
  • 523
  • 4
  • 5
42
votes
4 answers

Where is the statement of deprecation of ifconfig (on linux)?

A lot of people is stating that the ifconfig command is deprecated in favor of the ipone (on linux at least). This is often used as an argumentation to switch from ifconfig to ip (see some comment and answer of Should I quit using Ifconfig?). Where…
Bruno BEAUFILS
  • 523
  • 1
  • 4
  • 5