Bridge network interfaces

// Centos // ifcfg-br0 DEVICE=”br0″ BOOTPROTO=”static” NM_CONTROLLED=”no” ONBOOT=”yes” TYPE=”Bridge” STP=”yes” DELAY=2 IPADDR=”192.168.xxx.xxx” PREFIX=”24″ GATEWAY=”192.168.xxx.xxx” DNS1=”8.8.8.8″ ifcfg-eno1 DEVICE=”eno1″ ONBOOT=yes DEVICETYPE=Ethernet NAME=”eno1″ BRIDGE=br0  

Centos 7 + postfix +postfix admin + dovecot + mysql

useradd -g vmail -u 5000 vmail -d /home/vmail -m yum install dovecot dovecot-mysql  postfix mariadb  mariadb-server php php-imap php-mbstring php-pdo php-mysql php-fpm (optional postfix-perl-scripts) secure mysql installation mysql_secure_installation mysql – CREATE DATABASE postfix; CREATE USER ‘postfix’@’localhost’ IDENTIFIED BY ‘shibaniakus’; GRANT ALL PRIVILEGES ON `postfix` . * TO ‘postfix’@’localhost’; // Postfix // vim /etc/postfix/main.cf virtual_uid_maps = …

Continue reading ‘Centos 7 + postfix +postfix admin + dovecot + mysql’ »

Redmine How To /postgres

/var/lib/pgsql/9.6/data/pg_hba.conf host redmine redmine 127.0.0.1/32 md5 user add redmine12 add redmine12 in sudoers cd /home/redmine12 wget http://www.redmine.org/releases/redmine-3.3.1.tar.gz sudo tar zxvf redmine-3.3.1.tar.gz sudo su postgres psql CREATE ROLE redmine LOGIN ENCRYPTED PASSWORD ‘@@’ NOINHERIT VALID UNTIL ‘infinity’; CREATE DATABASE redmine WITH ENCODING=’UTF8′ OWNER=redmine; cd redmine-3.3.1 Copy config/database.yml.example to config/database.yml and edit production: adapter: postgresql database: redminedb …

Continue reading ‘Redmine How To /postgres’ »