hostnamectl set-hostname www_mmfei_com; #设置hostname systemctl restart sshd.service; #重启服务,这里是sshd yum -y install vim tree wget vim-enhanced bash-completion; #安装vim,语法高亮,自动补全 firewall-cmd --zone=plubic --add-port=80/tcp; #开放80端口 mv /usr/bin/vi /usr/bin/vi.bk; ln -s /usr/bin/vim /usr/bin/vi;