死循环的/etc/profile

用户服务器登陆后停在以下界面
 Connecting to 121.41.87.202:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
 
Last login: Wed Jan 14 11:24:54 2015 from 183.12.29.213
 
Welcome to aliyun Elastic Compute Service!
 

 

就是欢迎界面,看不到命令行,需要按ctrl+c才能进入,肯定是执行profile时卡住了
这时操作非常慢,查看top都是bash进程

重启后发现,服务器刚启动时是
 不过只要一登陆就会启动很多bash进程,需要按ctrl+c停掉这些进程才行,查看/etc/profile中第一句有/etc/profile,这样会造成循环调用,消耗系统资源,现在给注释掉就好了
posted @ 2016-04-27 22:53  巫谢  阅读(518)  评论(0编辑  收藏  举报