Tag: Linux

Run RabbitMQ as a non-root user

By default, the provided Fedora / RHEL RabbitMQ RPM creates a local user account called ‘rabbitmq’. However, the app needs to be started by the root user, which starts the service as the rabbitmq use

How to configure rsyslog 7.4.9 with TLS

How to configure rsyslog 7.4.9 with TLS If you’re looking to encrypt syslog transmissions between client and server, you can do so via rsyslog with TLS. Please see the external link to rsyslog.com be

Redirect command line results into while loop

In a scenario where there are various config files contained throughout various subdirectories where one needs to commit mass updates quickly, it’s possible to redirect the results of a command into a

Daily Log Maintenance

For systems that have lots of application logs, this shell script can be run from cron on a daily basis to maximize space utiliazation by gzipping and deleting old log files by the defined time limita

couldn't find device with uuid

Linux LVM commands result in Couldn’t find device with uuid Couldn’t find all physical volumes for volume group Help! Commands like lvs, lvdisplay, vgdisplay, and pvscan result in an error like the

Rename batch of files

How to rename a batch or group of fileskreese@MacBook ~/wbsvr $ ls -l total 200 -rwx------ 1 kreese 1575811233 34652 Mar 19 16:49 httpd.conf -rw-r--r-- 1 kreese 1575811233 13609 Mar 25 08:30 vho

Zero byte a File

/dev/null (zero out) a bunch of files at oncecd /var/logcat /dev/null | tee {boot.log,cron,dmesg,lastlog,messages,secure,vzctl.log,vznetcfg.log,wtmp} >boot.log>cron>dmesg>message

netmasks table

Decimal Binary CIDR Hex------------------------------------------------------------------- 11111111.11111111.11111111.11111111 /32 ffffffff255.