Most Popular

1500 questions
46
votes
15 answers

NGinx Best Practices

What best practices do you use while using NGinx?
46
votes
6 answers

Forwarding ports to guests in libvirt / KVM

How can I forward ports on a server running libvirt/KVM to specified ports on VM's, when using NAT? For example, the host has a public IP of 1.2.3.4. I want to forward port 80 to 10.0.0.1 and port 22 to 10.0.0.2. I assume I need to add iptables…
steveh7
  • 463
  • 1
  • 5
  • 4
46
votes
3 answers

How can I get CPU count and total RAM from the OS X command line?

How can I get CPU count and total RAM from the OS X command line?
yazz.com
  • 7,483
46
votes
3 answers

What is the maximum number of files a file system can contain?

Given the current structure of a directory entry on a ext4 file system on Ubuntu, what is the maximum number of files a file system can contain? What is the general method of calculating the maximum number of files a file system can contain?
user32678
45
votes
6 answers

Linux - How do I see when a process started?

How can I see when a process started, assuming I know the pid. (On Linux)
Amandasaurus
  • 32,281
  • 69
  • 194
  • 263
45
votes
5 answers

bzip2 too slow. Multiple cores are avaible

I am running this command: pg_dumpall | bzip2 > cluster-$(date --iso).sql.bz2 It takes too long. I look at the processes with top. The bzip2 process takes about 95% and postgres 5% of one core. The wa entry is low. This means the disk is not the…
guettli
  • 3,833
45
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,597
45
votes
3 answers

Can different AWS accounts manage different subdomains?

I have two AWS accounts. The master account with example.com as a Hosted Zone, this then has a number of record sets (i.e. api.example.com and kibana.example.com). A second account will be managing testing.example.com as a Hosted Zone, with the…
mlk
  • 561
45
votes
1 answer

For Server-Sent Events (SSE) what Nginx proxy configuration is appropriate?

I've read a bunch of different questions on what Nginx configuration is appropriate for SSE and came up with some confusing results regarding what settings to…
c4urself
  • 5,690
45
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%…
45
votes
4 answers

How is Docker Compose version 2 "volumes" syntax supposed to look?

With Docker Compose v1.6.0+, there now is a new/version 2 file syntax for the docker-compose.yml file. The changes include a separate top level key named volumes. This allows to "centralize" volume definitions in one place. What I am trying to do is…
kaiser
  • 1,241
45
votes
4 answers

Ubuntu 15.10 Server; W: Possible missing firmware /lib/firmware/ast_dp501_fw.bin for module ast

I'm running Ubuntu 15.10 server on a Asrock E3C226D2I board. When I get a kernel update or run update-initramfs -u I get a warning about missing firmware: root@fileserver:~# update-initramfs -u update-initramfs: Generating…
wouter
  • 553
45
votes
5 answers

Why are many admins using 'Turn off Automatic Root Certificates Update' Policy?

My company distributes a Windows Installer for a Server based product. As per best practices it is signed using a certificate. In line with Microsoft's advice we use a GlobalSign code signing certificate, which Microsoft claims is recognised by…
45
votes
12 answers

Equivalent of Linux command `hostname --fqdn` in Windows XP?

Is there a way to find the fully qualified domain name of a Windows XP box? Being unfamiliar with Windows I would describe what I'm looking for as the equivalent of the command hostname --fqdn available in Linux.
45
votes
2 answers

Slow ssh login - Activation of org.freedesktop.login1 timed out

On one of my servers I've noticed really delay on SSH logins. Connecting using the ssh -vvv options the delay occurs at debug1: Entering interactive session. extract of connection: debug1: Authentication succeeded (publickey). Authenticated to…
Alasdair
  • 571