Centos7备忘录

yum源换成163的:

cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.bak
curl http://mirrors.163.com/.help/CentOS7-Base-163.repo > CentOS-Base.repo
yum makecache

如果服务器装的是精简版,不想一个个安装很多常用命令:

yum groupinstall base

wget下载JAVA:

wget --no-check-certificate --no-cookies --header “Cookie: oraclelicense=accept-securebackup-cookie” http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/server-jre-8u171-linux-x64.tar.gz
继续阅读“Centos7备忘录”