Отключаем SElinux:
$ setenforce 0; sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux
Установить Net-Tools:
yum -y install net-tools
Установить VMware-Tools:
yum -y install open-vm-tools; service vmtoolsd start; systemctl enable vmtoolsd.service
Отключаем FirewallD:
systemctl stop firewalld; systemctl disable firewalld
Устанавливаем и настраиваем IPtables и Wget:
yum -y install iptables-services wget; systemctl enable iptables; systemctl start iptables
Подключиение репозиториев:
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E '%{rhel}').noarch.rpm
sudo yum install https://$(rpm -E '%{?centos:centos}%{!?centos:rhel}%{rhel}').iuscommunity.org/ius-release.rpm
$ setenforce 0; sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux
Установить Net-Tools:
yum -y install net-tools
Установить VMware-Tools:
yum -y install open-vm-tools; service vmtoolsd start; systemctl enable vmtoolsd.service
Отключаем FirewallD:
systemctl stop firewalld; systemctl disable firewalld
Устанавливаем и настраиваем IPtables и Wget:
yum -y install iptables-services wget; systemctl enable iptables; systemctl start iptables
Подключиение репозиториев:
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E '%{rhel}').noarch.rpm
sudo yum install https://$(rpm -E '%{?centos:centos}%{!?centos:rhel}%{rhel}').iuscommunity.org/ius-release.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm; rpm -Uvh
http://repo.webtatic.com/yum/el7/webtatic-release.rpm
https://support.rackspace.com/how-to/install-epel-and-additional-repositories-on-centos-and-red-hat/
Установка NTP:
yum -y install ntp; cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime
crontab -e
0 0 * * * /sbin/ntpdate ru.pool.ntp.org
systemctl enable ntpd
Устанавливаем количество ядер системы не более 2х:
sed -i 's/installonly_limit=5/installonly_limit=2/g' /etc/yum.conf
Обновление системы:
yum -y update
Всё сразу:
setenforce 0; sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux; yum -y install net-tools; yum -y install open-vm-tools; service vmtoolsd start; systemctl enable vmtoolsd.service; systemctl stop firewalld; systemctl disable firewalld; yum -y install iptables-services wget; systemctl enable iptables; systemctl start iptables; rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm; rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm; rpm -Uvh http://repo.webtatic.com/yum/el7/webtatic-release.rpm; sed -i 's/installonly_limit=5/installonly_limit=2/g' /etc/yum.conf; yum -y update
http://repo.webtatic.com/yum/el7/webtatic-release.rpm
https://support.rackspace.com/how-to/install-epel-and-additional-repositories-on-centos-and-red-hat/
Установка NTP:
yum -y install ntp; cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime
crontab -e
0 0 * * * /sbin/ntpdate ru.pool.ntp.org
systemctl enable ntpd
Устанавливаем количество ядер системы не более 2х:
sed -i 's/installonly_limit=5/installonly_limit=2/g' /etc/yum.conf
Обновление системы:
yum -y update
Всё сразу:
setenforce 0; sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/sysconfig/selinux; yum -y install net-tools; yum -y install open-vm-tools; service vmtoolsd start; systemctl enable vmtoolsd.service; systemctl stop firewalld; systemctl disable firewalld; yum -y install iptables-services wget; systemctl enable iptables; systemctl start iptables; rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-8.noarch.rpm; rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm; rpm -Uvh http://repo.webtatic.com/yum/el7/webtatic-release.rpm; sed -i 's/installonly_limit=5/installonly_limit=2/g' /etc/yum.conf; yum -y update
Комментариев нет:
Отправить комментарий