1.搜尋套件庫,查看套件資訊
#dnf search glibc
#dnf provides */libc.a
2.glibc-static套件資訊在 /etc/yum.repos.d/CentOS-PowerTools.repo,先啟用此套件庫
dnf config-manager --enable PowerTools
1.搜尋套件庫,查看套件資訊
#dnf search glibc
#dnf provides */libc.a
2.glibc-static套件資訊在 /etc/yum.repos.d/CentOS-PowerTools.repo,先啟用此套件庫
dnf config-manager --enable PowerTools
安裝作業系統版本:CentOS Linux release 7.5.1804(core)
介面:Gnome視窗介面
一、檢查目前是否已安裝iBus注音輸入法
[demo@tester ~]$ yum list installed | grep ibus
Error: No matching Packages to list
1.安裝
sudo yum install yum-utils
2.範例:
(1)啟用 /etc/yum.repos.d/ 中 Docker套件庫
sudo yum-config-manager --enable docker-ce-edge
一、檢視系統版本
1.使用 cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
2.使用 cat /proc/version
Linux version 3.10.0-862.6.3.e17.x86_64 (builder@kbuilder.dev.centos.org)(gcc version 4.8.5.20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Tue Jun 26 16:32:21 UTC 2018
1.先安裝套件庫
yum install epel-release
2.安裝支援支援firewalld的fail2ban
yum install fail2ban-firewalld fail2ban-systemd fail2ban-server fail2ban-sendmail
一、啟用、停用、檢查firewalld狀態
1.檢查防火牆啟動狀態
systemctl status firewalld
2.啟動防火牆
systemctl start firewalld
一、建立自簽憑證提供網站使用SSL
二、安裝Apache與設定
1.安裝Apache與php-fpm
yum install -y httpd httpd-tools php-fpm
1.安裝EPEL
yum install epel-release
2.更新套件庫
yum update
locally checks for signs of a rootkit
比照
MySQL官方文件
https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/
1.更新Yum Repository
於https://dev.mysql.com/downloads/repo/yum/
1.新增套件庫
2.安裝
yum install rkhunter
3.更新
想確認目前安裝CENTOS版本,可透過下列方法:
一、檢視系統檔
1.cat /etc/redhat-release
內容範例:
CentOS Linux release 7.3.1611 (Core)
若在var/log/maillog中,發現下列錯誤時:
postfix/smtpd[2235]: fatal: open database /etc/postfix/virtual.db: No such file or directory
請先檢查/etc/postfix/virtual.db是否存在
若不存在請執行
postmap /etc/postfix/virtual
問題:若/var/log/message中有下列類似訊息時
Apr 20 23:42:53 ns1 named-sdb[1831]: error (network unreachable) resolving 'sgros.blogspot.tw/A/IN': 2001:cd8:800::8#53
Apr 20 23:42:53 ns1 named-sdb[1831]: error (network unreachable) resolving 'sgros.blogspot.tw/A/IN': 2001:b020:0:77::1#53
Apr 20 23:42:53 ns1 named-sdb[1831]: error (network unreachable) resolving 'sgros.blogspot.tw/A/IN': 2001:c50:ffff:1::230#53
1.備份/etc/sysconfig/selinux
2.編輯/etc/sysconfig/selinux
將SELINUX=enforcing 改為
SELINUX=disabled
3.重新開機