# 更换零碎源
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.old
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
yum update -y
# 批改 hostname
hostnamectl set-hostname yourhostname
yum install zsh git lrzsz unzip tree -y
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash
nvm install 12.14.1
yum info nginx
yum install nginx -y
nginx -t
systemctl status nginx
systemctl start nginx
# nginx default work dir: /usr/share/nginx/html
# vim 异样报错
_arguments:451: _vim_files: function definition file not found
# 解决办法
rm ~/.zcompdump*
exec zsh