Centos6.9常用命令
iso
http://centos.ustc.edu.cn/centos/6.9/isos/x86_64/CentOS-6.9-x86_64-bin-DVD1.iso
yum source
shell
# /etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-6
failovermethod=priority
baseurl=https://vault.centos.org/6.9/os/x86_64/
gpgcheck=0
network
shell
ifup eth0
ssh server
shell
yum update
yum install -y openssh-server openssh-clients
service sshd start
golang
shell
sudo rpm --import https://mirror.go-repo.io/centos/RPM-GPG-KEY-GO-REPO
curl -s https://mirror.go-repo.io/centos/go-repo.repo | sudo tee /etc/yum.repos.d/go-repo.repo
sudo yum install golang
mysql
shell
# rpm -qa | grep mysql*
sudo wget https://repo.mysql.com/mysql-community-release-el6-7.noarch.rpm
sudo yum localinstall mysql-community-release-el6-7.noarch.rpm
sudo yum -y install mysql-community-server
service mysqld start
service mysqld status
sync time
shell
yum install chrony -y
chronyd -q 'server 0.europe.pool.ntp.org iburst'
date "+%Y-%m-%d %H:%M:%S"