Author: Nikko
I am currently a DevOps Engineer and run the blog
(swissarmydevops.com).
Create a MySQL user with full permissions to a database or table
Login to MySQL mysql -uUSER -p Create a user CREATE USER ‘newuser‘@’localhost‘ IDENTIFIED BY ‘password‘; Give that user access to something GRANT ALL PRIVILEGE... Read MoreGenerate and install an SSL Certificate – Apache
Part 1 – Generate CSR & Obtain Certifcate Create the CSR openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr Fill in information Common Name: T... Read MoreHow to create symbolic and hard links – Linux
Hard Link: Creates another file with a link to the same underlying inode. The inode is only deleted when all links to the inode have been deleted. Soft/Symbolic Link: Creates a link to anoth... Read MoreCreate a file to be used as ‘SWAP’ memory
Create a blank file where you would like the swap partition mounted touch /swapfile Allocate the amount of memory you want to the file fallocate -l 4GB /swapfile Change the permissions on the file to ... Read MoreRemove ‘/home’ partition and extend the root partition (LVM)
*** This might be needed when you spin up a CentOS VM with the default file system partitioning and you want to combine ‘/home’ into ‘/’ Make a new directory on the root partition mkdir /home-... Read MoreExtend an existing partition (fdisk) – Linux
*** Note, you will need to be sure that the virtual drive’s allocated space has being used has been expanded before beginning *** Check current size df -h List the existing partitions fdisk -l E... Read MoreCreate a new partition (fdisk) – Linux
List the existing partitions fdisk -l Edit the drive in fdisk fdisk /dev/[Insert Disk] Create a new partition by pressing ‘n’ and following the instructions n Verify changes and save p w F... Read MoreTroubleshooting High CPU – Linux
It’s when you feel most confident troubleshooting CPU issues that the Linux Gods grin and throw a new problem your way. This guide will help you deal with those ungodly moments when both the loa... Read More- 7 of 7
- « Previous
- 1
- …
- 5
- 6
- 7