Uživatelské nástroje

Nástroje pro tento web


centos

CentOS

NetInstall URL

CentOS 6

CentOS 7

Změna hostname

V /etc/sysconfig/network změnit proměnou HOSTNAME a v /etc/hosts.

Tohle nestačí na permanentní změnu!

shell# hostname bflmpsvz

Permanentní změna pro Centos 7.X

shell# hostnamectl set-hostname name

YUM

shell# yum clean metadata
shell# yum clean all
shell# yum update
shell# yum install yum-plugin-security.noarch
shell# yum updateinfo list --security --quiet
shell# yum repolist

Dokončení transakce

shell# yum install yum-utils.noarch
shell# yum-complete-transaction

Spadlá transakce - mazání duplicit

shell# package-cleanup --cleandupes

EPEL repository

shell# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
shell# rpm -ivh epel-release-6-8.noarch.rpm

Instalace PDFtk

http://www.pdflabs.com/docs/install-pdftk-on-redhat-or-centos/

shell# yum install glibcj
shell# rpm -i pdftk-*.rpm

Sloučení PDF dokumentů

shell> pdftk file1.pdf file2.pdf cat output final.pdf

Automatic security updates

https://serversforhackers.com/video/automatic-security-updates-centos

shell# yum upgrade
shell# yum --security upgrade
shell# yum --security upgrade-minimal

Nefunkční rsyslog

/var/log/messages
...
... rsyslogd-3000: sd_journal_get_cursor() failed: 'Cannot assign requested address'
...
shell# rm -f /var/lib/rsyslog/imjournal.state
shell# systemctl restart rsyslog.service
shell# systemctl status rsyslog.service

Free up space on CentOS/RHELL /boot safely

shell# yum remove `rpm -q kernel | grep -v 'uname -r'`

CentOS 7 iptables

shell# systemctl disable firewalld
shell# yum install -y iptables-services
shell# systemctl enable iptables

/etc/sysconfig/iptables

centos.txt · Poslední úprava: 2017/06/06 09:43 autor: blazek