国内的教程都是你抄我,我抄你,完全没有自己试过的,大批量教程里让你改/etc/named文件,这特么哪有这个文件,实际修改方式如下: 修改/etc/sysconfig/named文件,修改为如下 #BIND named process options# ~~~~~~ OPTIONS=”-4″# — These additional options will be passed to named# at startup. Don’t add -t here, enable proper# -chroot.service unit file.# Use of parameter -c is not supported here. Extend# systemd named*.service instead. For more# information please read the following KB article:# https://access.redhat.com/articles/2986001 #DISABLE_ZONE_CHECKING — By default, service […]
Monthly Archives: July 2022
centos7添加ntp client并修改时间格式
yum install ntp -y vim /etc/ntp.conf 注释掉原有的server配置 加入自己的server配置 systemctl start ntpd 下面修改时区 tzselect 选Asia–China–beijing 把localtime的软链删了,重新做 rm /etc/localtime ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
centos7关闭网卡IPV6
sudo sh -c ‘echo 1 > /proc/sys/net/ipv6/conf/<interface-name>/disable_ipv6’ sudo sh -c ‘echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6’ 重新启用IPV6 sudo sh -c ‘echo 0 > /proc/sys/net/ipv6/conf/<interface-name>/disable_ipv6’ sudo sh -c ‘echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6’