Most Popular
1500 questions
47
votes
6 answers
How do I access a local web server on my laptop from another computer?
I have an app running on my computer at 127.0.0.1:3000
I would like to access that app from an iPhone connected to the same network. I have done this before but blanking out on how I did it. Any ideas?
Tony
- 1,341
47
votes
7 answers
Is it safe to have SQL Server auto-shrink turned on?
There are many SQL Server options that can be enabled for databases, and one of the most misunderstood ones is auto-shrink. Is it safe? If not, why not?
Paul Randal
- 7,224
47
votes
7 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
- 473
47
votes
4 answers
How to set up stats for HAProxy?
I can't figure out how to set up stats for HAProxy.
This is my configuration:
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
daemon
#debug
user haproxy
group haproxy
maxconn 4096
stats socket…
Jan Deinhard
- 2,403
47
votes
6 answers
Listing available smb shares on a network through the command line in linux
I was wondering if there is a way of listing all the smb servers on a local network (like looking at a network neighborhood in windows) via the command line in fedora.
jcb344
- 693
47
votes
5 answers
Nginx vs Apache as reverse proxy, which one to choose
this kind of question maybe has been asked here
but I couldn't find any that really match my question.
Heard that nginx performance is quite impressive,
but Apache has more docs, community(read:expert) to get help
Now what I want to know,
how both…
mhd
- 675
47
votes
3 answers
How to view hidden files using Linux `find` command
On a Linux server, I need to find all files with a certain file extension in the current directory and all sub-directories.
Previously, I have always used the following command:
find . -type f | grep -i *.php
However, it doesn't find hidden files,…
Tom
- 4,522
47
votes
10 answers
Which is better: RAID5 + 1 Hotspare / RAID6?
Just curious, I have 6 x 1TB 7200RPM Near Line SAS for my new server. I can either configure it as RAID5+1 Hot Spare or RAID6.
What should I choose?
Raptor
- 1,055
- 4
- 19
- 42
47
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,953
46
votes
7 answers
How to increase disk size in a stateful set
I'm managing an Elasticsearch deployment in Kubernetes. I see that the disk storage is getting close to full, so I would like to increase the size of the persistent volumes.
I want to change this value in the Stateful…
Brent Bradburn
- 561
46
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
- 13,264
46
votes
6 answers
IIS Log Request Body / POST Data
Does anyone know how I could get IIS to log POST data or the entire HTTP request?
Jim
46
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,811
46
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,647
- 3
- 16
- 17
46
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
- 563