Centos7 初始化
1、禁用selinux,关闭防火墙
setenforce 0 sed -i 's/SELINUX=permissive/SELINUX=disabled/' /etc/sysconfig/selinux sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
systemctl stop firewalld.service
systemctl disable firewalld.service
2、安装工具
yum install -y wget lrzsz tree net-tools bash-completion psmisc vim tcpdump lsof telnet gcc
3、设置root@xxx颜色
#青蓝色。目的写入export PS1='\[\e[32;36m\][\u@\h \W]\$\[\e[m\] ' echo "export PS1='\[\e[32;36m\][\u@\h \W]\\$\[\e[m\] '" >> /etc/bashrc
source /etc/bashrc
#黄色。目的写入export PS1='\[\e[0;33m\][\u@\h \W]\$\[\e[m\] ' echo "export PS1='\[\e[0;33m\][\u@\h \W]\\$\[\e[m\] '" >> /etc/bashrc source /etc/bashrc