登录linux系统过后,发现显示的是-bash-4.2#,而不是root@主机名+路径的显示方式,发生这种情况的原因可能是:
1:根下缺少文件,从默认配置中复制过来,
cp /etc/skel/.bashrc /root/
cp /etc/skel/.bash_profile /root/
2:检查系统防火墙设置
systemctl status firewalld.service #检查防火墙状态
systemctl start firewalld.service #开启防火墙
3:nfs配置以及no route host问题
开启portmap和NFS服务
service nfs start
service portmap start