# Close SELINUX
setenforce 0
sed -i 's/^SELINUX=.*$/SELINUX=disabled/' /etc/selinux/config
chkconfig iptables off
echo 'PS1="\[\033[01;31m\]\u\[\033[00m\]@\[\033[01;32m\]\h\[\033[00m\][\[\033[01;33m\]\t\[\033[00m\]]:\[\033[01;34m\]\w\[\033[00m\]\n$ " ' >> /etc/profile
echo "TMOUT=0" >> /etc/profile
echo "HISTSIZE=10000" >> /etc/profile
echo "set nu" >> /etc/vimrc
echo "set paste" >> /etc/vimrc
echo 'set ic' >> /etc/vimrc
安装ps
yum -y reinstall procps
其中,procps包中包含了ps命令。
yum -y reinstall net-tools
yum -y reinstall lsof
yum -y reinstall iproute
允许root登陆
chage -M 99999 root
sed -i 's/PermitRootLogin no/PermitRootLogin yes/' /etc/ssh/sshd_config
systemctl restart sshd
useradd hadoop
echo "oracle:oracle_900" | chpasswd
echo "hadoop:hadoop_900" | chpasswd
来源:oschina
链接:https://my.oschina.net/u/4072296/blog/3212405