Install MariaDB as a database management system DBMS
sudo apt install mariadb-server
Create a new database named srvmail
for a mail server:
# Source: https://gist.github.com/4e2fd2696ef7d5ce6a915a2eb2408e17 | |
################################################################### | |
# How To Manage Production-Grade Kubernetes Clusters With Rancher # | |
# https://youtu.be/JFALdhtBxR8 # | |
################################################################### | |
# Additional Info: | |
# - Rancher: https://rancher.com/products/rancher | |
# - Rancher Fleet: GitOps Across A Large Number Of Kubernetes Clusters: https://youtu.be/rIH_2CUXmwM |
# source: http://st-on-it.blogspot.com/2010/01/how-to-move-folders-between-git.html | |
# First of all you need to have a clean clone of the source repository so we didn't screw the things up. | |
git clone git://server.com/my-repo1.git | |
# After that you need to do some preparations on the source repository, nuking all the entries except the folder you need to move. Use the following command | |
git filter-branch --subdirectory-filter your_dir -- -- all | |
# This will nuke all the other entries and their history, creating a clean git repository that contains only data and history from the directory you need. If you need to move several folders, you have to collect them in a single directory using the git mv command. |
#!/usr/bin/env bash | |
##### | |
# Script to install postfix | |
##### | |
DOMAIN="example.com" | |
EMAIL="haisum@example.com" | |
PASSWORD="example.com1*" |
$ apk add --no-cache curl
$ echo "cgroup /sys/fs/cgroup cgroup defaults 0 0" >> /etc/fstab
$ cat > /etc/cgconfig.conf <<EOF
mount {
cpuacct = /cgroup/cpuacct;
memory = /cgroup/memory;
devices = /cgroup/devices;
freezer = /cgroup/freezer;
#!/bin/bash | |
# blog: https://sysadmins.co.za/mail-server-virtual-users-mysql-postfixadmin-on-centos/ | |
# dependencies | |
yum update -y | |
yum --enablerepo=centosplus install postfix mailx mutt -y | |
yum install dovecot mysql-server dovecot-mysql cyrus-sasl cyrus-sasl-devel -y | |
# mysql configuration | |
chkconfig mysqld on |