Notes by Peter Galonza(Пётр Галонза)
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Install Centos

Mirror repository

https://mirror.yandex.ru/centos/

Repository

yum/dnf install epel-release

Packet

yum/dnf wget vim htop tmux

No root ssh

echo "PermitRootLogin no" >> /etc/ssh/sshd_config

Change host name

hostnamectl set-hostname

Set default zone

firewall-cmd --set-default=internal

Disable selinux /etc/sysconfig/selinux

sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
systemctl reboot

Disable IPV6

echo net.ipv6.conf.all.disable_ipv6 = 1 >> /etc/sysctl.conf
echo net.ipv6.conf.default.disable_ipv6 = 1 >> /etc/sysctl.conf

Centos 8

Activation the web console

systemctl enable --now cockpit.socket

MariaDB

https://downloads.mariadb.org/MariaDB/repositories/#mirror=netinch

yum/dnf install MariaDB-backup MariaDB-server MariaDB-client

File limit

/etc/sysctl.conf

Maximum of objects inotify per user

fs.inotify.max_user_instances=

Maximum of watch files and directories per object inotify

fs.inotify.max_user_watches=

Maximum of events in queued

fs.inotify.max_queued_events=

Maximum of open descriptors

fs.file-max=

PAM limits configuration

/etc/security/limits.conf /etc/security/

* soft nproc 65535
* hard nproc 65535
* soft nofile 65535
* hard nofile 65535

Repository

Exclude packages /etc/yum.repos.d/

Exclude=