xargs is a unix command used to build and execute commands from standard input. Some commands can accept standard input as a parameter or argument by using pipe (for example grep uses pipe). Other commands disregard the standard input stream and rely solely on arguments after the command (such as echo). Quick Links:


Logrotate can be used to prevent log files getting too large and taking up too much disk space. Quick Links: Configuring /var/logrotate.conf Log rotate configuration blocks for applications Log rotation configuration block example Log rotation ‘count’ Log rotation ‘interval’ Log rotation ‘size’ Log rotation ‘compression’ Log rotation ‘nocompress’ to prevent logs being compressed Log rotation […]


The following guide will show how to do a basic install and configuration of lsync for a master-slave configuration. With this configuration lsync will sync the files every 20 milliseconds. Quick Links: Configuring ssh keys Master server installations Configuring /etc/init.d/lsyncd Configuring sync directories and slave servers in lsyncd.lua


Quick Links: Setting up NFS on CentOS (server and client) Setting up NFS on CentOS (NFS Server) Setting up NFS share location CentOS (NFS server) NFS TCP Wrappers Configuring the client(s) Mounting the share CentOS (client) Auto mounting on server boot NFS Commands

nginx, php-fpm and server blocks

Tutorial on installing and configuring nginx webserver, php-fpm and vhost (server blocks) Quick Links: Nginx Repository Install Nginx Nginx Vhost Config nginx vhost symbolic link   To install Nginx you may need to add a repo to your server. Yum repo can be added by adding an nginx repo (nginx.repo) to /etc/yum.repos.d/ Full path: /etc/yum.repos.d/nginx.repo You […]