标签:down update -o arch ble 软件 ntp 参数 重启
hostnamectl set-hostname ABC
netstat/ss -lntcp
rpm -ql python
find /tmp/ -name
yum install vim
vim /etc/sysconfig/selinux 状态改为disabled
vim /etc/chrony.conf
server端:
server ntp.aliyun.com iburst
allow *
chronyc tracking
client端:
server server-ip iburst
ntpdate -u IP #-u参数可以越过防火墙与主机同步)
检查chrony情况:chronyc -- sources sourcestas client
cd /etc/yum.repo
yum search / list / update / remove / makecache /repolist
ifup eth0 / ifdown eth0
yum install wget
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
sed -i -e ‘/mirrors.cloud.aliyuncs.com/d‘ -e ‘/mirrors.aliyuncs.com/d‘ /etc/yum.repos.d/CentOS-Base.repo
yum makecache
vim /etc/resolv.conf nameserver ip
vim /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 =1
net.ipv6.conf.default.disable_ipv6 =1
sysctl -p
若系统正在运行
echo 1>/proc/sys/net/ipv6/conf/all/disable_ipv6
echo 1>/proc/sys/net/ipv6/conf/default/disable_ipv6
或者
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
重启生效
reboot
netstat -lnpt
yum install net-tools
cd /sys/class/scsi_host
echo "---" > /sys/class/scsi_host/host0/scan
du -smh *
标签:down update -o arch ble 软件 ntp 参数 重启
原文地址:https://www.cnblogs.com/kylingx/p/11623809.html