更新零碎

# 更换零碎源cd /etc/yum.repos.dmv CentOS-Base.repo CentOS-Base.repo.oldcurl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repoyum clean allyum makecacheyum update -y# 批改 hostnamehostnamectl set-hostname yourhostname

惯例环境配置

yum install zsh git lrzsz unzip tree -y

nodejs

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bashnvm install 12.14.1

nginx

yum info nginxyum install nginx -ynginx -tsystemctl status nginxsystemctl start nginx# nginx default work dir: /usr/share/nginx/html

常见问题

# vim异样报错_arguments:451: _vim_files: function definition file not found# 解决办法rm ~/.zcompdump*exec zsh