自动启动网卡
CENTOS安装完后,网卡默认没有激活,无法分配IP地址
/etc/sysconfig/network-scripts/ifcfg-enp0s3
DEVICE=enp0s3
BOOTPROTO=dhcp
ONBOOT=yes
systemctl restart network
set the default route on interface
DEFROUTE="yes"
删除MariaDB
rpm -qa | grep mariadb
sudo yum remove -y mariadb mariadb-server
rpm -qa | grep mariadb
yum remove -y mariadb-libs-5.5.65-1.el7.x86_64
rm -rf /var/log/mariadb
rm -f /var/log/mariadb/mariadb.log.rpmsave
rm -rf /var/lib/mysql
rm -rf /usr/lib64/mysql
rm -rf /usr/share/mysql
install
sudo yum install MariaDB-server sudo systemctl start mariadb.service
安装polipo
git clone https://github.com/jech/polipo.git
cd polipo
git checkout polipo-1.1.1
yum groupinstall 'Development Tools'
yum install texinfo
make all
su -c 'make install'
包管理
yum list available
yum repolist
yum repo-pkgs kubernetes list