I am a new CentOS / RHEL 6.x server user and DevOP. I need to lock a package called nginx on a server being updated via yum command. How do I lock package version at a particular version on CentOS / Red Hat Enterprise Linux (RHEL) 6.x or Fedora Linux?
Friday, January 3, 2014
Thursday, January 2, 2014
Linux / Unix: whereis Command Examples
Iam a new Linux and Unix-like system command line user. How do I find and locate the binary, source, and manual page files for a given command?
You need to use the whereiscommand to find the source, binary, and manuals sections for specified commands or files.
You need to use the whereiscommand to find the source, binary, and manuals sections for specified commands or files.
Wednesday, January 1, 2014
Nginx: Redirect Backend Traffic Based Upon Client IP Address
I have four Apache backend servers in front of nginx reverse proxy server. How do I make sure nginx reverse proxy load balancer always send specific client IP address (say IP 1.2.3.4) request to http://apachereadwrite/ backend and rest to http://apachereadonly/ backend?
Nginx web server does support if conditionalconfiguration. You can redirect and/or select configuration depending on client ip address. In this case you need to use the variable called $remote_addr which can be used to retrieve information about the users ip address. This is useful if you want to give file upload capabilities to your own office IP address and read-only capabilities to the rest of the world based upon client IP address or vpn address:
Nginx web server does support if conditionalconfiguration. You can redirect and/or select configuration depending on client ip address. In this case you need to use the variable called $remote_addr which can be used to retrieve information about the users ip address. This is useful if you want to give file upload capabilities to your own office IP address and read-only capabilities to the rest of the world based upon client IP address or vpn address:
Monday, December 30, 2013
CentOS / RHEL 6: Install Midnight Commander File Manager
I am a new CentOS Linux user. How do I install GNU mc (Midnight Commander) on Red Hat Enterprise Linux or CentOS Linux server version 5.x/6.x using bash command line?
GNU Midnight Commander (also known as mc) is a free and visual file manager, licensed under GNU General Public License. It is a clone of Norton Commander. It was started by Miguel de Icaza in 1994. It's a feature rich full-screen text mode application that allows you to copy, move and delete files and whole directory trees, search for files and run commands in the subshell. Internal viewer and editor are included.
GNU Midnight Commander (also known as mc) is a free and visual file manager, licensed under GNU General Public License. It is a clone of Norton Commander. It was started by Miguel de Icaza in 1994. It's a feature rich full-screen text mode application that allows you to copy, move and delete files and whole directory trees, search for files and run commands in the subshell. Internal viewer and editor are included.
Friday, December 20, 2013
Linux: Keep An Eye On Your System With Glances Monitor
Is there is a tool that can provide me a maximum of information (such as cpu, disk I/O, network, nfsd, memory and more) about my Linux/Unix server in a minimum of space in a terminal?
There are plenty of monitoring tools on Linux or Unix-like systems that can provide information about your server:
There are plenty of monitoring tools on Linux or Unix-like systems that can provide information about your server:
Wednesday, December 11, 2013
What Does –– (double dash) Mean In SSH Shell Command?
see lots of seasoned admins and cloud provider wrapper scripts use ssh client command as follows in shell:
ssh nixcraft@server1.cyberciti.biz --
What the double -- (dash) does here? Why it is used in this shell command and why not just use the following?